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
=========================================================================*/
97
#ifndef __vtkImplicitPlaneWidget2_h
98
#define __vtkImplicitPlaneWidget2_h
99
100
#include "
vtkAbstractWidget.h
"
101
102
class
vtkImplicitPlaneRepresentation
;
103
104
105
class
VTK_WIDGETS_EXPORT
vtkImplicitPlaneWidget2
:
public
vtkAbstractWidget
106
{
107
public
:
109
static
vtkImplicitPlaneWidget2
*
New
();
110
112
113
vtkTypeMacro(
vtkImplicitPlaneWidget2
,
vtkAbstractWidget
);
114
void
PrintSelf
(ostream& os,
vtkIndent
indent);
116
118
121
void
SetRepresentation(
vtkImplicitPlaneRepresentation
*r)
122
{this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
124
126
127
vtkImplicitPlaneRepresentation
*GetImplicitPlaneRepresentation()
128
{
return
reinterpret_cast<
vtkImplicitPlaneRepresentation
*
>
(this->
WidgetRep
);}
130
132
void
CreateDefaultRepresentation
();
133
134
protected
:
135
vtkImplicitPlaneWidget2
();
136
~
vtkImplicitPlaneWidget2
();
137
138
//BTX - manage the state of the widget
139
int
WidgetState
;
140
enum
_WidgetState
{Start=0,Active};
141
//ETX
142
143
// These methods handle events
144
static
void
SelectAction(
vtkAbstractWidget
*);
145
static
void
TranslateAction(
vtkAbstractWidget
*);
146
static
void
ScaleAction(
vtkAbstractWidget
*);
147
static
void
EndSelectAction(
vtkAbstractWidget
*);
148
static
void
MoveAction(
vtkAbstractWidget
*);
149
152
int
UpdateCursorShape(
int
interactionState );
153
154
private
:
155
vtkImplicitPlaneWidget2
(
const
vtkImplicitPlaneWidget2
&);
//Not implemented
156
void
operator=(
const
vtkImplicitPlaneWidget2
&);
//Not implemented
157
};
158
159
#endif
Generated on Thu Mar 13 2014 08:10:40 for VTK by
1.8.1.2