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
103
104#ifndef vtkBiDimensionalWidget_h
105#define vtkBiDimensionalWidget_h
106
107#include "vtkAbstractWidget.h"
108#include "vtkInteractionWidgetsModule.h" // For export macro
109#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
110
111VTK_ABI_NAMESPACE_BEGIN
113class vtkHandleWidget;
114class vtkBiDimensionalWidgetCallback;
115
116class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkBiDimensionalWidget : public vtkAbstractWidget
117{
118public:
123
125
129 void PrintSelf(ostream& os, vtkIndent indent) override;
131
137 void SetEnabled(int) override;
138
148
156
161
167
171 enum
172 {
174 };
175
181
187
188 enum
189 {
190 Start = 0,
193 };
194
196
206 virtual void SetWidgetStateToStart();
209
213 virtual int GetWidgetState() { return this->WidgetState; }
214
215protected:
218
219 // The state of the widget
229
230 // Callback interface to capture events when
231 // placing the widget.
235
236 // The positioning handle widgets
245
246 // Methods invoked when the handles at the
247 // end points of the widget are manipulated
250
252
253private:
255 void operator=(const vtkBiDimensionalWidget&) = delete;
256};
257
258VTK_ABI_NAMESPACE_END
259#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:108
abstract class defines interface between the widget and widget representation classes
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO