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);
Handle representation with custom translation axis support.
bool IsCustomAxisEnabled() const
Check if custom translation axis is enabled.
static cvCustomAxisHandleRepresentation * New()
void SetCustomTranslationAxisOff()
Disable custom translation axis mode.
cvCustomAxisHandleRepresentation()
double CustomTranslationAxis[3]
void PrintSelf(ostream &os, vtkIndent indent) override
void SetCustomTranslationAxisOn()
Enable custom translation axis mode.
vtkGetVector3Macro(CustomTranslationAxis, double)
Get the custom translation axis.
void Translate(const double *p1, const double *p2) override
Override Translate to support custom axis.
void GetTranslationVector(const double *p1, const double *p2, double *v) const override
Override GetTranslationVector to support custom axis.
void SetCustomTranslationAxis(double axis[3])
Set the custom translation axis vector.
vtkTypeMacro(cvCustomAxisHandleRepresentation, vtkPointHandleRepresentation3D)
~cvCustomAxisHandleRepresentation() override