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);
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
QString qstring_cast(const T &val)
virtual DoubleBoundingBox3D boundingBox() const
void setRadius(double val)
virtual QString getValueAsString() const
void addXml(QDomNode &dataNode)
adds xml information about the data and its variabels
void propertiesChanged()
emitted when one of the metadata properties (uid, name etc) changes
void transformChanged()
emitted when transform is changed
boost::shared_ptr< class SphereMetric > SphereMetricPtr
PatientModelServicePtr mDataManager
static DoubleBoundingBox3D fromCloud(std::vector< Vector3D > cloud)
virtual DoubleBoundingBox3D boundingBox() const
Data class that represents a donut.
static SphereMetricPtr create(QString uid, QString name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
void parseXml(QDomNode &dataNode)
Use a XML node to load data.
virtual void parseXml(QDomNode &dataNode)
Use a XML node to load data.
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
virtual bool isValid() const
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 Vector3D getRefCoord() const
virtual void addXml(QDomNode &dataNode)
adds xml information about the data and its variabels
Namespace for all CustusX production code.