Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cx::LandmarkRep Class Reference

#include <cxLandmarkRep.h>

Inheritance diagram for cx::LandmarkRep:
cx::RepImpl cx::Rep

Classes

struct  LandmarkGraphics
 

Public Member Functions

virtual ~LandmarkRep ()
 
void setColor (QColor color)
 sets the reps color More...
 
void setSecondaryColor (QColor color)
 sets the reps color More...
 
void showLandmarks (bool on)
 turn on or off showing landmarks More...
 
void setGraphicsSize (double size)
 
void setLabelSize (double size)
 
virtual QString getType () const
 
void setPrimarySource (LandmarksSourcePtr primary)
 
void setSecondarySource (LandmarksSourcePtr secondary)
 
- 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 LandmarkRepPtr 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 Types

typedef std::map< QString, LandmarkGraphicsLandmarkGraphicsMapType
 

Protected Slots

void internalUpdate ()
 updates the text, color, scale etc More...
 
- Protected Slots inherited from cx::RepImpl
void setModified ()
 

Protected Member Functions

 LandmarkRep (PatientModelServicePtr dataManager)
 sets default text scaling to 20 More...
 
virtual void addRepActorsToViewRenderer (ViewPtr view)
 
virtual void removeRepActorsFromViewRenderer (ViewPtr view)
 
void clearAll ()
 
void addAll ()
 
void addLandmark (QString uid)
 
void rescale ()
 
- Protected Member Functions inherited from cx::RepImpl
ViewPtr getView () const
 
vtkRendererPtr getRenderer ()
 
RepPtr getSelf ()
 
virtual void onModifiedStartRender ()
 
virtual void onEveryRender ()
 

Protected Attributes

QColor mInactiveColor
 color given to inactive landmarks More...
 
QColor mColor
 the color of the landmark actors More...
 
QColor mSecondaryColor
 color used on the secondary coordinate More...
 
bool mShowLandmarks
 whether or not the actors should be showed in (all) views More...
 
double mGraphicsSize
 
double mLabelSize
 
LandmarkGraphicsMapType mGraphics
 
ViewportListenerPtr mViewportListener
 
LandmarksSourcePtr mPrimary
 
LandmarksSourcePtr mSecondary
 
PatientModelServicePtr mDataManager
 

Detailed Description

Date
Dec 10, 2008 \author Janne Beate Bakeng, SINTEF \author Christian Askeland, SINTEF

Definition at line 98 of file cxLandmarkRep.h.

Member Typedef Documentation

typedef std::map<QString, LandmarkGraphics> cx::LandmarkRep::LandmarkGraphicsMapType
protected

Definition at line 141 of file cxLandmarkRep.h.

Constructor & Destructor Documentation

cx::LandmarkRep::~LandmarkRep ( )
virtual

Definition at line 142 of file cxLandmarkRep.cpp.

cx::LandmarkRep::LandmarkRep ( PatientModelServicePtr  dataManager)
protected

sets default text scaling to 20

Definition at line 125 of file cxLandmarkRep.cpp.

Member Function Documentation

void cx::LandmarkRep::addAll ( )
protected

Definition at line 213 of file cxLandmarkRep.cpp.

void cx::LandmarkRep::addLandmark ( QString  uid)
protected

Use the inpup coord in ref space to render a landmark.

Definition at line 257 of file cxLandmarkRep.cpp.

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

Implements cx::RepImpl.

Definition at line 239 of file cxLandmarkRep.cpp.

void cx::LandmarkRep::clearAll ( )
protected

Definition at line 233 of file cxLandmarkRep.cpp.

virtual QString cx::LandmarkRep::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 110 of file cxLandmarkRep.h.

void cx::LandmarkRep::internalUpdate ( )
protectedslot

updates the text, color, scale etc

Definition at line 225 of file cxLandmarkRep.cpp.

LandmarkRepPtr cx::LandmarkRep::New ( PatientModelServicePtr  dataManager,
const QString &  uid = "" 
)
static

Definition at line 120 of file cxLandmarkRep.cpp.

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

Implements cx::RepImpl.

Definition at line 248 of file cxLandmarkRep.cpp.

void cx::LandmarkRep::rescale ( )
protected

Definition at line 343 of file cxLandmarkRep.cpp.

void cx::LandmarkRep::setColor ( QColor  color)

sets the reps color

Definition at line 170 of file cxLandmarkRep.cpp.

void cx::LandmarkRep::setGraphicsSize ( double  size)

Definition at line 182 of file cxLandmarkRep.cpp.

void cx::LandmarkRep::setLabelSize ( double  size)

Definition at line 188 of file cxLandmarkRep.cpp.

void cx::LandmarkRep::setPrimarySource ( LandmarksSourcePtr  primary)

Definition at line 146 of file cxLandmarkRep.cpp.

void cx::LandmarkRep::setSecondaryColor ( QColor  color)

sets the reps color

Definition at line 176 of file cxLandmarkRep.cpp.

void cx::LandmarkRep::setSecondarySource ( LandmarksSourcePtr  secondary)

Definition at line 159 of file cxLandmarkRep.cpp.

void cx::LandmarkRep::showLandmarks ( bool  on)

turn on or off showing landmarks

Definition at line 194 of file cxLandmarkRep.cpp.

Member Data Documentation

QColor cx::LandmarkRep::mColor
protected

the color of the landmark actors

Definition at line 128 of file cxLandmarkRep.h.

PatientModelServicePtr cx::LandmarkRep::mDataManager
protected

Definition at line 149 of file cxLandmarkRep.h.

LandmarkGraphicsMapType cx::LandmarkRep::mGraphics
protected

Definition at line 142 of file cxLandmarkRep.h.

double cx::LandmarkRep::mGraphicsSize
protected

Definition at line 131 of file cxLandmarkRep.h.

QColor cx::LandmarkRep::mInactiveColor
protected

color given to inactive landmarks

Definition at line 127 of file cxLandmarkRep.h.

double cx::LandmarkRep::mLabelSize
protected

Definition at line 132 of file cxLandmarkRep.h.

LandmarksSourcePtr cx::LandmarkRep::mPrimary
protected

Definition at line 146 of file cxLandmarkRep.h.

LandmarksSourcePtr cx::LandmarkRep::mSecondary
protected

Definition at line 147 of file cxLandmarkRep.h.

QColor cx::LandmarkRep::mSecondaryColor
protected

color used on the secondary coordinate

Definition at line 129 of file cxLandmarkRep.h.

bool cx::LandmarkRep::mShowLandmarks
protected

whether or not the actors should be showed in (all) views

Definition at line 130 of file cxLandmarkRep.h.

ViewportListenerPtr cx::LandmarkRep::mViewportListener
protected

Definition at line 143 of file cxLandmarkRep.h.


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