VTK  9.3.0
vtkCameraPathWidget.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
14#ifndef vtkCameraPathWidget_h
15#define vtkCameraPathWidget_h
16
17#include "vtkAbstractWidget.h"
18#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
19#include "vtkInteractionWidgetsModule.h" // For export macro
20#include "vtkLegacy.h" // for VTK_LEGACY_REMOVE
21#include "vtkNew.h" // for vtkNew
22
23VTK_ABI_NAMESPACE_BEGIN
25
26class VTKINTERACTIONWIDGETS_EXPORT vtkCameraPathWidget : public vtkAbstractWidget
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
39
44 void SetEnabled(int enabling) override;
45
51
52protected:
54 ~vtkCameraPathWidget() override = default;
55
56 int WidgetState = vtkCameraPathWidget::Start;
58 {
59 Start = 0,
60 Active
61 };
62#if !defined(VTK_LEGACY_REMOVE)
63 VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
65#endif
66
67 // These methods handle events
73
75 static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
76
77private:
79 void operator=(const vtkCameraPathWidget&) = delete;
80};
81
82VTK_ABI_NAMESPACE_END
83#endif
define the API for widget / widget representation
representation for a camera path.
widget for vtkCameraPathRepresentation.
~vtkCameraPathWidget() override=default
static void SelectAction(vtkAbstractWidget *)
vtkNew< vtkCallbackCommand > KeyEventCallbackCommand
static void ProcessKeyEvents(vtkObject *, unsigned long, void *, void *)
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static void MoveAction(vtkAbstractWidget *)
static vtkCameraPathWidget * New()
static void ScaleAction(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
static void TranslateAction(vtkAbstractWidget *)
void SetRepresentation(vtkCameraPathRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
static void EndSelectAction(vtkAbstractWidget *)
void SetEnabled(int enabling) override
Override superclasses SetEnabled() method because the line widget must enable its internal handle wid...
a simple class to control print indentation
Definition vtkIndent.h:29
Allocate and hold a VTK object.
Definition vtkNew.h:51
abstract base class for most VTK objects
Definition vtkObject.h:49
#define VTK_DEPRECATED_IN_9_2_0(reason)