VTK  9.3.0
vtkCamera3DWidget.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
56 #ifndef vtkCamera3DWidget_h
57 #define vtkCamera3DWidget_h
58 
59 #include "vtkAbstractWidget.h"
60 #include "vtkInteractionWidgetsModule.h" // For export macro
61 #include "vtkNew.h" // For vtkNew
62 
63 VTK_ABI_NAMESPACE_BEGIN
64 class vtkCamera;
66 
67 class VTKINTERACTIONWIDGETS_EXPORT vtkCamera3DWidget : public vtkAbstractWidget
68 {
69 public:
74 
76 
81  void CreateDefaultRepresentation() override;
82 
89 
94  void SetEnabled(int enabling) override;
95 
96 protected:
98  ~vtkCamera3DWidget() override;
99 
100  bool Active = false;
102 
103  // These methods handle events
107 
108  static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
109 
110 private:
111  vtkCamera3DWidget(const vtkCamera3DWidget&) = delete;
112  void operator=(const vtkCamera3DWidget&) = delete;
113 };
114 
115 VTK_ABI_NAMESPACE_END
116 #endif
define the API for widget / widget representation
a class defining the representation for the vtkCamera3DWidget
3D Widget for manipulating a vtkCamera
static void MoveAction(vtkAbstractWidget *)
~vtkCamera3DWidget() override
void SetRepresentation(vtkCamera3DRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
static void SelectAction(vtkAbstractWidget *)
vtkNew< vtkCallbackCommand > KeyEventCallbackCommand
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method for key event registration.
static vtkCamera3DWidget * New()
Instantiate the object.
static void EndSelectAction(vtkAbstractWidget *)
static void ProcessKeyEvents(vtkObject *, unsigned long, void *, void *)
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
a virtual camera for 3D rendering
Definition: vtkCamera.h:50
abstract base class for most VTK objects
Definition: vtkObject.h:61