VTK  9.3.0
vtkPolyLineWidget.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
27#ifndef vtkPolyLineWidget_h
28#define vtkPolyLineWidget_h
29
30#include "vtkAbstractWidget.h"
31#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
32#include "vtkInteractionWidgetsModule.h" // For export macro
33#include "vtkLegacy.h" // for VTK_LEGACY_REMOVE
34
35VTK_ABI_NAMESPACE_BEGIN
37
38class VTKINTERACTIONWIDGETS_EXPORT vtkPolyLineWidget : public vtkAbstractWidget
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
51 {
52 this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
53 }
54
60
65 void SetEnabled(int enabling) override;
66
67protected:
70
73 {
74 Start = 0,
75 Active
76 };
77#if !defined(VTK_LEGACY_REMOVE)
78 VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
80#endif
81
82 // These methods handle events
88
90 static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
91
92private:
93 vtkPolyLineWidget(const vtkPolyLineWidget&) = delete;
94 void operator=(const vtkPolyLineWidget&) = delete;
95};
96
97VTK_ABI_NAMESPACE_END
98#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
vtkWidgetRepresentation for a poly line.
widget for vtkPolyLineRepresentation.
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.
vtkCallbackCommand * KeyEventCallbackCommand
static vtkPolyLineWidget * New()
static void SelectAction(vtkAbstractWidget *)
static void MoveAction(vtkAbstractWidget *)
static void ScaleAction(vtkAbstractWidget *)
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method because the line widget must enable its internal handle wi...
static void ProcessKeyEvents(vtkObject *, unsigned long, void *, void *)
void SetRepresentation(vtkPolyLineRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
~vtkPolyLineWidget() override
static void EndSelectAction(vtkAbstractWidget *)
static void TranslateAction(vtkAbstractWidget *)
abstract class defines interface between the widget and widget representation classes
#define VTK_DEPRECATED_IN_9_2_0(reason)