VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
47 
48 VTK_ABI_NAMESPACE_BEGIN
50 
51 class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkOrientationWidget : public vtkAbstractWidget
52 {
53 public:
57  static vtkOrientationWidget* New();
58 
60 
65  void CreateDefaultRepresentation() override;
66 
72  void SetRepresentation(vtkOrientationRepresentation* r);
73 
74 protected:
76  ~vtkOrientationWidget() override;
77 
78  // These methods handle events
79  static void SelectAction(vtkAbstractWidget*);
80  static void EndSelectAction(vtkAbstractWidget*);
81  static void MoveAction(vtkAbstractWidget*);
82 
83 private:
84  bool Active = false;
85 
87  void operator=(const vtkOrientationWidget&) = delete;
88 };
89 
90 VTK_ABI_NAMESPACE_END
91 #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
#define VTK_MARSHALAUTO
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...