![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Line/Distance Widget with XYZL constraint support (100% consistent with ParaView) More...
#include <cvConstrainedDistanceWidget.h>


Public Member Functions | |
| vtkTypeMacro (cvConstrainedDistanceWidget, vtkLineWidget2) | |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| void | SetInteractor (vtkRenderWindowInteractor *iren) override |
| Set interactor - override to register keyboard events Copied from ParaView vtkLineWidget2. More... | |
| void | SetEnabled (int enabling) override |
| Override SetEnabled to manage keyboard event observers We need to remove the parent class's keyboard handler to avoid conflicts. More... | |
Static Public Member Functions | |
| static cvConstrainedDistanceWidget * | New () |
Protected Member Functions | |
| cvConstrainedDistanceWidget () | |
| ~cvConstrainedDistanceWidget () override | |
Static Protected Member Functions | |
| static void | ProcessKeyEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
| Keyboard event handler - directly copied from ParaView vtkLineWidget2::ProcessKeyEvents. More... | |
Line/Distance Widget with XYZL constraint support (100% consistent with ParaView)
Migrated from ParaView vtkLineWidget2, supports keyboard constraints:
Releasing the key automatically removes constraints
Definition at line 50 of file cvConstrainedDistanceWidget.h.
|
protected |
Definition at line 37 of file cvConstrainedDistanceWidget.cpp.
|
overrideprotected |
Definition at line 43 of file cvConstrainedDistanceWidget.cpp.
|
static |
|
override |
Definition at line 318 of file cvConstrainedDistanceWidget.cpp.
|
staticprotected |
Keyboard event handler - directly copied from ParaView vtkLineWidget2::ProcessKeyEvents.
This is the core method of the control layer:
Definition at line 132 of file cvConstrainedDistanceWidget.cpp.
References event, cvCustomAxisHandleRepresentation::SetCustomTranslationAxisOff(), cvCustomAxisHandleRepresentation::SetCustomTranslationAxisOn(), and CVLog::Warning().
Referenced by SetEnabled().
|
override |
Override SetEnabled to manage keyboard event observers We need to remove the parent class's keyboard handler to avoid conflicts.
Definition at line 67 of file cvConstrainedDistanceWidget.cpp.
References ProcessKeyEvents().
|
override |
Set interactor - override to register keyboard events Copied from ParaView vtkLineWidget2.
Definition at line 60 of file cvConstrainedDistanceWidget.cpp.
| cvConstrainedDistanceWidget::vtkTypeMacro | ( | cvConstrainedDistanceWidget | , |
| vtkLineWidget2 | |||
| ) |