Fraxinus  16.5.0-fx-rc1
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 ()
 

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 73 of file cxOrientationAnnotationRep.h.

Constructor & Destructor Documentation

cx::OrientationAnnotationRep::~OrientationAnnotationRep ( )
virtual

Definition at line 121 of file cxOrientationAnnotationRep.cpp.

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

Definition at line 108 of file cxOrientationAnnotationRep.cpp.

Member Function Documentation

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

Implements cx::RepImpl.

Definition at line 234 of file cxOrientationAnnotationRep.cpp.

void cx::OrientationAnnotationRep::createAnnotation ( )
protected

Definition at line 245 of file cxOrientationAnnotationRep.cpp.

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 79 of file cxOrientationAnnotationRep.h.

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

Definition at line 116 of file cxOrientationAnnotationRep.cpp.

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

Implements cx::RepImpl.

Definition at line 240 of file cxOrientationAnnotationRep.cpp.

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

Definition at line 137 of file cxOrientationAnnotationRep.cpp.

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

Definition at line 158 of file cxOrientationAnnotationRep.cpp.

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

Definition at line 196 of file cxOrientationAnnotationRep.cpp.

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

Definition at line 126 of file cxOrientationAnnotationRep.cpp.

Member Data Documentation

PatientModelServicePtr cx::OrientationAnnotationRep::mDataManager
protected

Definition at line 96 of file cxOrientationAnnotationRep.h.

QString cx::OrientationAnnotationRep::mEastAnnotation
protected

Definition at line 100 of file cxOrientationAnnotationRep.h.

QString cx::OrientationAnnotationRep::mNorthAnnotation
protected

Definition at line 98 of file cxOrientationAnnotationRep.h.

OrientationAnnotationPtr cx::OrientationAnnotationRep::mOrientation
protected

Definition at line 94 of file cxOrientationAnnotationRep.h.

PLANE_TYPE cx::OrientationAnnotationRep::mPlane
protected

Definition at line 95 of file cxOrientationAnnotationRep.h.

QString cx::OrientationAnnotationRep::mSouthAnnotation
protected

Definition at line 99 of file cxOrientationAnnotationRep.h.

QString cx::OrientationAnnotationRep::mWestAnnotation
protected

Definition at line 101 of file cxOrientationAnnotationRep.h.


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