VTK
9.4.20250114
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkImplicitCylinderWidget.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
82
#ifndef vtkImplicitCylinderWidget_h
83
#define vtkImplicitCylinderWidget_h
84
85
#include "
vtkAbstractWidget.h
"
86
#include "vtkInteractionWidgetsModule.h"
// For export macro
87
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
88
89
VTK_ABI_NAMESPACE_BEGIN
90
class
vtkImplicitCylinderRepresentation
;
91
92
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkImplicitCylinderWidget
93
:
public
vtkAbstractWidget
94
{
95
public
:
99
static
vtkImplicitCylinderWidget
*
New
();
100
102
105
vtkTypeMacro(
vtkImplicitCylinderWidget
,
vtkAbstractWidget
);
106
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
108
114
void
SetRepresentation
(
vtkImplicitCylinderRepresentation
* rep);
115
119
vtkImplicitCylinderRepresentation
*
GetCylinderRepresentation
()
120
{
121
return
reinterpret_cast<
vtkImplicitCylinderRepresentation
*
>
(this->
WidgetRep
);
122
}
123
127
void
CreateDefaultRepresentation
()
override
;
128
129
protected
:
130
vtkImplicitCylinderWidget
();
131
~vtkImplicitCylinderWidget
()
override
=
default
;
132
133
// Manage the state of the widget
134
int
WidgetState
;
135
enum
WidgetStateType
136
{
137
Start = 0,
138
Active
139
};
140
141
// These methods handle events
142
static
void
SelectAction
(
vtkAbstractWidget
*);
143
static
void
TranslateAction
(
vtkAbstractWidget
*);
144
static
void
ScaleAction
(
vtkAbstractWidget
*);
145
static
void
EndSelectAction
(
vtkAbstractWidget
*);
146
static
void
MoveAction
(
vtkAbstractWidget
*);
147
static
void
MoveCylinderAction
(
vtkAbstractWidget
*);
148
static
void
TranslationAxisLock
(
vtkAbstractWidget
*);
149
static
void
TranslationAxisUnLock
(
vtkAbstractWidget
*);
150
155
int
UpdateCursorShape
(
int
interactionState);
156
157
private
:
158
vtkImplicitCylinderWidget
(
const
vtkImplicitCylinderWidget
&) =
delete
;
159
void
operator=(
const
vtkImplicitCylinderWidget
&) =
delete
;
160
};
161
162
VTK_ABI_NAMESPACE_END
163
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition
vtkAbstractWidget.h:86
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:200
vtkImplicitCylinderRepresentation
defining the representation for a vtkImplicitCylinderWidget
Definition
vtkImplicitCylinderRepresentation.h:60
vtkImplicitCylinderWidget
3D widget for manipulating an infinite cylinder
Definition
vtkImplicitCylinderWidget.h:94
vtkImplicitCylinderWidget::WidgetState
int WidgetState
Definition
vtkImplicitCylinderWidget.h:134
vtkImplicitCylinderWidget::TranslationAxisLock
static void TranslationAxisLock(vtkAbstractWidget *)
vtkImplicitCylinderWidget::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkImplicitCylinderWidget::New
static vtkImplicitCylinderWidget * New()
Instantiate the object.
vtkImplicitCylinderWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkImplicitCylinderWidget::MoveCylinderAction
static void MoveCylinderAction(vtkAbstractWidget *)
vtkImplicitCylinderWidget::GetCylinderRepresentation
vtkImplicitCylinderRepresentation * GetCylinderRepresentation()
Return the representation as a vtkImplicitCylinderRepresentation.
Definition
vtkImplicitCylinderWidget.h:119
vtkImplicitCylinderWidget::TranslationAxisUnLock
static void TranslationAxisUnLock(vtkAbstractWidget *)
vtkImplicitCylinderWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtkObject methods.
vtkImplicitCylinderWidget::TranslateAction
static void TranslateAction(vtkAbstractWidget *)
vtkImplicitCylinderWidget::SetRepresentation
void SetRepresentation(vtkImplicitCylinderRepresentation *rep)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
vtkImplicitCylinderWidget::WidgetStateType
WidgetStateType
Definition
vtkImplicitCylinderWidget.h:136
vtkImplicitCylinderWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkImplicitCylinderWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkImplicitCylinderWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkImplicitCylinderWidget::vtkImplicitCylinderWidget
vtkImplicitCylinderWidget()
vtkImplicitCylinderWidget::UpdateCursorShape
int UpdateCursorShape(int interactionState)
Update the cursor shape based on the interaction state.
vtkImplicitCylinderWidget::~vtkImplicitCylinderWidget
~vtkImplicitCylinderWidget() override=default
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkAbstractWidget.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:50
Generated on Tue Jan 14 2025 14:31:25 for VTK by
1.9.7