|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
13 #ifndef CXDISTANCEMETRIC_H_
14 #define CXDISTANCEMETRIC_H_
16 #include "cxResourceExport.h"
46 virtual QIcon
getIcon() {
return QIcon(
":/icons/metric_distance.png");}
49 double getDistance()
const;
55 std::vector<Vector3D> getEndpoints()
const;
56 virtual Vector3D getRefCoord()
const;
60 virtual bool isValid()
const;
62 virtual void addXml(QDomNode& dataNode);
63 virtual void parseXml(QDomNode& dataNode);
71 return "distanceMetric";
74 virtual QString getValueAsString()
const;
78 void resetCachedValues();
81 void getEndpointsUncached(std::vector<Vector3D>* endpoints,
Vector3D *direction)
const;
86 void updateCache()
const;
boost::shared_ptr< class MetricReferenceArgumentList > MetricReferenceArgumentListPtr
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,...
Namespace for all CustusX production code.
MetricReferenceArgumentListPtr getArguments()
virtual QString getType() const
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
virtual bool showValueInGraphics() const
Base class for all Data Metrics.
static QString getTypeName()
boost::shared_ptr< class DistanceMetric > DistanceMetricPtr
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Data class that represents a distance between two points, or a point and a plane.
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr