VTK  9.2.6
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 "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
34 #include "vtkInteractionWidgetsModule.h" // For export macro
35 #include "vtkNew.h" // for vtkNew
36 
38 
39 class VTKINTERACTIONWIDGETS_EXPORT vtkCameraPathWidget : public vtkAbstractWidget
40 {
41 public:
42  static vtkCameraPathWidget* New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
51  void SetRepresentation(vtkCameraPathRepresentation* r);
52 
57  void SetEnabled(int enabling) override;
58 
63  void CreateDefaultRepresentation() override;
64 
65 protected:
67  ~vtkCameraPathWidget() override = default;
68 
69  int WidgetState = vtkCameraPathWidget::Start;
71  {
72  Start = 0,
73  Active
74  };
75 #if !defined(VTK_LEGACY_REMOVE)
76  VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
78 #endif
79 
80  // These methods handle events
81  static void SelectAction(vtkAbstractWidget*);
82  static void EndSelectAction(vtkAbstractWidget*);
83  static void TranslateAction(vtkAbstractWidget*);
84  static void ScaleAction(vtkAbstractWidget*);
85  static void MoveAction(vtkAbstractWidget*);
86 
88  static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
89 
90 private:
92  void operator=(const vtkCameraPathWidget&) = delete;
93 };
94 
95 #endif
vtkNew< vtkCallbackCommand > KeyEventCallbackCommand
widget for vtkCameraPathRepresentation.
abstract base class for most VTK objects
Definition: vtkObject.h:62
#define VTK_DEPRECATED_IN_9_2_0(reason)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
virtual void CreateDefaultRepresentation()=0
Create the default widget representation if one is not set.
representation for a camera path.
a simple class to control print indentation
Definition: vtkIndent.h:39
define the API for widget / widget representation
void SetEnabled(int) override
Methods for activating this widget.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...