NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cx::AxesRep Class Reference

Representation for one 3D coordinate axis triplet. More...

#include <cxAxesRep.h>

Inheritance diagram for cx::AxesRep:
cx::RepImpl cx::Rep

Public Member Functions

virtual ~AxesRep ()
 
virtual QString getType () const
 
void setTransform (Transform3D rMt)
 
void setFontSize (double size)
 
void setAxisLength (double length)
 
void setVisible (bool on)
 
void setShowAxesLabels (bool on)
 
void setCaption (const QString &caption, const Vector3D &color)
 
- 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 AxesRepPtr 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

 AxesRep ()
 
virtual void addRepActorsToViewRenderer (ViewPtr view)
 
virtual void removeRepActorsFromViewRenderer (ViewPtr view)
 
- Protected Member Functions inherited from cx::RepImpl
ViewPtr getView () const
 
vtkRendererPtr getRenderer ()
 
RepPtr getSelf ()
 
virtual void onModifiedStartRender ()
 
virtual void onEveryRender ()
 

Protected Attributes

GraphicalAxes3DPtr mAxes
 

Additional Inherited Members

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

Detailed Description

Representation for one 3D coordinate axis triplet.

Set the position using setTransform().

Definition at line 36 of file cxAxesRep.h.

Constructor & Destructor Documentation

◆ ~AxesRep()

cx::AxesRep::~AxesRep ( )
virtual

Definition at line 45 of file cxAxesRep.cpp.

◆ AxesRep()

cx::AxesRep::AxesRep ( )
protected

Definition at line 36 of file cxAxesRep.cpp.

Member Function Documentation

◆ addRepActorsToViewRenderer()

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

Implements cx::RepImpl.

Definition at line 49 of file cxAxesRep.cpp.

◆ getType()

virtual QString cx::AxesRep::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 43 of file cxAxesRep.h.

◆ New()

AxesRepPtr cx::AxesRep::New ( const QString &  uid = "")
static

Definition at line 31 of file cxAxesRep.cpp.

◆ removeRepActorsFromViewRenderer()

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

Implements cx::RepImpl.

Definition at line 54 of file cxAxesRep.cpp.

◆ setAxisLength()

void cx::AxesRep::setAxisLength ( double  length)

Definition at line 79 of file cxAxesRep.cpp.

◆ setCaption()

void cx::AxesRep::setCaption ( const QString &  caption,
const Vector3D color 
)

Definition at line 69 of file cxAxesRep.cpp.

◆ setFontSize()

void cx::AxesRep::setFontSize ( double  size)

Definition at line 74 of file cxAxesRep.cpp.

◆ setShowAxesLabels()

void cx::AxesRep::setShowAxesLabels ( bool  on)

Definition at line 64 of file cxAxesRep.cpp.

◆ setTransform()

void cx::AxesRep::setTransform ( Transform3D  rMt)

Definition at line 84 of file cxAxesRep.cpp.

◆ setVisible()

void cx::AxesRep::setVisible ( bool  on)

Definition at line 59 of file cxAxesRep.cpp.

Member Data Documentation

◆ mAxes

GraphicalAxes3DPtr cx::AxesRep::mAxes
protected

Definition at line 55 of file cxAxesRep.h.


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