VTK  9.5.2
vtkCoordinateFrameWidget.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
79
80#ifndef vtkCoordinateFrameWidget_h
81#define vtkCoordinateFrameWidget_h
82
83#include "vtkAbstractWidget.h"
84#include "vtkInteractionWidgetsModule.h" // For export macro
85#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
86
87VTK_ABI_NAMESPACE_BEGIN
89class vtkCoordinateFrameWidgetInteractionCallback;
90
91class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkCoordinateFrameWidget
92 : public vtkAbstractWidget
93{
95
96public:
101
103
107 void PrintSelf(ostream& os, vtkIndent indent) override;
109
116
117 // Description:
118 // Disable/Enable the widget if needed.
119 // Unobserved the camera if the widget is disabled.
120 void SetEnabled(int enabling) override;
121
129
134
135protected:
138
139 // Manage the state of the widget
142 {
143 Start = 0,
145 };
146
147 // These methods handle events
157
162 int UpdateCursorShape(int interactionState);
163
165
171private:
173 void operator=(const vtkCoordinateFrameWidget&) = delete;
174};
175
176VTK_ABI_NAMESPACE_END
177#endif
vtkWidgetRepresentation * WidgetRep
a class defining the representation for a vtkCoordinateFrameWidget
static void PickDirectionPointAction(vtkAbstractWidget *w)
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static void EndSelectAction(vtkAbstractWidget *)
int UpdateCursorShape(int interactionState)
Update the cursor shape based on the interaction state.
vtkCoordinateFrameRepresentation * GetCoordinateFrameRepresentation()
Return the representation as a vtkCoordinateFrameRepresentation.
~vtkCoordinateFrameWidget() override
static void MoveAction(vtkAbstractWidget *)
static void TranslateAction(vtkAbstractWidget *)
vtkCoordinateFrameWidgetInteractionCallback * InteractionCallback
Handle the interaction callback that may come from the representation.
static void SelectAction(vtkAbstractWidget *)
static void PickNormalAction(vtkAbstractWidget *)
static void TranslationAxisLock(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtkObject methods.
static vtkCoordinateFrameWidget * New()
Instantiate the object.
static void PickOriginAction(vtkAbstractWidget *)
void SetRepresentation(vtkCoordinateFrameRepresentation *rep)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
void SetEnabled(int enabling) override
Methods for activating this widget.
friend class vtkCoordinateFrameWidgetInteractionCallback
void InvokeInteractionCallback()
Handle the interaction callback that may come from the representation.
static void TranslationAxisUnLock(vtkAbstractWidget *)
a simple class to control print indentation
Definition vtkIndent.h:29
#define VTK_MARSHALAUTO