14 #ifndef CXDATAMETRIC_H_ 15 #define CXDATAMETRIC_H_ 17 #include "cxResourceExport.h" 49 virtual QIcon
getIcon() {
return QIcon(
":/icons/metric.png");}
51 virtual QString getSpace();
52 virtual Vector3D getRefCoord()
const = 0;
54 virtual bool isValid()
const {
return true; }
55 virtual QString getValueAsString()
const = 0;
58 void setColor(
const QColor& color);
61 void addXml(QDomNode& dataNode);
62 void parseXml(QDomNode& dataNode);
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
boost::shared_ptr< class FileManagerService > FileManagerServicePtr
virtual void save(const QString &basePath, FileManagerServicePtr filemanager)
metrics don't store info in file, xml only.
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< DataMetric > DataMetricPtr
PatientModelServicePtr mDataManager
SpaceProviderPtr mSpaceProvider
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
virtual bool showValueInGraphics() const
Transform3D createTransformTranslate(const Vector3D &translation)
virtual Transform3D getRefFrame() const
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Superclass for all data objects.
virtual bool isValid() const
boost::shared_ptr< class SpaceListener > SpaceListenerPtr
Base class for all Data Metrics.
Namespace for all CustusX production code.