VTK  9.3.20240831
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 "vtkInteractionWidgetsModule.h" // For export macro
35#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
36
37VTK_ABI_NAMESPACE_BEGIN
39
40class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkPolyLineWidget : public vtkAbstractWidget
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
53 {
54 this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
55 }
56
62
67 void SetEnabled(int enabling) override;
68
69protected:
72
75 {
76 Start = 0,
77 Active
78 };
79
80 // These methods handle events
86
88 static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
89
90private:
91 vtkPolyLineWidget(const vtkPolyLineWidget&) = delete;
92 void operator=(const vtkPolyLineWidget&) = delete;
93};
94
95VTK_ABI_NAMESPACE_END
96#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
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_MARSHALAUTO