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
30 #ifndef vtkPolyLineWidget_h
31 #define vtkPolyLineWidget_h
32 
33 #include "vtkAbstractWidget.h"
34 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
35 #include "vtkInteractionWidgetsModule.h" // For export macro
36 #include "vtkLegacy.h" // for VTK_LEGACY_REMOVE
37 
38 VTK_ABI_NAMESPACE_BEGIN
40 
41 class VTKINTERACTIONWIDGETS_EXPORT vtkPolyLineWidget : public vtkAbstractWidget
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
54  {
55  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
56  }
57 
62  void CreateDefaultRepresentation() override;
63 
68  void SetEnabled(int enabling) override;
69 
70 protected:
72  ~vtkPolyLineWidget() override;
73 
76  {
77  Start = 0,
78  Active
79  };
80 #if !defined(VTK_LEGACY_REMOVE)
81  VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
83 #endif
84 
85  // These methods handle events
91 
93  static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
94 
95 private:
96  vtkPolyLineWidget(const vtkPolyLineWidget&) = delete;
97  void operator=(const vtkPolyLineWidget&) = delete;
98 };
99 
100 VTK_ABI_NAMESPACE_END
101 #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:52
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 void SelectAction(vtkAbstractWidget *)
static vtkPolyLineWidget * New()
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)