VTK  9.4.20250201
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
17#ifndef vtkCameraPathWidget_h
18#define vtkCameraPathWidget_h
19
20#include "vtkAbstractWidget.h"
21#include "vtkInteractionWidgetsModule.h" // For export macro
22#include "vtkNew.h" // for vtkNew
23#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24
25VTK_ABI_NAMESPACE_BEGIN
27
28class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkCameraPathWidget : public vtkAbstractWidget
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
41
46 void SetEnabled(int enabling) override;
47
53
54protected:
57
58 int WidgetState = vtkCameraPathWidget::Start;
60 {
61 Start = 0,
62 Active
63 };
64
65 // These methods handle events
71
73 static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
74
75private:
77 void operator=(const vtkCameraPathWidget&) = delete;
78};
79
80VTK_ABI_NAMESPACE_END
81#endif
define the API for widget / widget representation
representation for a camera path.
widget for vtkCameraPathRepresentation.
static void SelectAction(vtkAbstractWidget *)
~vtkCameraPathWidget() override
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:108
Allocate and hold a VTK object.
Definition vtkNew.h:167
abstract base class for most VTK objects
Definition vtkObject.h:162
#define VTK_MARSHALAUTO