VTK  9.5.2
vtkBiDimensionalWidget.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
84
85#ifndef vtkBiDimensionalWidget_h
86#define vtkBiDimensionalWidget_h
87
88#include "vtkAbstractWidget.h"
89#include "vtkInteractionWidgetsModule.h" // For export macro
90#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
91
92VTK_ABI_NAMESPACE_BEGIN
94class vtkHandleWidget;
95class vtkBiDimensionalWidgetCallback;
96
97class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkBiDimensionalWidget : public vtkAbstractWidget
98{
99public:
104
106
110 void PrintSelf(ostream& os, vtkIndent indent) override;
112
118 void SetEnabled(int) override;
119
129
137
142
148
152 enum
153 {
155 };
156
162
168
169 enum
170 {
171 Start = 0,
174 };
175
177
187 virtual void SetWidgetStateToStart();
190
194 virtual int GetWidgetState() { return this->WidgetState; }
195
196protected:
199
200 // The state of the widget
210
211 // Callback interface to capture events when
212 // placing the widget.
216
217 // The positioning handle widgets
226
227 // Methods invoked when the handles at the
228 // end points of the widget are manipulated
231
233
234private:
236 void operator=(const vtkBiDimensionalWidget&) = delete;
237};
238
239VTK_ABI_NAMESPACE_END
240#endif
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
vtkWidgetRepresentation * WidgetRep
represent the vtkBiDimensionalWidget
vtkBiDimensionalRepresentation * GetBiDimensionalRepresentation()
Return the representation as a vtkBiDimensionalRepresentation.
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
virtual int GetWidgetState()
Return the current widget state.
vtkBiDimensionalWidgetCallback * BiDimensionalWidgetCallback1
static vtkBiDimensionalWidget * New()
Instantiate this class.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for a VTK class.
void SetProcessEvents(vtkTypeBool) override
Methods to change the whether the widget responds to interaction.
vtkBiDimensionalWidgetCallback * BiDimensionalWidgetCallback3
static void EndSelectAction(vtkAbstractWidget *)
vtkBiDimensionalWidgetCallback * BiDimensionalWidgetCallback4
virtual void EndBiDimensionalInteraction()
virtual void SetWidgetStateToStart()
Set the state of the widget.
~vtkBiDimensionalWidget() override
vtkBiDimensionalWidgetCallback * BiDimensionalWidgetCallback2
int IsMeasureValid()
A flag indicates whether the bi-dimensional measure is valid.
void SetRepresentation(vtkBiDimensionalRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
void SetEnabled(int) override
The method for activating and deactivating this widget.
static void MoveAction(vtkAbstractWidget *)
virtual void SetWidgetStateToManipulate()
Set the state of the widget.
static void AddPointAction(vtkAbstractWidget *)
void StartBiDimensionalInteraction()
a general widget for moving handles
a simple class to control print indentation
Definition vtkIndent.h:29
abstract class defines interface between the widget and widget representation classes
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO