VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Widgets
vtkButtonWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkButtonWidget.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
=========================================================================*/
60
#ifndef __vtkButtonWidget_h
61
#define __vtkButtonWidget_h
62
63
#include "
vtkAbstractWidget.h
"
64
65
class
vtkButtonRepresentation
;
66
67
68
class
VTK_WIDGETS_EXPORT
vtkButtonWidget
:
public
vtkAbstractWidget
69
{
70
public
:
72
static
vtkButtonWidget
*
New
();
73
75
76
vtkTypeMacro(
vtkButtonWidget
,
vtkAbstractWidget
);
77
void
PrintSelf
(ostream& os,
vtkIndent
indent);
79
81
84
void
SetRepresentation
(
vtkButtonRepresentation
*r)
85
{this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
87
89
90
vtkButtonRepresentation
*
GetSliderRepresentation
()
91
{
return
reinterpret_cast<
vtkButtonRepresentation
*
>
(this->
WidgetRep
);}
93
95
void
CreateDefaultRepresentation
();
96
97
protected
:
98
vtkButtonWidget
();
99
~vtkButtonWidget
() {}
100
101
// These are the events that are handled
102
static
void
SelectAction(
vtkAbstractWidget
*);
103
static
void
MoveAction(
vtkAbstractWidget
*);
104
static
void
EndSelectAction(
vtkAbstractWidget
*);
105
106
//BTX - manage the state of the widget
107
int
WidgetState
;
108
enum
_WidgetState
109
{
110
Start=0,
111
Hovering
,
112
Selecting
113
};
114
//ETX
115
116
private
:
117
vtkButtonWidget
(
const
vtkButtonWidget
&);
//Not implemented
118
void
operator=(
const
vtkButtonWidget
&);
//Not implemented
119
};
120
121
#endif
Generated on Fri Aug 2 2013 12:20:03 for VTK by
1.8.4