VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkImplicitCylinderWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkImplicitCylinderWidget.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
94
#ifndef vtkImplicitCylinderWidget_h
95
#define vtkImplicitCylinderWidget_h
96
97
#include "
vtkAbstractWidget.h
"
98
#include "vtkInteractionWidgetsModule.h"
// For export macro
99
100
class
vtkImplicitCylinderRepresentation
;
101
102
class
VTKINTERACTIONWIDGETS_EXPORT
vtkImplicitCylinderWidget
:
public
vtkAbstractWidget
103
{
104
public
:
108
static
vtkImplicitCylinderWidget
*
New
();
109
111
114
vtkTypeMacro(
vtkImplicitCylinderWidget
,
vtkAbstractWidget
);
115
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
117
123
void
SetRepresentation
(
vtkImplicitCylinderRepresentation
* rep);
124
128
vtkImplicitCylinderRepresentation
*
GetCylinderRepresentation
()
129
{
130
return
reinterpret_cast<
vtkImplicitCylinderRepresentation
*
>
(this->
WidgetRep
);
131
}
132
136
void
CreateDefaultRepresentation
()
override
;
137
138
protected
:
139
vtkImplicitCylinderWidget
();
140
~vtkImplicitCylinderWidget
()
override
=
default
;
141
142
// Manage the state of the widget
143
int
WidgetState
;
144
enum
_WidgetState
145
{
146
Start = 0,
147
Active
148
};
149
150
// These methods handle events
151
static
void
SelectAction
(
vtkAbstractWidget
*);
152
static
void
TranslateAction
(
vtkAbstractWidget
*);
153
static
void
ScaleAction
(
vtkAbstractWidget
*);
154
static
void
EndSelectAction
(
vtkAbstractWidget
*);
155
static
void
MoveAction
(
vtkAbstractWidget
*);
156
static
void
MoveCylinderAction
(
vtkAbstractWidget
*);
157
static
void
TranslationAxisLock
(
vtkAbstractWidget
*);
158
static
void
TranslationAxisUnLock
(
vtkAbstractWidget
*);
159
164
int
UpdateCursorShape
(
int
interactionState);
165
166
private
:
167
vtkImplicitCylinderWidget
(
const
vtkImplicitCylinderWidget
&) =
delete
;
168
void
operator=(
const
vtkImplicitCylinderWidget
&) =
delete
;
169
};
170
171
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:66
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition:
vtkAbstractWidget.h:175
vtkImplicitCylinderRepresentation
defining the representation for a vtkImplicitCylinderWidget
Definition:
vtkImplicitCylinderRepresentation.h:67
vtkImplicitCylinderWidget
3D widget for manipulating an infinite cylinder
Definition:
vtkImplicitCylinderWidget.h:103
vtkImplicitCylinderWidget::WidgetState
int WidgetState
Definition:
vtkImplicitCylinderWidget.h:143
vtkImplicitCylinderWidget::TranslationAxisLock
static void TranslationAxisLock(vtkAbstractWidget *)
vtkImplicitCylinderWidget::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkImplicitCylinderWidget::_WidgetState
_WidgetState
Definition:
vtkImplicitCylinderWidget.h:145
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:128
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::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:113
vtkAbstractWidget.h
Generated on Fri Apr 21 2023 10:28:53 for VTK by
1.9.6