CustusX  22.04-rc2
An IGT application
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 38 of file cxGraphicalAxes3D.h.

Constructor & Destructor Documentation

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

Definition at line 29 of file cxGraphicalAxes3D.cpp.

cx::GraphicalAxes3D::~GraphicalAxes3D ( )
virtual

Definition at line 69 of file cxGraphicalAxes3D.cpp.

Member Function Documentation

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

Definition at line 164 of file cxGraphicalAxes3D.cpp.

void cx::GraphicalAxes3D::rescale ( )
protected

Definition at line 142 of file cxGraphicalAxes3D.cpp.

void cx::GraphicalAxes3D::resetAxesLabels ( )
protected

Definition at line 86 of file cxGraphicalAxes3D.cpp.

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

set axis length to a world length

Definition at line 127 of file cxGraphicalAxes3D.cpp.

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

Definition at line 110 of file cxGraphicalAxes3D.cpp.

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

set font size to a fraction of the normalized viewport.

Definition at line 118 of file cxGraphicalAxes3D.cpp.

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

Definition at line 47 of file cxGraphicalAxes3D.cpp.

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

Definition at line 80 of file cxGraphicalAxes3D.cpp.

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

Set the position of the axis.

Definition at line 136 of file cxGraphicalAxes3D.cpp.

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

Definition at line 74 of file cxGraphicalAxes3D.cpp.

Member Data Documentation

Transform3D cx::GraphicalAxes3D::m_rMt
protected

Definition at line 67 of file cxGraphicalAxes3D.h.

const double cx::GraphicalAxes3D::m_vtkAxisLength
protected

Definition at line 65 of file cxGraphicalAxes3D.h.

vtkAxesActorPtr cx::GraphicalAxes3D::mActor
protected

Definition at line 57 of file cxGraphicalAxes3D.h.

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

Definition at line 58 of file cxGraphicalAxes3D.h.

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

Definition at line 59 of file cxGraphicalAxes3D.h.

double cx::GraphicalAxes3D::mFontSize
protected

Definition at line 61 of file cxGraphicalAxes3D.h.

vtkRendererPtr cx::GraphicalAxes3D::mRenderer
protected

Definition at line 64 of file cxGraphicalAxes3D.h.

bool cx::GraphicalAxes3D::mShowLabels
protected

Definition at line 62 of file cxGraphicalAxes3D.h.

double cx::GraphicalAxes3D::mSize
protected

Definition at line 60 of file cxGraphicalAxes3D.h.

ViewportListenerPtr cx::GraphicalAxes3D::mViewportListener
protected

Definition at line 63 of file cxGraphicalAxes3D.h.


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