VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Widgets
vtkImplicitPlaneWidget2.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkImplicitPlaneWidget2.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
=========================================================================*/
101
#ifndef __vtkImplicitPlaneWidget2_h
102
#define __vtkImplicitPlaneWidget2_h
103
104
#include "
vtkAbstractWidget.h
"
105
106
class
vtkImplicitPlaneRepresentation
;
107
class
vtkInteractionCallback;
108
109
class
VTK_WIDGETS_EXPORT
vtkImplicitPlaneWidget2
:
public
vtkAbstractWidget
110
{
111
friend
class
vtkInteractionCallback;
112
113
public
:
115
static
vtkImplicitPlaneWidget2
*
New
();
116
118
119
vtkTypeMacro(
vtkImplicitPlaneWidget2
,
vtkAbstractWidget
);
120
void
PrintSelf
(ostream& os,
vtkIndent
indent);
122
126
void
SetRepresentation(
vtkImplicitPlaneRepresentation
*rep );
127
128
// Descritpion:
129
// Disable/Enable the widget if needed.
130
// Unobserved the camera if the widget is disabled.
131
void
SetEnabled
(
int
enabling);
132
135
void
SetLockNormalToCamera(
int
lock);
136
138
139
vtkImplicitPlaneRepresentation
*GetImplicitPlaneRepresentation()
140
{
return
reinterpret_cast<
vtkImplicitPlaneRepresentation
*
>
(this->
WidgetRep
);}
142
144
void
CreateDefaultRepresentation
();
145
146
protected
:
147
vtkImplicitPlaneWidget2
();
148
~
vtkImplicitPlaneWidget2
();
149
150
//BTX - manage the state of the widget
151
int
WidgetState
;
152
enum
_WidgetState
{Start=0,Active};
153
//ETX
154
155
// These methods handle events
156
static
void
SelectAction(
vtkAbstractWidget
*);
157
static
void
TranslateAction(
vtkAbstractWidget
*);
158
static
void
ScaleAction(
vtkAbstractWidget
*);
159
static
void
EndSelectAction(
vtkAbstractWidget
*);
160
static
void
MoveAction(
vtkAbstractWidget
*);
161
static
void
MovePlaneAction(
vtkAbstractWidget
*);
162
165
int
UpdateCursorShape(
int
interactionState );
166
168
169
vtkInteractionCallback *
InteractionCallback
;
170
void
InvokeInteractionCallback();
172
173
private
:
174
vtkImplicitPlaneWidget2
(
const
vtkImplicitPlaneWidget2
&);
//Not implemented
175
void
operator=(
const
vtkImplicitPlaneWidget2
&);
//Not implemented
176
};
177
178
#endif
Generated on Tue Jan 8 2013 05:45:40 for VTK by
1.8.1.2