|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
22 DataMetric(uid, name, dataManager, spaceProvider)
24 mArguments.reset(
new MetricReferenceArgumentList(QStringList() <<
"position"));
25 connect(mArguments.get(), SIGNAL(argumentsChanged()),
this, SIGNAL(
transformChanged()));
41 mArguments->addXml(dataNode);
42 dataNode.toElement().setAttribute(
"radius", mRadius);
49 mArguments->parseXml(dataNode,
mDataManager->getDatas());
50 mRadius = dataNode.toElement().attribute(
"radius",
qstring_cast(mRadius)).toDouble();
55 return !mArguments->getRefCoords().empty();
81 return QString(
"%1").arg(this->
getRadius(), 0,
'f', 1);
QString qstring_cast(const T &val)
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,...
virtual DoubleBoundingBox3D boundingBox() const
virtual void parseXml(QDomNode &dataNode)
Use a XML node to load data.
virtual void addXml(QDomNode &dataNode)
adds xml information about the data and its variabels
Namespace for all CustusX production code.
PatientModelServicePtr mDataManager
virtual bool isValid() const
void addXml(QDomNode &dataNode)
adds xml information about the data and its variabels
boost::shared_ptr< class SphereMetric > SphereMetricPtr
static SphereMetricPtr create(QString uid, QString name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
void transformChanged()
emitted when transform is changed
static DoubleBoundingBox3D fromCloud(std::vector< Vector3D > cloud)
void setRadius(double val)
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
virtual Vector3D getRefCoord() const
void propertiesChanged()
emitted when one of the metadata properties (uid, name etc) changes
Data class that represents a donut.
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
virtual QString getValueAsString() const