VTK  9.7.1
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
20 #ifndef vtkSplineWidget2_h
21 #define vtkSplineWidget2_h
22 
23 #include "vtkAbstractWidget.h"
24 #include "vtkInteractionWidgetsModule.h" // For export macro
25 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
26 
27 VTK_ABI_NAMESPACE_BEGIN
29 
30 class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkSplineWidget2 : public vtkAbstractWidget
31 {
32 public:
33  static vtkSplineWidget2* New();
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
43  {
44  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
45  }
46 
51  void SetEnabled(int enabling) override;
52 
57  void CreateDefaultRepresentation() override;
58 
59 protected:
61  ~vtkSplineWidget2() override;
62 
65  {
66  Start = 0,
67  Active
68  };
69 
70  // These methods handle events
71  static void SelectAction(vtkAbstractWidget*);
72  static void EndSelectAction(vtkAbstractWidget*);
73  static void TranslateAction(vtkAbstractWidget*);
74  static void ScaleAction(vtkAbstractWidget*);
75  static void MoveAction(vtkAbstractWidget*);
76 
78  static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
79 
80 private:
81  vtkSplineWidget2(const vtkSplineWidget2&) = delete;
82  void operator=(const vtkSplineWidget2&) = delete;
83 };
84 
85 VTK_ABI_NAMESPACE_END
86 #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:52
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:28
widget for vtkSplineRepresentation.
define the API for widget / widget representation
void SetEnabled(int) override
Methods for activating this widget.
#define VTK_MARSHALAUTO
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkCallbackCommand * KeyEventCallbackCommand