VTK: Interaction/Widgets/vtkOrientationWidget.h Source File

| VTK 9.3.1

vtkOrientationWidget.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
40 #ifndef vtkOrientationWidget_h
41 #define vtkOrientationWidget_h
42
43 #include "vtkAbstractWidget.h"
44 #include "vtkInteractionWidgetsModule.h" // For export macro
45 #include "vtkNew.h" // For vtkNew
46
47 VTK_ABI_NAMESPACE_BEGIN
48 class vtkOrientationRepresentation;
49
50 class VTKINTERACTIONWIDGETS_EXPORT vtkOrientationWidget : public vtkAbstractWidget
51 {
52 public:
56 static vtkOrientationWidget* New();
57
58 vtkTypeMacro(vtkOrientationWidget, vtkAbstractWidget);
59
64 void CreateDefaultRepresentation() override;
65
71 void SetRepresentation(vtkOrientationRepresentation* r);
72
73 protected:
74 vtkOrientationWidget();
75 ~vtkOrientationWidget() override;
76
77 // These methods handle events
78 static void SelectAction(vtkAbstractWidget*);
79 static void EndSelectAction(vtkAbstractWidget*);
80 static void MoveAction(vtkAbstractWidget*);
81
82 private:
83 bool Active = false;
84
85 vtkOrientationWidget(const vtkOrientationWidget&) = delete;
86 void operator=(const vtkOrientationWidget&) = delete;
87 };
88
89 VTK_ABI_NAMESPACE_END
90 #endif
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:64
vtkOrientationRepresentation
a class defining the representation for the vtkOrientationWidget
Definition: vtkOrientationRepresentation.h:48
vtkOrientationWidget
3D Widget for manipulating a vtkCamera
Definition: vtkOrientationWidget.h:51
vtkOrientationWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkOrientationWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkOrientationWidget::vtkOrientationWidget
vtkOrientationWidget()
vtkOrientationWidget::New
static vtkOrientationWidget * New()
Instantiate the object.
vtkOrientationWidget::~vtkOrientationWidget
~vtkOrientationWidget() override
vtkOrientationWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkOrientationWidget::SetRepresentation
void SetRepresentation(vtkOrientationRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
vtkOrientationWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkAbstractWidget.h
vtkNew.h