Fraxinus  16.5.0-fx-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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,
LandmarkGraphics
LandmarkGraphicsMapType
 

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 ()
 

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 119 of file cxLandmarkRep.h.

Member Typedef Documentation

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

Definition at line 162 of file cxLandmarkRep.h.

Constructor & Destructor Documentation

cx::LandmarkRep::~LandmarkRep ( )
virtual

Definition at line 163 of file cxLandmarkRep.cpp.

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

sets default text scaling to 20

Definition at line 146 of file cxLandmarkRep.cpp.

Member Function Documentation

void cx::LandmarkRep::addAll ( )
protected

Definition at line 234 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 278 of file cxLandmarkRep.cpp.

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

Implements cx::RepImpl.

Definition at line 260 of file cxLandmarkRep.cpp.

void cx::LandmarkRep::clearAll ( )
protected

Definition at line 254 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 131 of file cxLandmarkRep.h.

void cx::LandmarkRep::internalUpdate ( )
protectedslot

updates the text, color, scale etc

Definition at line 246 of file cxLandmarkRep.cpp.

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

Definition at line 141 of file cxLandmarkRep.cpp.

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

Implements cx::RepImpl.

Definition at line 269 of file cxLandmarkRep.cpp.

void cx::LandmarkRep::rescale ( )
protected

Definition at line 364 of file cxLandmarkRep.cpp.

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

sets the reps color

Definition at line 191 of file cxLandmarkRep.cpp.

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

Definition at line 203 of file cxLandmarkRep.cpp.

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

Definition at line 209 of file cxLandmarkRep.cpp.

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

Definition at line 167 of file cxLandmarkRep.cpp.

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

sets the reps color

Definition at line 197 of file cxLandmarkRep.cpp.

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

Definition at line 180 of file cxLandmarkRep.cpp.

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

turn on or off showing landmarks

Definition at line 215 of file cxLandmarkRep.cpp.

Member Data Documentation

QColor cx::LandmarkRep::mColor
protected

the color of the landmark actors

Definition at line 149 of file cxLandmarkRep.h.

PatientModelServicePtr cx::LandmarkRep::mDataManager
protected

Definition at line 170 of file cxLandmarkRep.h.

LandmarkGraphicsMapType cx::LandmarkRep::mGraphics
protected

Definition at line 163 of file cxLandmarkRep.h.

double cx::LandmarkRep::mGraphicsSize
protected

Definition at line 152 of file cxLandmarkRep.h.

QColor cx::LandmarkRep::mInactiveColor
protected

color given to inactive landmarks

Definition at line 148 of file cxLandmarkRep.h.

double cx::LandmarkRep::mLabelSize
protected

Definition at line 153 of file cxLandmarkRep.h.

LandmarksSourcePtr cx::LandmarkRep::mPrimary
protected

Definition at line 167 of file cxLandmarkRep.h.

LandmarksSourcePtr cx::LandmarkRep::mSecondary
protected

Definition at line 168 of file cxLandmarkRep.h.

QColor cx::LandmarkRep::mSecondaryColor
protected

color used on the secondary coordinate

Definition at line 150 of file cxLandmarkRep.h.

bool cx::LandmarkRep::mShowLandmarks
protected

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

Definition at line 151 of file cxLandmarkRep.h.

ViewportListenerPtr cx::LandmarkRep::mViewportListener
protected

Definition at line 164 of file cxLandmarkRep.h.


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