CustusX
2023.01.05-dev+develop.0da12
An IGT application
|
Helper for drawing a crosshair in 2D. More...
#include <cxVtkHelperClasses.h>
Public Member Functions | |
CrossHair2D (vtkRendererPtr renderer) | |
~CrossHair2D () | |
void | setValue (const Vector3D &focalPoint, int width, int height, double bordarOffset, const RGBColor &color) |
void | update (const Vector3D &crossPos, const DoubleBoundingBox3D &vp) |
void | updateRegCross (const Vector3D &crossPos) |
vtkActor2DPtr | getActor () |
Helper for drawing a crosshair in 2D.
Definition at line 147 of file cxVtkHelperClasses.h.
cx::CrossHair2D::CrossHair2D | ( | vtkRendererPtr | renderer | ) |
Definition at line 212 of file cxVtkHelperClasses.cpp.
cx::CrossHair2D::~CrossHair2D | ( | ) |
Definition at line 224 of file cxVtkHelperClasses.cpp.
vtkActor2DPtr cx::CrossHair2D::getActor | ( | ) |
Definition at line 285 of file cxVtkHelperClasses.cpp.
void cx::CrossHair2D::setValue | ( | const Vector3D & | focalPoint, |
int | width, | ||
int | height, | ||
double | bordarOffset, | ||
const RGBColor & | color | ||
) |
Definition at line 229 of file cxVtkHelperClasses.cpp.
void cx::CrossHair2D::update | ( | const Vector3D & | crossPos, |
const DoubleBoundingBox3D & | vp | ||
) |
Definition at line 256 of file cxVtkHelperClasses.cpp.
void cx::CrossHair2D::updateRegCross | ( | const Vector3D & | crossPos | ) |
special made update for crosshair in registration
Definition at line 246 of file cxVtkHelperClasses.cpp.