VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Interaction
Widgets
vtkBalloonWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkBalloonWidget.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
=========================================================================*/
76
#ifndef __vtkBalloonWidget_h
77
#define __vtkBalloonWidget_h
78
79
#include "vtkInteractionWidgetsModule.h"
// For export macro
80
#include "
vtkHoverWidget.h
"
81
82
class
vtkBalloonRepresentation
;
83
class
vtkProp
;
84
class
vtkAbstractPropPicker
;
85
class
vtkStdString
;
86
class
vtkPropMap;
87
class
vtkImageData
;
88
89
90
class
VTKINTERACTIONWIDGETS_EXPORT
vtkBalloonWidget
:
public
vtkHoverWidget
91
{
92
public
:
94
static
vtkBalloonWidget
*
New
();
95
97
98
vtkTypeMacro(
vtkBalloonWidget
,
vtkHoverWidget
);
99
void
PrintSelf
(ostream& os,
vtkIndent
indent);
101
105
virtual
void
SetEnabled
(
int
);
106
108
111
void
SetRepresentation(
vtkBalloonRepresentation
*r)
112
{this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
114
116
117
vtkBalloonRepresentation
*GetBalloonRepresentation()
118
{
return
reinterpret_cast<
vtkBalloonRepresentation
*
>
(this->
WidgetRep
);}
120
122
void
CreateDefaultRepresentation
();
123
125
127
void
AddBalloon(
vtkProp
*prop,
vtkStdString
*str,
vtkImageData
*img);
128
void
AddBalloon(
vtkProp
*prop,
const
char
*str,
vtkImageData
*img);
129
void
AddBalloon(
vtkProp
*prop,
const
char
*str)
//for wrapping
130
{this->
AddBalloon
(prop,str,NULL);}
131
void
RemoveBalloon(
vtkProp
*prop);
133
135
139
const
char
*GetBalloonString(
vtkProp
*prop);
140
vtkImageData
*GetBalloonImage(
vtkProp
*prop);
142
144
146
void
UpdateBalloonString(
vtkProp
*prop,
const
char
*str);
147
void
UpdateBalloonImage(
vtkProp
*prop,
vtkImageData
*
image
);
149
151
153
virtual
vtkProp
*GetCurrentProp()
154
{
return
this->CurrentProp;}
156
158
162
void
SetPicker(
vtkAbstractPropPicker
*);
163
vtkGetObjectMacro(Picker,
vtkAbstractPropPicker
);
165
166
protected
:
167
vtkBalloonWidget
();
168
~
vtkBalloonWidget
();
169
170
// This class implements the method called from its superclass.
171
virtual
int
SubclassEndHoverAction
();
172
virtual
int
SubclassHoverAction
();
173
174
// Classes for managing balloons
175
vtkPropMap *
PropMap
;
//PIMPL'd map of (vtkProp,vtkStdString)
176
177
// Support for picking
178
vtkAbstractPropPicker
*
Picker
;
179
180
// The vtkProp that is being hovered over (which may be NULL)
181
vtkProp
*
CurrentProp
;
182
183
private
:
184
vtkBalloonWidget
(
const
vtkBalloonWidget
&);
//Not implemented
185
void
operator=(
const
vtkBalloonWidget
&);
//Not implemented
186
};
187
188
#endif
Generated on Thu May 24 2012 22:22:27 for VTK by
1.8.1