35 #ifndef CXDATAMETRIC_H_ 36 #define CXDATAMETRIC_H_ 38 #include "cxResourceExport.h" 70 virtual QIcon
getIcon() {
return QIcon(
":/icons/metric.png");}
72 virtual QString getSpace();
73 virtual Vector3D getRefCoord()
const = 0;
75 virtual bool isValid()
const {
return true; }
76 virtual QString getValueAsString()
const = 0;
79 void setColor(
const QColor& color);
82 void addXml(QDomNode& dataNode);
83 void parseXml(QDomNode& dataNode);
84 virtual bool load(QString path) {
return true; }
85 virtual void save(
const QString& basePath) {}
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< DataMetric > DataMetricPtr
virtual void save(const QString &basePath)
metrics don't store info in file, xml only.
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
virtual bool load(QString path)
metrics don't store info in file, xml only.
Base class for all Data Metrics.
Namespace for all CustusX production code.