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);
63 virtual bool load(QString path) {
return true; }
64 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.