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 =========================================================================*/
41 #ifndef vtkSplineWidget2_h
42 #define vtkSplineWidget2_h
43 
44 #include "vtkAbstractWidget.h"
45 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
46 #include "vtkInteractionWidgetsModule.h" // For export macro
47 
49 
50 class VTKINTERACTIONWIDGETS_EXPORT vtkSplineWidget2 : public vtkAbstractWidget
51 {
52 public:
53  static vtkSplineWidget2* New();
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
63  {
64  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
65  }
66 
71  void SetEnabled(int enabling) override;
72 
77  void CreateDefaultRepresentation() override;
78 
79 protected:
81  ~vtkSplineWidget2() override;
82 
85  {
86  Start = 0,
87  Active
88  };
89 #if !defined(VTK_LEGACY_REMOVE)
90  VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
92 #endif
93 
94  // These methods handle events
100 
102  static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
103 
104 private:
105  vtkSplineWidget2(const vtkSplineWidget2&) = delete;
106  void operator=(const vtkSplineWidget2&) = delete;
107 };
108 
109 #endif
define the API for widget / widget representation
supports function callbacks
a simple class to control print indentation
Definition: vtkIndent.h:49
abstract base class for most VTK objects
Definition: vtkObject.h:72
representation for a spline.
widget for vtkSplineRepresentation.
static vtkSplineWidget2 * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static void MoveAction(vtkAbstractWidget *)
static void SelectAction(vtkAbstractWidget *)
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method because the line widget must enable its internal handle wi...
static void EndSelectAction(vtkAbstractWidget *)
~vtkSplineWidget2() override
static void ScaleAction(vtkAbstractWidget *)
vtkCallbackCommand * KeyEventCallbackCommand
static void TranslateAction(vtkAbstractWidget *)
void SetRepresentation(vtkSplineRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
static void ProcessKeyEvents(vtkObject *, unsigned long, void *, void *)
abstract class defines interface between the widget and widget representation classes
#define VTK_DEPRECATED_IN_9_2_0(reason)