CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::OrientationAnnotationSmartRep Class Reference

A class that annotated 2D views with otientation information.The slice proxy is used to find the orientation of a slice in space r, which is assumed to be a valid DICOM space, and combinations of the letters Anterior - Posterior Left - Right Superior - Inferior are used. Combinations of the letters are used for oblique angles. More...

#include <cxOrientationAnnotation2DRep.h>

Inheritance diagram for cx::OrientationAnnotationSmartRep:
cx::RepImpl cx::Rep

Public Member Functions

virtual ~OrientationAnnotationSmartRep ()
 
virtual QString getType () const
 
void setSliceProxy (SliceProxyPtr slicer)
 
void ThresholdAngle (double angle)
 
double ThresholdAngle () const
 
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 OrientationAnnotationSmartRepPtr New (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

 OrientationAnnotationSmartRep ()
 
virtual void addRepActorsToViewRenderer (ViewPtr view)
 
virtual void removeRepActorsFromViewRenderer (ViewPtr view)
 
QString determineAnnotation (Vector3D planeDir_s, Transform3D rMs)
 
void createAnnotation ()
 
- Protected Member Functions inherited from cx::RepImpl
ViewPtr getView () const
 
vtkRendererPtr getRenderer ()
 
RepPtr getSelf ()
 
virtual void onModifiedStartRender ()
 
virtual void onEveryRender ()
 

Protected Attributes

double mAngle
 
SliceProxyPtr mSlicer
 
OrientationAnnotationPtr mOrientation
 
std::map< QString, Vector3DmDCMDirections_r
 directions of DICOM labels APSILR More...
 
std::vector< Vector3DmPlaneDirections_s
 the four directions in the slice plane More...
 

Additional Inherited Members

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

Detailed Description

A class that annotated 2D views with otientation information.

The slice proxy is used to find the orientation of a slice in space r, which is assumed to be a valid DICOM space, and combinations of the letters Anterior - Posterior Left - Right Superior - Inferior are used. Combinations of the letters are used for oblique angles.

Definition at line 42 of file cxOrientationAnnotation2DRep.h.

Constructor & Destructor Documentation

cx::OrientationAnnotationSmartRep::~OrientationAnnotationSmartRep ( )
virtual

Definition at line 60 of file cxOrientationAnnotation2DRep.cpp.

cx::OrientationAnnotationSmartRep::OrientationAnnotationSmartRep ( )
protected

Definition at line 31 of file cxOrientationAnnotation2DRep.cpp.

Member Function Documentation

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

Implements cx::RepImpl.

Definition at line 108 of file cxOrientationAnnotation2DRep.cpp.

void cx::OrientationAnnotationSmartRep::createAnnotation ( )
protected

Definition at line 130 of file cxOrientationAnnotation2DRep.cpp.

QString cx::OrientationAnnotationSmartRep::determineAnnotation ( Vector3D  planeDir_s,
Transform3D  rMs 
)
protected

Definition at line 89 of file cxOrientationAnnotation2DRep.cpp.

virtual QString cx::OrientationAnnotationSmartRep::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 48 of file cxOrientationAnnotation2DRep.h.

OrientationAnnotationSmartRepPtr cx::OrientationAnnotationSmartRep::New ( const QString &  uid = "")
static

Definition at line 55 of file cxOrientationAnnotation2DRep.cpp.

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

Implements cx::RepImpl.

Definition at line 114 of file cxOrientationAnnotation2DRep.cpp.

void cx::OrientationAnnotationSmartRep::setSliceProxy ( SliceProxyPtr  slicer)

Definition at line 70 of file cxOrientationAnnotation2DRep.cpp.

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

Definition at line 65 of file cxOrientationAnnotation2DRep.cpp.

void cx::OrientationAnnotationSmartRep::ThresholdAngle ( double  angle)

The maximum angular deviation from a major axis for annotation to be displayed.

Definition at line 119 of file cxOrientationAnnotation2DRep.cpp.

double cx::OrientationAnnotationSmartRep::ThresholdAngle ( ) const

Definition at line 125 of file cxOrientationAnnotation2DRep.cpp.

Member Data Documentation

double cx::OrientationAnnotationSmartRep::mAngle
protected

Definition at line 68 of file cxOrientationAnnotation2DRep.h.

std::map<QString, Vector3D> cx::OrientationAnnotationSmartRep::mDCMDirections_r
protected

directions of DICOM labels APSILR

Definition at line 71 of file cxOrientationAnnotation2DRep.h.

OrientationAnnotationPtr cx::OrientationAnnotationSmartRep::mOrientation
protected

Definition at line 70 of file cxOrientationAnnotation2DRep.h.

std::vector<Vector3D> cx::OrientationAnnotationSmartRep::mPlaneDirections_s
protected

the four directions in the slice plane

Definition at line 72 of file cxOrientationAnnotation2DRep.h.

SliceProxyPtr cx::OrientationAnnotationSmartRep::mSlicer
protected

Definition at line 69 of file cxOrientationAnnotation2DRep.h.


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