VTK  9.3.20240329
vtkSplineWidget2.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
39 #ifndef vtkSplineWidget2_h
40 #define vtkSplineWidget2_h
41 
42 #include "vtkAbstractWidget.h"
43 #include "vtkInteractionWidgetsModule.h" // For export macro
44 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
45 
46 VTK_ABI_NAMESPACE_BEGIN
48 
49 class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkSplineWidget2 : public vtkAbstractWidget
50 {
51 public:
52  static vtkSplineWidget2* New();
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
62  {
63  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
64  }
65 
70  void SetEnabled(int enabling) override;
71 
76  void CreateDefaultRepresentation() override;
77 
78 protected:
80  ~vtkSplineWidget2() override;
81 
84  {
85  Start = 0,
86  Active
87  };
88 
89  // These methods handle events
95 
97  static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
98 
99 private:
100  vtkSplineWidget2(const vtkSplineWidget2&) = delete;
101  void operator=(const vtkSplineWidget2&) = delete;
102 };
103 
104 VTK_ABI_NAMESPACE_END
105 #endif
define the API for widget / widget representation
supports function callbacks
a simple class to control print indentation
Definition: vtkIndent.h:108
abstract base class for most VTK objects
Definition: vtkObject.h:162
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_MARSHALAUTO