![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Handle representation with custom translation axis support. More...
#include <cvCustomAxisHandleRepresentation.h>


Public Member Functions | |
| vtkTypeMacro (cvCustomAxisHandleRepresentation, vtkPointHandleRepresentation3D) | |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| void | SetCustomTranslationAxisOn () |
| Enable custom translation axis mode. More... | |
| void | SetCustomTranslationAxisOff () |
| Disable custom translation axis mode. More... | |
| void | SetCustomTranslationAxis (double axis[3]) |
| Set the custom translation axis vector. More... | |
| void | SetCustomTranslationAxis (double x, double y, double z) |
| vtkGetVector3Macro (CustomTranslationAxis, double) | |
| Get the custom translation axis. More... | |
| bool | IsCustomAxisEnabled () const |
| Check if custom translation axis is enabled. More... | |
| void | GetTranslationVector (const double *p1, const double *p2, double *v) const override |
| Override GetTranslationVector to support custom axis. More... | |
| void | Translate (const double *p1, const double *p2) override |
| Override Translate to support custom axis. More... | |
| void | Translate (const double *v) override |
Static Public Member Functions | |
| static cvCustomAxisHandleRepresentation * | New () |
Protected Member Functions | |
| cvCustomAxisHandleRepresentation () | |
| ~cvCustomAxisHandleRepresentation () override | |
Protected Attributes | |
| bool | CustomAxisEnabled |
| double | CustomTranslationAxis [3] |
Handle representation with custom translation axis support.
This class extends vtkPointHandleRepresentation3D to add support for custom translation axes, which is available in VTK 9.3+ but not in earlier versions. It follows ParaView's implementation approach.
Definition at line 24 of file cvCustomAxisHandleRepresentation.h.
|
protected |
Definition at line 19 of file cvCustomAxisHandleRepresentation.cpp.
References CustomTranslationAxis.
|
overrideprotecteddefault |
|
override |
Override GetTranslationVector to support custom axis.
Definition at line 74 of file cvCustomAxisHandleRepresentation.cpp.
References CustomAxisEnabled, and CustomTranslationAxis.
Referenced by Translate().
|
inline |
Check if custom translation axis is enabled.
Definition at line 61 of file cvCustomAxisHandleRepresentation.h.
References CustomAxisEnabled.
|
static |
|
override |
Definition at line 138 of file cvCustomAxisHandleRepresentation.cpp.
References CustomAxisEnabled, and CustomTranslationAxis.
| void cvCustomAxisHandleRepresentation::SetCustomTranslationAxis | ( | double | axis[3] | ) |
Set the custom translation axis vector.
| axis | The axis vector (will be normalized internally) |
Definition at line 48 of file cvCustomAxisHandleRepresentation.cpp.
References CustomTranslationAxis.
Referenced by SetCustomTranslationAxis().
| void cvCustomAxisHandleRepresentation::SetCustomTranslationAxis | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Definition at line 66 of file cvCustomAxisHandleRepresentation.cpp.
References SetCustomTranslationAxis(), x, y, and z.
| void cvCustomAxisHandleRepresentation::SetCustomTranslationAxisOff | ( | ) |
Disable custom translation axis mode.
Definition at line 40 of file cvCustomAxisHandleRepresentation.cpp.
References CustomAxisEnabled.
Referenced by cvConstrainedDistanceWidget::ProcessKeyEvents().
| void cvCustomAxisHandleRepresentation::SetCustomTranslationAxisOn | ( | ) |
Enable custom translation axis mode.
Definition at line 30 of file cvCustomAxisHandleRepresentation.cpp.
References CustomAxisEnabled.
Referenced by cvConstrainedDistanceWidget::ProcessKeyEvents().
|
override |
Override Translate to support custom axis.
Definition at line 109 of file cvCustomAxisHandleRepresentation.cpp.
References GetTranslationVector().
|
override |
Definition at line 117 of file cvCustomAxisHandleRepresentation.cpp.
References CustomAxisEnabled, and CustomTranslationAxis.
| cvCustomAxisHandleRepresentation::vtkGetVector3Macro | ( | CustomTranslationAxis | , |
| double | |||
| ) |
Get the custom translation axis.
| cvCustomAxisHandleRepresentation::vtkTypeMacro | ( | cvCustomAxisHandleRepresentation | , |
| vtkPointHandleRepresentation3D | |||
| ) |
|
protected |
Definition at line 80 of file cvCustomAxisHandleRepresentation.h.
Referenced by GetTranslationVector(), IsCustomAxisEnabled(), PrintSelf(), SetCustomTranslationAxisOff(), SetCustomTranslationAxisOn(), and Translate().
|
protected |
Definition at line 81 of file cvCustomAxisHandleRepresentation.h.
Referenced by cvCustomAxisHandleRepresentation(), GetTranslationVector(), PrintSelf(), SetCustomTranslationAxis(), and Translate().