VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Widgets
vtkRectilinearWipeWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkRectilinearWipeWidget.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
=========================================================================*/
82
#ifndef __vtkRectilinearWipeWidget_h
83
#define __vtkRectilinearWipeWidget_h
84
85
#include "
vtkAbstractWidget.h
"
86
87
class
vtkRectilinearWipeRepresentation
;
88
89
90
class
VTK_WIDGETS_EXPORT
vtkRectilinearWipeWidget
:
public
vtkAbstractWidget
91
{
92
public
:
94
static
vtkRectilinearWipeWidget
*
New
();
95
97
98
vtkTypeMacro(
vtkRectilinearWipeWidget
,
vtkAbstractWidget
);
99
void
PrintSelf
(ostream& os,
vtkIndent
indent);
101
103
106
void
SetRepresentation(
vtkRectilinearWipeRepresentation
*r)
107
{this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
109
111
112
vtkRectilinearWipeRepresentation
*GetRectilinearWipeRepresentation()
113
{
return
reinterpret_cast<
vtkRectilinearWipeRepresentation
*
>
(this->
WidgetRep
);}
115
117
virtual
void
CreateDefaultRepresentation
();
118
119
protected
:
120
vtkRectilinearWipeWidget
();
121
~
vtkRectilinearWipeWidget
();
122
123
// These methods handle events
124
static
void
SelectAction(
vtkAbstractWidget
*);
125
static
void
MoveAction(
vtkAbstractWidget
*);
126
static
void
EndSelectAction(
vtkAbstractWidget
*);
127
128
// helper methods for cursor management
129
void
SetCursor
(
int
state);
130
131
//BTX - manage the state of the widget
132
int
WidgetState
;
133
enum
_WidgetState
134
{
135
Start=0,
136
Selected
137
};
138
//ETX
139
140
private
:
141
vtkRectilinearWipeWidget
(
const
vtkRectilinearWipeWidget
&);
//Not implemented
142
void
operator=(
const
vtkRectilinearWipeWidget
&);
//Not implemented
143
};
144
145
#endif
Generated on Wed Nov 21 2012 21:34:08 for VTK by
1.8.2