|
virtual void | SetEnabled (int) |
|
void | CreateDefaultRepresentation () |
|
|
void | SetRepresentation (vtkBalloonRepresentation *r) |
|
|
vtkBalloonRepresentation * | GetBalloonRepresentation () |
|
|
void | AddBalloon (vtkProp *prop, vtkStdString *str, vtkImageData *img) |
|
void | AddBalloon (vtkProp *prop, const char *str, vtkImageData *img) |
|
void | AddBalloon (vtkProp *prop, const char *str) |
|
void | RemoveBalloon (vtkProp *prop) |
|
|
const char * | GetBalloonString (vtkProp *prop) |
|
vtkImageData * | GetBalloonImage (vtkProp *prop) |
|
|
void | UpdateBalloonString (vtkProp *prop, const char *str) |
|
void | UpdateBalloonImage (vtkProp *prop, vtkImageData *image) |
|
|
virtual vtkProp * | GetCurrentProp () |
|
|
void | SetPicker (vtkAbstractPropPicker *) |
|
virtual vtkAbstractPropPicker * | GetPicker () |
|
virtual void | SetTimerDuration (int) |
|
virtual int | GetTimerDuration () |
|
void | CreateDefaultRepresentation () |
|
vtkHoverWidget * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
void | Render () |
|
virtual void | SetPriority (float) |
|
virtual void | SetProcessEvents (int) |
|
virtual int | GetProcessEvents () |
|
virtual void | ProcessEventsOn () |
|
virtual void | ProcessEventsOff () |
|
vtkWidgetEventTranslator * | GetEventTranslator () |
|
void | SetParent (vtkAbstractWidget *parent) |
|
virtual vtkAbstractWidget * | GetParent () |
|
vtkWidgetRepresentation * | GetRepresentation () |
|
virtual void | SetManagesCursor (int) |
|
virtual int | GetManagesCursor () |
|
virtual void | ManagesCursorOn () |
|
virtual void | ManagesCursorOff () |
|
vtkAbstractWidget * | NewInstance () const |
|
vtkInteractorObserver * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
virtual void | OnChar () |
|
int | GetEnabled () |
|
void | EnabledOn () |
|
void | EnabledOff () |
|
void | On () |
|
void | Off () |
|
virtual void | SetInteractor (vtkRenderWindowInteractor *iren) |
|
virtual vtkRenderWindowInteractor * | GetInteractor () |
|
virtual float | GetPriority () |
|
virtual void | PickingManagedOn () |
|
virtual void | PickingManagedOff () |
|
virtual void | SetPickingManaged (bool) |
|
virtual bool | GetPickingManaged () |
|
virtual void | SetKeyPressActivation (int) |
|
virtual int | GetKeyPressActivation () |
|
virtual void | KeyPressActivationOn () |
|
virtual void | KeyPressActivationOff () |
|
virtual void | SetKeyPressActivationValue (char) |
|
virtual char | GetKeyPressActivationValue () |
|
virtual vtkRenderer * | GetDefaultRenderer () |
|
virtual void | SetDefaultRenderer (vtkRenderer *) |
|
virtual vtkRenderer * | GetCurrentRenderer () |
|
virtual void | SetCurrentRenderer (vtkRenderer *) |
|
void | GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
|
void | ReleaseFocus () |
|
vtkObject * | NewInstance () const |
|
virtual void | DebugOn () |
|
virtual void | DebugOff () |
|
bool | GetDebug () |
|
void | SetDebug (bool debugFlag) |
|
virtual void | Modified () |
|
virtual unsigned long | GetMTime () |
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
|
vtkCommand * | GetCommand (unsigned long tag) |
|
void | RemoveObserver (vtkCommand *) |
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
|
void | RemoveObservers (const char *event, vtkCommand *) |
|
int | HasObserver (unsigned long event, vtkCommand *) |
|
int | HasObserver (const char *event, vtkCommand *) |
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
int | HasObserver (unsigned long event) |
|
int | HasObserver (const char *event) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
int | InvokeEvent (unsigned long event, void *callData) |
|
int | InvokeEvent (const char *event, void *callData) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
const char * | GetClassName () const |
|
virtual void | Delete () |
|
virtual void | FastDelete () |
|
void | Print (ostream &os) |
|
virtual void | Register (vtkObjectBase *o) |
|
virtual void | UnRegister (vtkObjectBase *o) |
|
void | SetReferenceCount (int) |
|
void | PrintRevisions (ostream &) |
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
int | GetReferenceCount () |
|
popup text balloons above instance of vtkProp when hovering occurs
The vtkBalloonWidget is used to popup text and/or an image when the mouse hovers over an instance of vtkProp. The widget keeps track of (vtkProp,vtkBalloon) pairs (where the internal vtkBalloon class is defined by a pair of vtkStdString and vtkImageData), and when the mouse stops moving for a user-specified period of time over the vtkProp, then the vtkBalloon is drawn nearby the vtkProp. Note that an instance of vtkBalloonRepresentation is used to draw the balloon.
To use this widget, specify an instance of vtkBalloonWidget and a representation (e.g., vtkBalloonRepresentation). Then list all instances of vtkProp, a text string, and/or an instance of vtkImageData to be associated with each vtkProp. (Note that you can specify both text and an image, or just one or the other.) You may also wish to specify the hover delay (i.e., set in the superclass vtkHoverWidget).
- Event Bindings:
- By default, the widget observes the following VTK events (i.e., it watches the vtkRenderWindowInteractor for these events):
MouseMoveEvent - occurs when mouse is moved in render window.
TimerEvent - occurs when the time between events (e.g., mouse move)
is greater than TimerDuration.
KeyPressEvent - when the "Enter" key is pressed after the balloon appears,
a callback is activated (e.g., WidgetActivateEvent).
- Event Bindings:
- Note that the event bindings described above can be changed using this class's vtkWidgetEventTranslator. This class translates VTK events into the vtkBalloonWidget's widget events:
vtkWidgetEvent::Move -- start the timer
vtkWidgetEvent::TimedOut -- when hovering occurs,
vtkWidgetEvent::SelectAction -- activate any callbacks associated
with the balloon.
- Event Bindings:
- This widget invokes the following VTK events on itself (which observers can listen for):
vtkCommand::TimerEvent (when hovering is determined to occur)
vtkCommand::EndInteractionEvent (after a hover has occurred and the
mouse begins moving again).
vtkCommand::WidgetActivateEvent (when the balloon is selected with a
keypress).
- See also
- vtkAbstractWidget
- Examples:
- vtkBalloonWidget (Examples)
- Tests:
- vtkBalloonWidget (Tests)
Definition at line 90 of file vtkBalloonWidget.h.