![]() |
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
|
protected |
|
overrideprotected |
|
static |
|
override |
|
staticprotected |
Keyboard event handler - directly copied from ParaView vtkLineWidget2::ProcessKeyEvents.
This is the core method of the control layer:
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.
References ProcessKeyEvents().
|
override |
Set interactor - override to register keyboard events Copied from ParaView vtkLineWidget2.
| cvConstrainedDistanceWidget::vtkTypeMacro | ( | cvConstrainedDistanceWidget | , |
| vtkLineWidget2 | |||
| ) |