Fraxinus  16.5.0-fx-rc7
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::DataMetric Class Referenceabstract

Base class for all Data Metrics. More...

#include <cxDataMetric.h>

Inheritance diagram for cx::DataMetric:
cx::Data cx::AngleMetric cx::DistanceMetric cx::DonutMetric cx::FrameMetricBase cx::PlaneMetric cx::PointMetric cx::SphereMetric cx::FrameMetric cx::ToolMetric

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 QString getAsSingleLineString () const =0
 
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 QString getFilename () const
 
virtual void setFilename (QString val)
 
virtual QString getParentSpace ()
 
virtual DoubleBoundingBox3D boundingBox () const =0
 
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 Member Functions

QString getSingleLineHeader () const
 

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::PlaneMetric, cx::PointMetric, cx::DonutMetric, cx::ToolMetric, cx::DistanceMetric, cx::SphereMetric, and cx::FrameMetric.

Definition at line 79 of file cxDataMetric.cpp.

virtual QString cx::DataMetric::getAsSingleLineString ( ) const
pure virtual
QColor cx::DataMetric::getColor ( )

Definition at line 73 of file cxDataMetric.cpp.

virtual QIcon cx::DataMetric::getIcon ( )
inlinevirtual
virtual Vector3D cx::DataMetric::getRefCoord ( ) const
pure virtual
QString cx::DataMetric::getSingleLineHeader ( ) const
protected

Definition at line 60 of file cxDataMetric.cpp.

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

Reimplemented in cx::AngleMetric, cx::DistanceMetric, cx::DonutMetric, and cx::SphereMetric.

Definition at line 75 of file cxDataMetric.h.

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::PlaneMetric, cx::PointMetric, cx::DonutMetric, cx::ToolMetric, cx::DistanceMetric, cx::SphereMetric, and cx::FrameMetric.

Definition at line 89 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 67 of file cxDataMetric.cpp.

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

Member Data Documentation

QColor cx::DataMetric::mColor
protected

Definition at line 92 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: