CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::FrameMetricBase Class Referenceabstract

Abstract base class for frame metric. More...

#include <cxFrameMetricBase.h>

Inheritance diagram for cx::FrameMetricBase:
cx::DataMetric cx::Data cx::FrameMetric cx::ToolMetric

Public Member Functions

 FrameMetricBase (const QString &uid, const QString &name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
 
virtual ~FrameMetricBase ()
 
virtual QString getType () const =0
 
virtual void setFrame (const Transform3D &qMt)
 
virtual Transform3D getFrame ()
 
virtual Vector3D getCoordinate () const
 
virtual Vector3D getRefCoord () const
 as getRefFrame, but coord only. More...
 
virtual Transform3D getRefFrame () const
 return frame described in ref space r : rFt = rMq * qFt More...
 
virtual void setSpace (CoordinateSystem space)
 
virtual CoordinateSystem getSpace () const
 
virtual DoubleBoundingBox3D boundingBox () const
 
virtual QString getValueAsString () const
 
virtual bool showValueInGraphics () const
 
virtual QString getParentSpace ()
 
- Public Member Functions inherited from cx::DataMetric
 DataMetric (const QString &uid, const QString &name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
 
virtual ~DataMetric ()
 
virtual QIcon getIcon ()
 
virtual QString getSpace ()
 
virtual bool isValid () 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, FileManagerServicePtr filemanager)
 metrics don't store info in file, xml only. More...
 
virtual void save (const QString &basePath, FileManagerServicePtr filemanager)
 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 bool isEqual (DataPtr metric)
 
virtual QString getFilename () const
 
virtual void setFilename (QString val)
 
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 Member Functions

QString matrixAsSingleLineString () const
 

Protected Attributes

CoordinateSystem mSpace
 
SpaceListenerPtr mSpaceListener
 
Transform3D mFrame
 frame qFt described in local space q = mSpace More...
 
- Protected Attributes inherited from cx::DataMetric
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

Abstract base class for frame metric.

Date
Sep 2, 2013
Author
Ole Vegard Solberg, SINTEF

Definition at line 30 of file cxFrameMetricBase.h.

Constructor & Destructor Documentation

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

Definition at line 20 of file cxFrameMetricBase.cpp.

cx::FrameMetricBase::~FrameMetricBase ( )
virtual

Definition at line 31 of file cxFrameMetricBase.cpp.

Member Function Documentation

DoubleBoundingBox3D cx::FrameMetricBase::boundingBox ( ) const
virtual

Implements cx::Data.

Definition at line 92 of file cxFrameMetricBase.cpp.

Vector3D cx::FrameMetricBase::getCoordinate ( ) const
virtual

Definition at line 51 of file cxFrameMetricBase.cpp.

Transform3D cx::FrameMetricBase::getFrame ( )
virtual

Definition at line 46 of file cxFrameMetricBase.cpp.

QString cx::FrameMetricBase::getParentSpace ( )
virtual

Reimplemented from cx::Data.

Definition at line 35 of file cxFrameMetricBase.cpp.

Vector3D cx::FrameMetricBase::getRefCoord ( ) const
virtual

as getRefFrame, but coord only.

return frame described in ref space F * sMr

Implements cx::DataMetric.

Definition at line 67 of file cxFrameMetricBase.cpp.

Transform3D cx::FrameMetricBase::getRefFrame ( ) const
virtual

return frame described in ref space r : rFt = rMq * qFt

return frame described in ref space F * sMr

Reimplemented from cx::DataMetric.

Definition at line 59 of file cxFrameMetricBase.cpp.

CoordinateSystem cx::FrameMetricBase::getSpace ( ) const
virtual

Definition at line 87 of file cxFrameMetricBase.cpp.

virtual QString cx::FrameMetricBase::getType ( ) const
pure virtual

Reimplemented from cx::Data.

Implemented in cx::ToolMetric, and cx::FrameMetric.

virtual QString cx::FrameMetricBase::getValueAsString ( ) const
inlinevirtual

Implements cx::DataMetric.

Definition at line 47 of file cxFrameMetricBase.h.

QString cx::FrameMetricBase::matrixAsSingleLineString ( ) const
protected

Definition at line 101 of file cxFrameMetricBase.cpp.

void cx::FrameMetricBase::setFrame ( const Transform3D qMt)
virtual

Definition at line 40 of file cxFrameMetricBase.cpp.

void cx::FrameMetricBase::setSpace ( CoordinateSystem  space)
virtual

Definition at line 74 of file cxFrameMetricBase.cpp.

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

Reimplemented from cx::DataMetric.

Definition at line 48 of file cxFrameMetricBase.h.

Member Data Documentation

Transform3D cx::FrameMetricBase::mFrame
protected

frame qFt described in local space q = mSpace

Definition at line 55 of file cxFrameMetricBase.h.

CoordinateSystem cx::FrameMetricBase::mSpace
protected

Definition at line 53 of file cxFrameMetricBase.h.

SpaceListenerPtr cx::FrameMetricBase::mSpaceListener
protected

Definition at line 54 of file cxFrameMetricBase.h.


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