CustusX
2023.01.05-dev+develop.0da12
An IGT application
|
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< vtkCaptionActor2DPtr > | mCaption |
std::vector< Vector3D > | mCaptionPos |
double | mSize |
double | mFontSize |
bool | mShowLabels |
ViewportListenerPtr | mViewportListener |
vtkRendererPtr | mRenderer |
const double | m_vtkAxisLength |
Transform3D | m_rMt |
Visualization for one 3D coordinate axis triplet.
Set the position using setTransform().
Definition at line 38 of file cxGraphicalAxes3D.h.
cx::GraphicalAxes3D::GraphicalAxes3D | ( | vtkRendererPtr | renderer = vtkRendererPtr() | ) |
Definition at line 29 of file cxGraphicalAxes3D.cpp.
|
virtual |
Definition at line 69 of file cxGraphicalAxes3D.cpp.
|
protected |
Definition at line 164 of file cxGraphicalAxes3D.cpp.
|
protected |
Definition at line 142 of file cxGraphicalAxes3D.cpp.
|
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.
|
protected |
Definition at line 67 of file cxGraphicalAxes3D.h.
|
protected |
Definition at line 65 of file cxGraphicalAxes3D.h.
|
protected |
Definition at line 57 of file cxGraphicalAxes3D.h.
|
protected |
Definition at line 58 of file cxGraphicalAxes3D.h.
|
protected |
Definition at line 59 of file cxGraphicalAxes3D.h.
|
protected |
Definition at line 61 of file cxGraphicalAxes3D.h.
|
protected |
Definition at line 64 of file cxGraphicalAxes3D.h.
|
protected |
Definition at line 62 of file cxGraphicalAxes3D.h.
|
protected |
Definition at line 60 of file cxGraphicalAxes3D.h.
|
protected |
Definition at line 63 of file cxGraphicalAxes3D.h.