#include <vtkTooltipItem.h>
The vtkTooltipItem is drawn in screen coordinates. It is used to display a tooltip on a scene, giving additional information about an element on the scene, such as in vtkChartXY. It takes care of ensuring that it draws itself within the bounds of the screen.
Definition at line 36 of file vtkTooltipItem.h.
Public Types | |
typedef vtkContextItem | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Update () |
virtual bool | Paint (vtkContext2D *painter) |
virtual void | SetPosition (float, float) |
void | SetPosition (float[2]) |
virtual float * | GetPosition () |
virtual void | GetPosition (float &, float &) |
virtual void | GetPosition (float[2]) |
virtual void | SetText (const char *) |
virtual char * | GetText () |
virtual vtkPen * | GetPen () |
virtual vtkBrush * | GetBrush () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkTooltipItem * | SafeDownCast (vtkObject *o) |
static vtkTooltipItem * | New () |
Protected Member Functions | |
vtkTooltipItem () | |
~vtkTooltipItem () | |
Protected Attributes | |
vtkVector2f | PositionVector |
float * | Position |
char * | Text |
vtkTextProperty * | TextProperties |
vtkPen * | Pen |
vtkBrush * | Brush |
vtkTooltipItem::vtkTooltipItem | ( | ) | [protected] |
vtkTooltipItem::~vtkTooltipItem | ( | ) | [protected] |
virtual const char* vtkTooltipItem::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkContextItem.
static int vtkTooltipItem::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkContextItem.
virtual int vtkTooltipItem::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkContextItem.
static vtkTooltipItem* vtkTooltipItem::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkContextItem.
virtual void vtkTooltipItem::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkContextItem.
static vtkTooltipItem* vtkTooltipItem::New | ( | ) | [static] |
Creates a 2D Chart object.
Reimplemented from vtkObject.
virtual void vtkTooltipItem::SetPosition | ( | float | , | |
float | ||||
) | [virtual] |
Set the position of the tooltip (in pixels).
void vtkTooltipItem::SetPosition | ( | float | [2] | ) |
Set the position of the tooltip (in pixels).
virtual float* vtkTooltipItem::GetPosition | ( | ) | [virtual] |
Get position of the axis (in pixels).
virtual void vtkTooltipItem::GetPosition | ( | float & | , | |
float & | ||||
) | [virtual] |
Get position of the axis (in pixels).
virtual void vtkTooltipItem::GetPosition | ( | float | [2] | ) | [virtual] |
Get position of the axis (in pixels).
virtual void vtkTooltipItem::SetText | ( | const char * | ) | [virtual] |
Get/set the text of the item.
virtual char* vtkTooltipItem::GetText | ( | ) | [virtual] |
Get/set the text of the item.
virtual vtkPen* vtkTooltipItem::GetPen | ( | ) | [virtual] |
Get a pointer to the vtkTextProperty object that controls the way the text is rendered.
virtual void vtkTooltipItem::Update | ( | ) | [virtual] |
Update the geometry of the tooltip.
Reimplemented from vtkContextItem.
virtual bool vtkTooltipItem::Paint | ( | vtkContext2D * | painter | ) | [virtual] |
Paint event for the tooltip.
Implements vtkContextItem.
vtkVector2f vtkTooltipItem::PositionVector [protected] |
Definition at line 83 of file vtkTooltipItem.h.
float* vtkTooltipItem::Position [protected] |
Definition at line 84 of file vtkTooltipItem.h.
char* vtkTooltipItem::Text [protected] |
Definition at line 85 of file vtkTooltipItem.h.
vtkTextProperty* vtkTooltipItem::TextProperties [protected] |
Definition at line 86 of file vtkTooltipItem.h.
vtkPen* vtkTooltipItem::Pen [protected] |
Definition at line 87 of file vtkTooltipItem.h.
vtkBrush* vtkTooltipItem::Brush [protected] |
Definition at line 88 of file vtkTooltipItem.h.