VTK  9.1.0
vtkCameraPathWidget.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkCameraPathWidget.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
29#ifndef vtkCameraPathWidget_h
30#define vtkCameraPathWidget_h
31
32#include "vtkAbstractWidget.h"
33#include "vtkInteractionWidgetsModule.h" // For export macro
34#include "vtkNew.h" // for vtkNew
35
37
38class VTKINTERACTIONWIDGETS_EXPORT vtkCameraPathWidget : public vtkAbstractWidget
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
51
56 void SetEnabled(int enabling) override;
57
63
64protected:
66 ~vtkCameraPathWidget() override = default;
67
68 int WidgetState = vtkCameraPathWidget::Start;
70 {
71 Start = 0,
72 Active
73 };
74
75 // These methods handle events
81
83 static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
84
85private:
87 void operator=(const vtkCameraPathWidget&) = delete;
88};
89
90#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:113
Allocate and hold a VTK object.
Definition: vtkNew.h:165
abstract base class for most VTK objects
Definition: vtkObject.h:82