NorMIT-nav  16.5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::GraphicalAxes3D Class Reference

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

#include <cxGraphicalAxes3D.h>

Public Member Functions

 GraphicalAxes3D (vtkRendererPtr renderer=vtkRendererPtr())
 
void setRenderer (vtkRendererPtr renderer=vtkRendererPtr())
 
virtual ~GraphicalAxes3D ()
 
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)
 

Protected Member Functions

void addCaption (const QString &label, Vector3D pos, Vector3D color)
 
void rescale ()
 
void resetAxesLabels ()
 

Protected Attributes

vtkAxesActorPtr mActor
 
std::vector< vtkCaptionActor2DPtrmCaption
 
std::vector< Vector3DmCaptionPos
 
double mSize
 
double mFontSize
 
bool mShowLabels
 
ViewportListenerPtr mViewportListener
 
vtkRendererPtr mRenderer
 
const double m_vtkAxisLength
 
Transform3D m_rMt
 

Detailed Description

Visualization for one 3D coordinate axis triplet.

Set the position using setTransform().

Definition at line 59 of file cxGraphicalAxes3D.h.

Constructor & Destructor Documentation

cx::GraphicalAxes3D::GraphicalAxes3D ( vtkRendererPtr  renderer = vtkRendererPtr())

Definition at line 50 of file cxGraphicalAxes3D.cpp.

cx::GraphicalAxes3D::~GraphicalAxes3D ( )
virtual

Definition at line 90 of file cxGraphicalAxes3D.cpp.

Member Function Documentation

void cx::GraphicalAxes3D::addCaption ( const QString &  label,
Vector3D  pos,
Vector3D  color 
)
protected

Definition at line 185 of file cxGraphicalAxes3D.cpp.

void cx::GraphicalAxes3D::rescale ( )
protected

Definition at line 163 of file cxGraphicalAxes3D.cpp.

void cx::GraphicalAxes3D::resetAxesLabels ( )
protected

Definition at line 107 of file cxGraphicalAxes3D.cpp.

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

set axis length to a world length

Definition at line 148 of file cxGraphicalAxes3D.cpp.

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

Definition at line 131 of file cxGraphicalAxes3D.cpp.

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

set font size to a fraction of the normalized viewport.

Definition at line 139 of file cxGraphicalAxes3D.cpp.

void cx::GraphicalAxes3D::setRenderer ( vtkRendererPtr  renderer = vtkRendererPtr())

Definition at line 68 of file cxGraphicalAxes3D.cpp.

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

Definition at line 101 of file cxGraphicalAxes3D.cpp.

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

Set the position of the axis.

Definition at line 157 of file cxGraphicalAxes3D.cpp.

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

Definition at line 95 of file cxGraphicalAxes3D.cpp.

Member Data Documentation

Transform3D cx::GraphicalAxes3D::m_rMt
protected

Definition at line 88 of file cxGraphicalAxes3D.h.

const double cx::GraphicalAxes3D::m_vtkAxisLength
protected

Definition at line 86 of file cxGraphicalAxes3D.h.

vtkAxesActorPtr cx::GraphicalAxes3D::mActor
protected

Definition at line 78 of file cxGraphicalAxes3D.h.

std::vector<vtkCaptionActor2DPtr> cx::GraphicalAxes3D::mCaption
protected

Definition at line 79 of file cxGraphicalAxes3D.h.

std::vector<Vector3D> cx::GraphicalAxes3D::mCaptionPos
protected

Definition at line 80 of file cxGraphicalAxes3D.h.

double cx::GraphicalAxes3D::mFontSize
protected

Definition at line 82 of file cxGraphicalAxes3D.h.

vtkRendererPtr cx::GraphicalAxes3D::mRenderer
protected

Definition at line 85 of file cxGraphicalAxes3D.h.

bool cx::GraphicalAxes3D::mShowLabels
protected

Definition at line 83 of file cxGraphicalAxes3D.h.

double cx::GraphicalAxes3D::mSize
protected

Definition at line 81 of file cxGraphicalAxes3D.h.

ViewportListenerPtr cx::GraphicalAxes3D::mViewportListener
protected

Definition at line 84 of file cxGraphicalAxes3D.h.


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