Fraxinus  16.5.0-fx-rc5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::PlaneMetric Class Reference

Data class representing a plane. More...

#include <cxPlaneMetric.h>

Inheritance diagram for cx::PlaneMetric:
cx::DataMetric cx::Data

Public Member Functions

 PlaneMetric (const QString &uid, const QString &name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
 
virtual ~PlaneMetric ()
 
virtual Vector3D getRefCoord () const
 
Vector3D getRefNormal () const
 
virtual QString getType () const
 
virtual QIcon getIcon ()
 
virtual QString getAsSingleLineString () const
 
Plane3D getRefPlane () const
 
MetricReferenceArgumentListPtr getArguments ()
 
virtual void addXml (QDomNode &dataNode)
 adds xml information about the data and its variabels More...
 
virtual void parseXml (QDomNode &dataNode)
 Use a XML node to load data. More...
 
virtual DoubleBoundingBox3D boundingBox () const
 
virtual QString getValueAsString () const
 
virtual bool showValueInGraphics () const
 
- Public Member Functions inherited from cx::DataMetric
 DataMetric (const QString &uid, const QString &name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
 
virtual ~DataMetric ()
 
virtual QString getSpace ()
 
virtual bool isValid () const
 
void setColor (const QColor &color)
 
QColor getColor ()
 
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 getFilename () const
 
virtual void setFilename (QString val)
 
virtual QString getParentSpace ()
 
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)
 

Static Public Member Functions

static PlaneMetricPtr create (QString uid, QString name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
 
static QString getTypeName ()
 

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 ()
 
- Protected Member Functions inherited from cx::DataMetric
QString getSingleLineHeader () const
 
- 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
 

Detailed Description

Data class representing a plane.

Data class that represents an infinite plane defined by all pts r in N*r+c=0, N is the normal, c is a scalar. The plane is defined by setting one of the points r instead of the scalar c.

The point is attached to a specific coordinate system / frame.

Date
Jul 27, 2011
Author
Christian Askeland, SINTEF

Definition at line 69 of file cxPlaneMetric.h.

Constructor & Destructor Documentation

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

Definition at line 46 of file cxPlaneMetric.cpp.

cx::PlaneMetric::~PlaneMetric ( )
virtual

Definition at line 58 of file cxPlaneMetric.cpp.

Member Function Documentation

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

adds xml information about the data and its variabels

Reimplemented from cx::DataMetric.

Definition at line 84 of file cxPlaneMetric.cpp.

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

Implements cx::Data.

Definition at line 96 of file cxPlaneMetric.cpp.

PlaneMetricPtr cx::PlaneMetric::create ( QString  uid,
QString  name,
PatientModelServicePtr  dataManager,
SpaceProviderPtr  spaceProvider 
)
static

Definition at line 53 of file cxPlaneMetric.cpp.

MetricReferenceArgumentListPtr cx::PlaneMetric::getArguments ( )
inline

Definition at line 92 of file cxPlaneMetric.h.

QString cx::PlaneMetric::getAsSingleLineString ( ) const
virtual

Implements cx::DataMetric.

Definition at line 102 of file cxPlaneMetric.cpp.

virtual QIcon cx::PlaneMetric::getIcon ( )
inlinevirtual

Reimplemented from cx::DataMetric.

Definition at line 87 of file cxPlaneMetric.h.

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

Implements cx::DataMetric.

Definition at line 67 of file cxPlaneMetric.cpp.

Vector3D cx::PlaneMetric::getRefNormal ( ) const

Definition at line 75 of file cxPlaneMetric.cpp.

Plane3D cx::PlaneMetric::getRefPlane ( ) const

Definition at line 62 of file cxPlaneMetric.cpp.

virtual QString cx::PlaneMetric::getType ( ) const
inlinevirtual

Reimplemented from cx::Data.

Definition at line 79 of file cxPlaneMetric.h.

static QString cx::PlaneMetric::getTypeName ( )
inlinestatic

Definition at line 83 of file cxPlaneMetric.h.

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

Implements cx::DataMetric.

Definition at line 98 of file cxPlaneMetric.h.

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

Use a XML node to load data.

Parameters
dataNodeA XML data representation of this object.

Reimplemented from cx::DataMetric.

Definition at line 90 of file cxPlaneMetric.cpp.

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

Reimplemented from cx::DataMetric.

Definition at line 99 of file cxPlaneMetric.h.


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