|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
26 DataMetric(uid, name, dataManager, spaceProvider)
29 connect(mArguments.get(), SIGNAL(argumentsChanged()),
this, SIGNAL(
transformChanged()));
48 std::vector<Vector3D> coords = mArguments->getRefCoords();
50 return Vector3D::Zero();
56 std::vector<Vector3D> coords = mArguments->getRefCoords();
58 return Vector3D::UnitZ();
59 return (coords[1]-coords[0]).normal();
66 mArguments->addXml(dataNode);
72 mArguments->parseXml(dataNode,
mDataManager->getDatas());
Plane3D getRefPlane() const
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,...
Namespace for all CustusX production code.
PatientModelServicePtr mDataManager
virtual void addXml(QDomNode &dataNode)
adds xml information about the data and its variabels
void addXml(QDomNode &dataNode)
adds xml information about the data and its variabels
Collection of Metric arguments that refer to another metric.
void transformChanged()
emitted when transform is changed
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Vector3D getRefNormal() const
virtual void parseXml(QDomNode &dataNode)
Use a XML node to load data.
Base class for all Data Metrics.
boost::shared_ptr< class PlaneMetric > PlaneMetricPtr
virtual Vector3D getRefCoord() const
static PlaneMetricPtr create(QString uid, QString name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
PlaneMetric(const QString &uid, const QString &name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
virtual DoubleBoundingBox3D boundingBox() const
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
void parseXml(QDomNode &dataNode)
Use a XML node to load data.
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
Eigen::Hyperplane< double, 3 > Plane3D