NorMIT-nav  22.09
An IGT application
cx::OrientationAnnotationRep Class Reference

Display direction annotations in a 2D view. More...

#include <cxOrientationAnnotationRep.h>

Inheritance diagram for cx::OrientationAnnotationRep:
cx::RepImpl cx::Rep

Public Member Functions

virtual ~OrientationAnnotationRep ()
 
virtual QString getType () const
 
void setPlaneType (PLANE_TYPE type)
 
void setVisible (bool visible)
 
- Public Member Functions inherited from cx::RepImpl
 RepImpl (const QString &uid="", const QString &name="")
 
virtual ~RepImpl ()
 
virtual void connectToView (ViewPtr theView)
 
virtual void disconnectFromView (ViewPtr theView)
 
virtual bool isConnectedToView (ViewPtr theView) const
 
void setName (QString name)
 
QString getName () const
 
QString getUid () const
 
virtual void printSelf (std::ostream &os, Indent indent)
 
- Public Member Functions inherited from cx::Rep
virtual ~Rep ()
 

Static Public Member Functions

static OrientationAnnotationRepPtr New (PatientModelServicePtr dataManager, const QString &uid="")
 
- Static Public Member Functions inherited from cx::RepImpl
template<class REP >
static boost::shared_ptr< REP > wrap_new (REP *object, QString uid)
 

Protected Member Functions

 OrientationAnnotationRep (PatientModelServicePtr dataManager)
 
virtual void addRepActorsToViewRenderer (ViewPtr view)
 
virtual void removeRepActorsFromViewRenderer (ViewPtr view)
 
void setPlaneTypeNeurology (PLANE_TYPE type)
 
void setPlaneTypeRadiology (PLANE_TYPE type)
 
void createAnnotation ()
 
- Protected Member Functions inherited from cx::RepImpl
ViewPtr getView () const
 
vtkRendererPtr getRenderer ()
 
RepPtr getSelf ()
 
virtual void onModifiedStartRender ()
 
virtual void onEveryRender ()
 

Protected Attributes

OrientationAnnotationPtr mOrientation
 
PLANE_TYPE mPlane
 
PatientModelServicePtr mDataManager
 
QString mNorthAnnotation
 
QString mSouthAnnotation
 
QString mEastAnnotation
 
QString mWestAnnotation
 

Additional Inherited Members

- Protected Slots inherited from cx::RepImpl
void setModified ()
 

Detailed Description

Display direction annotations in a 2D view.

Based on the input PLANE_TYPE, decorate with the letters APSILR (Anterior, Posterior, Superior, Inferior, Left, Right) in the four main directions of the view. Oblique views are not decorated.

Use cx::OrientationAnnotationRep instead if decoration of oblique views also is needed.

Definition at line 52 of file cxOrientationAnnotationRep.h.

Constructor & Destructor Documentation

◆ ~OrientationAnnotationRep()

cx::OrientationAnnotationRep::~OrientationAnnotationRep ( )
virtual

Definition at line 100 of file cxOrientationAnnotationRep.cpp.

◆ OrientationAnnotationRep()

cx::OrientationAnnotationRep::OrientationAnnotationRep ( PatientModelServicePtr  dataManager)
protected

Definition at line 87 of file cxOrientationAnnotationRep.cpp.

Member Function Documentation

◆ addRepActorsToViewRenderer()

void cx::OrientationAnnotationRep::addRepActorsToViewRenderer ( ViewPtr  view)
protectedvirtual

Implements cx::RepImpl.

Definition at line 213 of file cxOrientationAnnotationRep.cpp.

◆ createAnnotation()

void cx::OrientationAnnotationRep::createAnnotation ( )
protected

Definition at line 224 of file cxOrientationAnnotationRep.cpp.

◆ getType()

virtual QString cx::OrientationAnnotationRep::getType ( ) const
inlinevirtual
Returns
a string identifying the Rep type. Each suclass implement this with its own class name. Subclasses from other namespaces (such as cx and snw) should add that namespace as a prefix.

Implements cx::RepImpl.

Definition at line 58 of file cxOrientationAnnotationRep.h.

◆ New()

OrientationAnnotationRepPtr cx::OrientationAnnotationRep::New ( PatientModelServicePtr  dataManager,
const QString &  uid = "" 
)
static

Definition at line 95 of file cxOrientationAnnotationRep.cpp.

◆ removeRepActorsFromViewRenderer()

void cx::OrientationAnnotationRep::removeRepActorsFromViewRenderer ( ViewPtr  view)
protectedvirtual

Implements cx::RepImpl.

Definition at line 219 of file cxOrientationAnnotationRep.cpp.

◆ setPlaneType()

void cx::OrientationAnnotationRep::setPlaneType ( PLANE_TYPE  type)

Definition at line 116 of file cxOrientationAnnotationRep.cpp.

◆ setPlaneTypeNeurology()

void cx::OrientationAnnotationRep::setPlaneTypeNeurology ( PLANE_TYPE  type)
protected

Definition at line 137 of file cxOrientationAnnotationRep.cpp.

◆ setPlaneTypeRadiology()

void cx::OrientationAnnotationRep::setPlaneTypeRadiology ( PLANE_TYPE  type)
protected

Definition at line 175 of file cxOrientationAnnotationRep.cpp.

◆ setVisible()

void cx::OrientationAnnotationRep::setVisible ( bool  visible)

Definition at line 105 of file cxOrientationAnnotationRep.cpp.

Member Data Documentation

◆ mDataManager

PatientModelServicePtr cx::OrientationAnnotationRep::mDataManager
protected

Definition at line 75 of file cxOrientationAnnotationRep.h.

◆ mEastAnnotation

QString cx::OrientationAnnotationRep::mEastAnnotation
protected

Definition at line 79 of file cxOrientationAnnotationRep.h.

◆ mNorthAnnotation

QString cx::OrientationAnnotationRep::mNorthAnnotation
protected

Definition at line 77 of file cxOrientationAnnotationRep.h.

◆ mOrientation

OrientationAnnotationPtr cx::OrientationAnnotationRep::mOrientation
protected

Definition at line 73 of file cxOrientationAnnotationRep.h.

◆ mPlane

PLANE_TYPE cx::OrientationAnnotationRep::mPlane
protected

Definition at line 74 of file cxOrientationAnnotationRep.h.

◆ mSouthAnnotation

QString cx::OrientationAnnotationRep::mSouthAnnotation
protected

Definition at line 78 of file cxOrientationAnnotationRep.h.

◆ mWestAnnotation

QString cx::OrientationAnnotationRep::mWestAnnotation
protected

Definition at line 80 of file cxOrientationAnnotationRep.h.


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