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
49 
50 class VTKINTERACTIONWIDGETS_EXPORT vtkOrientationWidget : public vtkAbstractWidget
51 {
52 public:
56  static vtkOrientationWidget* New();
57 
59 
64  void CreateDefaultRepresentation() override;
65 
71  void SetRepresentation(vtkOrientationRepresentation* r);
72 
73 protected:
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 
86  void operator=(const vtkOrientationWidget&) = delete;
87 };
88 
89 VTK_ABI_NAMESPACE_END
90 #endif
virtual void CreateDefaultRepresentation()=0
Create the default widget representation if one is not set.
define the API for widget / widget representation
3D Widget for manipulating a vtkCamera
a class defining the representation for the vtkOrientationWidget
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...