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;
74 virtual QString getAsSingleLineString()
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) {}
91 QString getSingleLineHeader()
const;
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
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
cxLogicManager_EXPORT SpaceProviderPtr spaceProvider()
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.