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());
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
static PlaneMetricPtr create(QString uid, QString name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
void addXml(QDomNode &dataNode)
adds xml information about the data and its variabels
virtual DoubleBoundingBox3D boundingBox() const
Vector3D getRefNormal() const
void transformChanged()
emitted when transform is changed
Collection of Metric arguments that refer to another metric.
PatientModelServicePtr mDataManager
boost::shared_ptr< class PlaneMetric > PlaneMetricPtr
void parseXml(QDomNode &dataNode)
Use a XML node to load data.
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
virtual void parseXml(QDomNode &dataNode)
Use a XML node to load data.
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::Hyperplane< double, 3 > Plane3D
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
virtual void addXml(QDomNode &dataNode)
adds xml information about the data and its variabels
virtual Vector3D getRefCoord() const
Base class for all Data Metrics.
PlaneMetric(const QString &uid, const QString &name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
Plane3D getRefPlane() const
Namespace for all CustusX production code.