VTK  9.3.0
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
17#ifndef vtkSplineWidget2_h
18#define vtkSplineWidget2_h
19
20#include "vtkAbstractWidget.h"
21#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
22#include "vtkInteractionWidgetsModule.h" // For export macro
23#include "vtkLegacy.h" // for VTK_LEGACY_REMOVE
24
25VTK_ABI_NAMESPACE_BEGIN
27
28class VTKINTERACTIONWIDGETS_EXPORT vtkSplineWidget2 : public vtkAbstractWidget
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
41 {
42 this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
43 }
44
49 void SetEnabled(int enabling) override;
50
56
57protected:
60
63 {
64 Start = 0,
65 Active
66 };
67#if !defined(VTK_LEGACY_REMOVE)
68 VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
70#endif
71
72 // These methods handle events
78
80 static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
81
82private:
83 vtkSplineWidget2(const vtkSplineWidget2&) = delete;
84 void operator=(const vtkSplineWidget2&) = delete;
85};
86
87VTK_ABI_NAMESPACE_END
88#endif
define the API for widget / widget representation
supports function callbacks
a simple class to control print indentation
Definition vtkIndent.h:29
abstract base class for most VTK objects
Definition vtkObject.h:49
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)