VTK  9.4.20251007
vtkSphereWidget2.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
80
81#ifndef vtkSphereWidget2_h
82#define vtkSphereWidget2_h
83
84#include "vtkAbstractWidget.h"
85#include "vtkInteractionWidgetsModule.h" // For export macro
86#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
87
88VTK_ABI_NAMESPACE_BEGIN
90class vtkHandleWidget;
91
92class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkSphereWidget2 : public vtkAbstractWidget
93{
94public:
99
101
105 void PrintSelf(ostream& os, vtkIndent indent) override;
107
117
119
128 vtkBooleanMacro(ScalingEnabled, vtkTypeBool);
130
136
141 void SetEnabled(int enabling) override;
142
143protected:
146
147 // Manage the state of the widget
150 {
151 Start = 0,
153 };
154
155 // These methods handle events
161
162 // Control whether scaling and translation are supported
165
167 static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
168
169private:
170 vtkSphereWidget2(const vtkSphereWidget2&) = delete;
171 void operator=(const vtkSphereWidget2&) = delete;
172};
173
174VTK_ABI_NAMESPACE_END
175#endif
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
supports function callbacks
a general widget for moving handles
a simple class to control print indentation
Definition vtkIndent.h:29
a class defining the representation for the vtkSphereWidget2
static void TranslateAction(vtkAbstractWidget *)
static void ProcessKeyEvents(vtkObject *, unsigned long, void *, void *)
static vtkSphereWidget2 * New()
Instantiate the object.
~vtkSphereWidget2() override
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static void ScaleAction(vtkAbstractWidget *)
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method because the line widget must enable its internal handle wi...
vtkCallbackCommand * KeyEventCallbackCommand
static void SelectAction(vtkAbstractWidget *)
static void MoveAction(vtkAbstractWidget *)
void SetRepresentation(vtkSphereRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
vtkTypeBool ScalingEnabled
vtkTypeBool TranslationEnabled
void PrintSelf(ostream &os, vtkIndent indent) override
Standard class methods for type information and printing.
static void EndSelectAction(vtkAbstractWidget *)
abstract class defines interface between the widget and widget representation classes
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO