VTK  9.5.2
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
52
53#ifndef vtkCamera3DWidget_h
54#define vtkCamera3DWidget_h
55
56#include "vtkAbstractWidget.h"
57#include "vtkInteractionWidgetsModule.h" // For export macro
58#include "vtkNew.h" // For vtkNew
59#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
60
61VTK_ABI_NAMESPACE_BEGIN
62class vtkCamera;
64
65class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkCamera3DWidget : public vtkAbstractWidget
66{
67public:
72
74
80
87
92 void SetEnabled(int enabling) override;
93
94protected:
97
98 bool Active = false;
100
101 // These methods handle events
105
106 static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
107
108private:
109 vtkCamera3DWidget(const vtkCamera3DWidget&) = delete;
110 void operator=(const vtkCamera3DWidget&) = delete;
111};
112
113VTK_ABI_NAMESPACE_END
114#endif
a class defining the representation for the vtkCamera3DWidget
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 *)
static vtkCamera3DWidget * New()
Instantiate the object.
vtkNew< vtkCallbackCommand > KeyEventCallbackCommand
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method for key event registration.
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:42
Allocate and hold a VTK object.
Definition vtkNew.h:58
#define VTK_MARSHALAUTO