34 #ifndef CXDISTANCEMETRIC_H_ 35 #define CXDISTANCEMETRIC_H_ 37 #include "cxResourceExport.h" 67 virtual QIcon
getIcon() {
return QIcon(
":/icons/metric_distance.png");}
70 double getDistance()
const;
76 std::vector<Vector3D> getEndpoints()
const;
77 virtual Vector3D getRefCoord()
const;
81 virtual bool isValid()
const;
83 virtual void addXml(QDomNode& dataNode);
84 virtual void parseXml(QDomNode& dataNode);
92 return "distanceMetric";
95 virtual QString getValueAsString()
const;
99 void resetCachedValues();
102 void getEndpointsUncached(std::vector<Vector3D>* endpoints,
Vector3D *direction)
const;
107 void updateCache()
const;
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
virtual QString getType() const
boost::shared_ptr< class DistanceMetric > DistanceMetricPtr
static QString getTypeName()
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
boost::shared_ptr< class MetricReferenceArgumentList > MetricReferenceArgumentListPtr
virtual bool showValueInGraphics() const
Data class that represents a distance between two points, or a point and a plane. ...
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Base class for all Data Metrics.
MetricReferenceArgumentListPtr getArguments()
Namespace for all CustusX production code.