47 DataMetric(uid, name, dataManager, spaceProvider)
50 connect(mArguments.get(), SIGNAL(argumentsChanged()),
this, SIGNAL(
transformChanged()));
69 std::vector<Vector3D> coords = mArguments->getRefCoords();
71 return Vector3D::Zero();
77 std::vector<Vector3D> coords = mArguments->getRefCoords();
79 return Vector3D::UnitZ();
80 return (coords[1]-coords[0]).normal();
87 mArguments->addXml(dataNode);
93 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::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.