#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 37 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]) |
void | SetPosition (const vtkVector2f &pos) |
virtual float * | GetPosition () |
virtual void | GetPosition (float &, float &) |
virtual void | GetPosition (float[2]) |
vtkVector2f | GetPositionVector () |
virtual void | SetText (const vtkStdString &title) |
virtual vtkStdString | GetText () |
virtual vtkPen * | GetPen () |
virtual vtkBrush * | GetBrush () |
virtual vtkTextProperty * | GetTextProperties () |
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 |
vtkStdString | 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).
void vtkTooltipItem::SetPosition | ( | const vtkVector2f & | pos | ) |
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).
vtkVector2f vtkTooltipItem::GetPositionVector | ( | ) |
Get position of the axis (in pixels).
virtual void vtkTooltipItem::SetText | ( | const vtkStdString & | title | ) | [virtual] |
Get/set the text of the item.
virtual vtkStdString 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 vtkTextProperty* vtkTooltipItem::GetTextProperties | ( | ) | [virtual] |
Get the vtkTextProperty that governs how the tooltip text is displayed.
virtual void vtkTooltipItem::Update | ( | ) | [virtual] |
Update the geometry of the tooltip.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkTooltipItem::Paint | ( | vtkContext2D * | painter | ) | [virtual] |
Paint event for the tooltip.
Reimplemented from vtkAbstractContextItem.
vtkVector2f vtkTooltipItem::PositionVector [protected] |
Definition at line 92 of file vtkTooltipItem.h.
float* vtkTooltipItem::Position [protected] |
Definition at line 93 of file vtkTooltipItem.h.
vtkStdString vtkTooltipItem::Text [protected] |
Definition at line 94 of file vtkTooltipItem.h.
vtkTextProperty* vtkTooltipItem::TextProperties [protected] |
Definition at line 95 of file vtkTooltipItem.h.
vtkPen* vtkTooltipItem::Pen [protected] |
Definition at line 96 of file vtkTooltipItem.h.
vtkBrush* vtkTooltipItem::Brush [protected] |
Definition at line 97 of file vtkTooltipItem.h.