VTK  9.2.6
vtkSplineWidget2.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSplineWidget2.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 =========================================================================*/
32 #ifndef vtkSplineWidget2_h
33 #define vtkSplineWidget2_h
34 
35 #include "vtkAbstractWidget.h"
36 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
37 #include "vtkInteractionWidgetsModule.h" // For export macro
38 
40 
41 class VTKINTERACTIONWIDGETS_EXPORT vtkSplineWidget2 : public vtkAbstractWidget
42 {
43 public:
44  static vtkSplineWidget2* New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
54  {
55  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
56  }
57 
62  void SetEnabled(int enabling) override;
63 
68  void CreateDefaultRepresentation() override;
69 
70 protected:
72  ~vtkSplineWidget2() override;
73 
76  {
77  Start = 0,
78  Active
79  };
80 #if !defined(VTK_LEGACY_REMOVE)
81  VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
83 #endif
84 
85  // These methods handle events
86  static void SelectAction(vtkAbstractWidget*);
87  static void EndSelectAction(vtkAbstractWidget*);
88  static void TranslateAction(vtkAbstractWidget*);
89  static void ScaleAction(vtkAbstractWidget*);
90  static void MoveAction(vtkAbstractWidget*);
91 
93  static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
94 
95 private:
96  vtkSplineWidget2(const vtkSplineWidget2&) = delete;
97  void operator=(const vtkSplineWidget2&) = delete;
98 };
99 
100 #endif
representation for a spline.
void SetRepresentation(vtkSplineRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene...
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.
supports function callbacks
a simple class to control print indentation
Definition: vtkIndent.h:39
widget for vtkSplineRepresentation.
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...
vtkCallbackCommand * KeyEventCallbackCommand