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=========================================================================*/
26#ifndef vtkCameraPathWidget_h
27#define vtkCameraPathWidget_h
28
29#include "vtkAbstractWidget.h"
30#include "vtkInteractionWidgetsModule.h" // For export macro
31#include "vtkNew.h" // for vtkNew
32
34
35class VTKINTERACTIONWIDGETS_EXPORT vtkCameraPathWidget : public vtkAbstractWidget
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
48
53 void SetEnabled(int enabling) override;
54
60
61protected:
63 ~vtkCameraPathWidget() override = default;
64
65 int WidgetState = vtkCameraPathWidget::Start;
67 {
68 Start = 0,
69 Active
70 };
71
72 // These methods handle events
78
80 static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
81
82private:
84 void operator=(const vtkCameraPathWidget&) = delete;
85};
86
87#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
abstract base class for most VTK objects
Definition: vtkObject.h:73