Fraxinus  17.12-rc3
An IGT application
cx::DataMetric Class Referenceabstract

Base class for all Data Metrics. More...

#include <cxDataMetric.h>

Inheritance diagram for cx::DataMetric:
cx::Data cx::AngleMetric cx::CustomMetric cx::DistanceMetric cx::DonutMetric cx::FrameMetricBase cx::PlaneMetric cx::PointMetric cx::RegionOfInterestMetric cx::SphereMetric

Public Member Functions

 DataMetric (const QString &uid, const QString &name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
 
virtual ~DataMetric ()
 
virtual QIcon getIcon ()
 
virtual QString getSpace ()
 
virtual Vector3D getRefCoord () const =0
 
virtual Transform3D getRefFrame () const
 
virtual bool isValid () const
 
virtual QString getValueAsString () const =0
 
virtual bool showValueInGraphics () const
 
void setColor (const QColor &color)
 
QColor getColor ()
 
void addXml (QDomNode &dataNode)
 adds xml information about the data and its variabels More...
 
void parseXml (QDomNode &dataNode)
 Use a XML node to load data. More...
 
virtual bool load (QString path)
 metrics don't store info in file, xml only. More...
 
virtual void save (const QString &basePath)
 metrics don't store info in file, xml only. More...
 
- Public Member Functions inherited from cx::Data
 Data (const QString &uid, const QString &name="")
 
virtual ~Data ()
 
void setUid (const QString &uid)
 
void setName (const QString &name)
 
void setAcquisitionTime (QDateTime time)
 
void setSoftwareAcquisitionTime (QDateTime time)
 
void setOriginalAcquisitionTime (QDateTime time)
 
virtual RegistrationHistoryPtr get_rMd_History ()
 
LandmarksPtr getLandmarks ()
 
virtual QString getUid () const
 
virtual QString getName () const
 
virtual Transform3D get_rMd () const
 
virtual QDateTime getAcquisitionTime () const
 
virtual TimeInfo getAdvancedTimeInfo () const
 
virtual QString getType () const
 
virtual bool isEqual (DataPtr metric)
 
virtual QString getFilename () const
 
virtual void setFilename (QString val)
 
virtual QString getParentSpace ()
 
virtual DoubleBoundingBox3D boundingBox () const =0
 
virtual std::vector< Vector3DgetPointCloud () const
 
virtual CoordinateSystem getCoordinateSystem ()
 
virtual void addPersistentClipPlane (vtkPlanePtr plane)
 
virtual std::vector< vtkPlanePtrgetAllClipPlanes ()
 
virtual void clearPersistentClipPlanes ()
 
virtual void setInteractiveClipPlane (vtkPlanePtr plane)
 set a plane that is not saved More...
 
void addInteractiveClipPlane (vtkPlanePtr plane)
 
void removeInteractiveClipPlane (vtkPlanePtr plane)
 

Protected Attributes

PatientModelServicePtr mDataManager
 
SpaceProviderPtr mSpaceProvider
 
QColor mColor
 
- Protected Attributes inherited from cx::Data
QString mUid
 
QString mName
 
QString mFilename
 
TimeInfo mTimeInfo
 
LandmarksPtr mLandmarks
 
REGISTRATION_STATUS mRegistrationStatus
 
RegistrationHistoryPtr m_rMd_History
 
std::vector< vtkPlanePtrmPersistentClipPlanes
 
std::vector< vtkPlanePtrmInteractiveClipPlanes
 
vtkPlanePtr mInteractiveClipPlane
 

Additional Inherited Members

- Signals inherited from cx::Data
void transformChanged ()
 emitted when transform is changed More...
 
void propertiesChanged ()
 emitted when one of the metadata properties (uid, name etc) changes More...
 
void clipPlanesChanged ()
 
- Protected Slots inherited from cx::Data
virtual void transformChangedSlot ()
 

Detailed Description

Base class for all Data Metrics.

Data Metrics are Data subclasses that aims to add measurements to the system, such as points, angles and distances.

Date
Aug 2, 2011
Author
Christian Askeland, SINTEF

Definition at line 64 of file cxDataMetric.h.

Constructor & Destructor Documentation

cx::DataMetric::DataMetric ( const QString &  uid,
const QString &  name,
PatientModelServicePtr  dataManager,
SpaceProviderPtr  spaceProvider 
)

Definition at line 41 of file cxDataMetric.cpp.

cx::DataMetric::~DataMetric ( )
virtual

Definition at line 51 of file cxDataMetric.cpp.

Member Function Documentation

void cx::DataMetric::addXml ( QDomNode &  dataNode)
virtual

adds xml information about the data and its variabels

Reimplemented from cx::Data.

Reimplemented in cx::RegionOfInterestMetric, cx::PlaneMetric, cx::PointMetric, cx::DonutMetric, cx::DistanceMetric, cx::ToolMetric, cx::SphereMetric, and cx::FrameMetric.

Definition at line 72 of file cxDataMetric.cpp.

QColor cx::DataMetric::getColor ( )

Definition at line 66 of file cxDataMetric.cpp.

virtual QIcon cx::DataMetric::getIcon ( )
inlinevirtual
virtual Transform3D cx::DataMetric::getRefFrame ( ) const
inlinevirtual

Reimplemented in cx::FrameMetricBase.

Definition at line 74 of file cxDataMetric.h.

QString cx::DataMetric::getSpace ( )
virtual

Reimplemented from cx::Data.

Definition at line 55 of file cxDataMetric.cpp.

virtual QString cx::DataMetric::getValueAsString ( ) const
pure virtual
virtual bool cx::DataMetric::isValid ( ) const
inlinevirtual
virtual bool cx::DataMetric::load ( QString  path)
inlinevirtual

metrics don't store info in file, xml only.

Implements cx::Data.

Definition at line 84 of file cxDataMetric.h.

void cx::DataMetric::parseXml ( QDomNode &  dataNode)
virtual

Use a XML node to load data.

Parameters
dataNodeA XML data representation of this object.

Reimplemented from cx::Data.

Reimplemented in cx::RegionOfInterestMetric, cx::PlaneMetric, cx::PointMetric, cx::DonutMetric, cx::DistanceMetric, cx::ToolMetric, cx::SphereMetric, and cx::FrameMetric.

Definition at line 82 of file cxDataMetric.cpp.

virtual void cx::DataMetric::save ( const QString &  basePath)
inlinevirtual

metrics don't store info in file, xml only.

Implements cx::Data.

Definition at line 85 of file cxDataMetric.h.

void cx::DataMetric::setColor ( const QColor &  color)

Definition at line 60 of file cxDataMetric.cpp.

virtual bool cx::DataMetric::showValueInGraphics ( ) const
inlinevirtual

Member Data Documentation

QColor cx::DataMetric::mColor
protected

Definition at line 91 of file cxDataMetric.h.

PatientModelServicePtr cx::DataMetric::mDataManager
protected

Definition at line 88 of file cxDataMetric.h.

SpaceProviderPtr cx::DataMetric::mSpaceProvider
protected

Definition at line 89 of file cxDataMetric.h.


The documentation for this class was generated from the following files: