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
=========================================================================*/
88
#ifndef vtkImplicitCylinderWidget_h
89
#define vtkImplicitCylinderWidget_h
90
91
#include "
vtkAbstractWidget.h
"
92
#include "vtkInteractionWidgetsModule.h"
// For export macro
93
94
class
vtkImplicitCylinderRepresentation
;
95
96
class
VTKINTERACTIONWIDGETS_EXPORT
vtkImplicitCylinderWidget
:
public
vtkAbstractWidget
97
{
98
public
:
102
static
vtkImplicitCylinderWidget
*
New
();
103
105
108
vtkTypeMacro(
vtkImplicitCylinderWidget
,
vtkAbstractWidget
);
109
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
111
117
void
SetRepresentation
(
vtkImplicitCylinderRepresentation
* rep);
118
122
vtkImplicitCylinderRepresentation
*
GetCylinderRepresentation
()
123
{
124
return
reinterpret_cast<
vtkImplicitCylinderRepresentation
*
>
(this->
WidgetRep
);
125
}
126
130
void
CreateDefaultRepresentation
()
override
;
131
132
protected
:
133
vtkImplicitCylinderWidget
();
134
~vtkImplicitCylinderWidget
()
override
=
default
;
135
136
// Manage the state of the widget
137
int
WidgetState
;
138
enum
_WidgetState
139
{
140
Start = 0,
141
Active
142
};
143
144
// These methods handle events
145
static
void
SelectAction
(
vtkAbstractWidget
*);
146
static
void
TranslateAction
(
vtkAbstractWidget
*);
147
static
void
ScaleAction
(
vtkAbstractWidget
*);
148
static
void
EndSelectAction
(
vtkAbstractWidget
*);
149
static
void
MoveAction
(
vtkAbstractWidget
*);
150
static
void
MoveCylinderAction
(
vtkAbstractWidget
*);
151
static
void
TranslationAxisLock
(
vtkAbstractWidget
*);
152
static
void
TranslationAxisUnLock
(
vtkAbstractWidget
*);
153
158
int
UpdateCursorShape
(
int
interactionState);
159
160
private
:
161
vtkImplicitCylinderWidget
(
const
vtkImplicitCylinderWidget
&) =
delete
;
162
void
operator=(
const
vtkImplicitCylinderWidget
&) =
delete
;
163
};
164
165
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:63
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition:
vtkAbstractWidget.h:172
vtkImplicitCylinderRepresentation
defining the representation for a vtkImplicitCylinderWidget
Definition:
vtkImplicitCylinderRepresentation.h:67
vtkImplicitCylinderWidget
3D widget for manipulating an infinite cylinder
Definition:
vtkImplicitCylinderWidget.h:97
vtkImplicitCylinderWidget::WidgetState
int WidgetState
Definition:
vtkImplicitCylinderWidget.h:137
vtkImplicitCylinderWidget::TranslationAxisLock
static void TranslationAxisLock(vtkAbstractWidget *)
vtkImplicitCylinderWidget::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkImplicitCylinderWidget::_WidgetState
_WidgetState
Definition:
vtkImplicitCylinderWidget.h:139
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:122
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 Sat Feb 25 2023 08:59:35 for VTK by
1.9.4