12 #ifndef CXREGIONOFINTERESTMETRIC_H 13 #define CXREGIONOFINTERESTMETRIC_H 15 #include "cxResourceExport.h" 42 bool isValid()
const {
return !mPoints.empty(); }
54 DoubleBoundingBox3D generateROIFromPointsAndMargin(
const std::vector<Vector3D> &points,
double margin)
const;
71 virtual Vector3D getRefCoord()
const;
72 virtual QString getAsSingleLineString()
const;
74 virtual bool isValid()
const;
76 virtual void addXml(QDomNode& dataNode);
77 virtual void parseXml(QDomNode& dataNode);
88 virtual QString getValueAsString()
const;
92 void setDataList(QStringList val);
95 void setUseActiveTooltip(
bool val);
98 void setMargin(
double val);
101 void setMaxBoundsData(QString val);
108 QString mMaxBoundsData;
109 QStringList mContainedData;
110 bool mUseActiveTooltip;
113 std::vector<SpaceListenerPtr> mListeners;
115 void onContentTransformsChanged();
116 void onContentChanged();
125 #endif // CXREGIONOFINTERESTMETRIC_H boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
DoubleBoundingBox3D transform(const Transform3D &m, const DoubleBoundingBox3D &bb)
virtual QString getType() const
virtual bool showValueInGraphics() const
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
QStringList getDataList()
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Identification of a Coordinate system.
boost::shared_ptr< class RegionOfInterestMetric > RegionOfInterestMetricPtr
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.
std::vector< Vector3D > mPoints
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
QString getMaxBoundsData()
bool getUseActiveTooltip()
Base class for all Data Metrics.
static QString getTypeName()
std::vector< Vector3D > mMaxBoundsPoints
Namespace for all CustusX production code.