 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
11 #ifndef cvCustomAxisHandleRepresentation_h
12 #define cvCustomAxisHandleRepresentation_h
14 #include <vtkPointHandleRepresentation3D.h>
15 #include <vtkVersion.h>
28 vtkPointHandleRepresentation3D);
29 void PrintSelf(ostream& os, vtkIndent indent)
override;
31 #if !((VTK_MAJOR_VERSION > 9) || \
32 (VTK_MAJOR_VERSION == 9 && VTK_MINOR_VERSION >= 3))
68 double* v)
const override;
73 void Translate(
const double* p1,
const double* p2)
override;
86 this->Superclass::SetCustomTranslationAxisOn();
90 this->Superclass::SetTranslationAxisOff();
94 this->Superclass::SetCustomTranslationAxis(axis);
98 double axis[3] = {
x,
y,
z};
99 this->Superclass::SetCustomTranslationAxis(axis);
113 #endif // cvCustomAxisHandleRepresentation_h
void Translate(const double *p1, const double *p2) override
Override Translate to support custom axis.
Definition: cvCustomAxisHandleRepresentation.cpp:109
void PrintSelf(ostream &os, vtkIndent indent) override
Definition: cvCustomAxisHandleRepresentation.cpp:138
normal_z x
Definition: my_point_types.h:165
vtkStandardNewMacro(cvCustomAxisHandleRepresentation)
bool CustomAxisEnabled
Definition: cvCustomAxisHandleRepresentation.h:80
normal_z y
Definition: my_point_types.h:168
vtkGetVector3Macro(CustomTranslationAxis, double)
Get the custom translation axis.
bool IsCustomAxisEnabled() const
Check if custom translation axis is enabled.
Definition: cvCustomAxisHandleRepresentation.h:61
cvCustomAxisHandleRepresentation()
Definition: cvCustomAxisHandleRepresentation.cpp:19
void SetCustomTranslationAxis(double axis[3])
Set the custom translation axis vector.
Definition: cvCustomAxisHandleRepresentation.cpp:48
double CustomTranslationAxis[3]
Definition: cvCustomAxisHandleRepresentation.h:81
~cvCustomAxisHandleRepresentation() override
void GetTranslationVector(const double *p1, const double *p2, double *v) const override
Override GetTranslationVector to support custom axis.
Definition: cvCustomAxisHandleRepresentation.cpp:74
static cvCustomAxisHandleRepresentation * New()
void SetCustomTranslationAxisOn()
Enable custom translation axis mode.
Definition: cvCustomAxisHandleRepresentation.cpp:30
Handle representation with custom translation axis support.
Definition: cvCustomAxisHandleRepresentation.h:24
normal_z z
Definition: my_point_types.h:165
vtkTypeMacro(cvCustomAxisHandleRepresentation, vtkPointHandleRepresentation3D)
void SetCustomTranslationAxisOff()
Disable custom translation axis mode.
Definition: cvCustomAxisHandleRepresentation.cpp:40