![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
PolyLine Widget with XYZ constraints (100% consistent with ParaView) More...
#include <cvConstrainedPolyLineWidget.h>


Public Member Functions | |
| vtkTypeMacro (cvConstrainedPolyLineWidget, vtkPolyLineWidget) | |
| void | SetInteractor (vtkRenderWindowInteractor *iren) override |
| Override SetInteractor to register keyboard event observers. More... | |
| void | SetEnabled (int enabling) override |
| Override SetEnabled to register our custom keyboard handler. More... | |
Static Public Member Functions | |
| static cvConstrainedPolyLineWidget * | New () |
Protected Member Functions | |
| cvConstrainedPolyLineWidget () | |
| ~cvConstrainedPolyLineWidget () override | |
Static Protected Member Functions | |
| static void | ProcessKeyEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
| Keyboard event handling - directly copied from ParaView vtkPolyLineWidget::ProcessKeyEvents. More... | |
Protected Attributes | |
| vtkCallbackCommand * | KeyEventCallbackCommand |
PolyLine Widget with XYZ constraints (100% consistent with ParaView)
Ported from ParaView vtkPolyLineWidget, supports keyboard constraints:
Note: This widget is used for angle measurement (3 handles: point1, center, point2)
Releasing the key automatically removes the constraint.
Definition at line 30 of file cvConstrainedPolyLineWidget.h.
|
protected |
Definition at line 21 of file cvConstrainedPolyLineWidget.cpp.
|
overrideprotected |
Definition at line 28 of file cvConstrainedPolyLineWidget.cpp.
References KeyEventCallbackCommand.
|
static |
|
staticprotected |
Keyboard event handling - directly copied from ParaView vtkPolyLineWidget::ProcessKeyEvents.
This is the core method of the control layer:
ParaView's implementation (vtkPolyLineWidget.cxx:272-301):
Definition at line 111 of file cvConstrainedPolyLineWidget.cpp.
References event.
Referenced by SetEnabled().
|
override |
Override SetEnabled to register our custom keyboard handler.
This is where we replace the parent's KeyEventCallbackCommand with our own
Definition at line 49 of file cvConstrainedPolyLineWidget.cpp.
References KeyEventCallbackCommand, and ProcessKeyEvents().
|
override |
Override SetInteractor to register keyboard event observers.
Following ParaView's pattern from vtkPolyLineWidget::SetEnabled
Definition at line 43 of file cvConstrainedPolyLineWidget.cpp.
| cvConstrainedPolyLineWidget::vtkTypeMacro | ( | cvConstrainedPolyLineWidget | , |
| vtkPolyLineWidget | |||
| ) |
|
protected |
Definition at line 74 of file cvConstrainedPolyLineWidget.h.
Referenced by SetEnabled(), and ~cvConstrainedPolyLineWidget().