VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
dox
Interaction
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 "
vtkInteractionWidgetsModule.h
"
// For export macro
64
#include "
vtkAbstractWidget.h
"
65
66
class
vtkButtonRepresentation
;
67
68
69
class
VTKINTERACTIONWIDGETS_EXPORT
vtkButtonWidget
:
public
vtkAbstractWidget
70
{
71
public
:
73
static
vtkButtonWidget
*
New
();
74
76
77
vtkTypeMacro(
vtkButtonWidget
,
vtkAbstractWidget
);
78
void
PrintSelf
(ostream& os,
vtkIndent
indent);
80
82
85
void
SetRepresentation
(
vtkButtonRepresentation
*r)
86
{this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
88
90
91
vtkButtonRepresentation
*
GetSliderRepresentation
()
92
{
return
reinterpret_cast<
vtkButtonRepresentation
*
>
(this->
WidgetRep
);}
94
96
void
CreateDefaultRepresentation
();
97
98
protected
:
99
vtkButtonWidget
();
100
~vtkButtonWidget
() {}
101
102
// These are the events that are handled
103
static
void
SelectAction(
vtkAbstractWidget
*);
104
static
void
MoveAction(
vtkAbstractWidget
*);
105
static
void
EndSelectAction(
vtkAbstractWidget
*);
106
107
//BTX - manage the state of the widget
108
int
WidgetState
;
109
enum
_WidgetState
110
{
111
Start=0,
112
Hovering
,
113
Selecting
114
};
115
//ETX
116
117
private
:
118
vtkButtonWidget
(
const
vtkButtonWidget
&);
//Not implemented
119
void
operator=(
const
vtkButtonWidget
&);
//Not implemented
120
};
121
122
#endif
vtkButtonWidget::WidgetState
int WidgetState
Definition:
vtkButtonWidget.h:108
vtkAbstractWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkButtonWidget::GetSliderRepresentation
vtkButtonRepresentation * GetSliderRepresentation()
Definition:
vtkButtonWidget.h:91
vtkButtonWidget::_WidgetState
_WidgetState
Definition:
vtkButtonWidget.h:109
vtkButtonWidget
activate an n-state button
Definition:
vtkButtonWidget.h:69
vtkAbstractWidget.h
vtkAbstractWidget::CreateDefaultRepresentation
virtual void CreateDefaultRepresentation()=0
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition:
vtkAbstractWidget.h:159
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition:
vtkInteractionWidgetsModule.h:15
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkButtonWidget::Hovering
Definition:
vtkButtonWidget.h:112
vtkButtonRepresentation
abstract class defines the representation for a vtkButtonWidget
Definition:
vtkButtonRepresentation.h:47
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:65
vtkButtonWidget::~vtkButtonWidget
~vtkButtonWidget()
Definition:
vtkButtonWidget.h:100
vtkObject::New
static vtkObject * New()
vtkInteractionWidgetsModule.h
vtkButtonWidget::SetRepresentation
void SetRepresentation(vtkButtonRepresentation *r)
Definition:
vtkButtonWidget.h:85
Generated by
1.8.9.1