VTK
|
Factory class for drawing pie charts. More...
#include <vtkChartPie.h>
Public Types | |
typedef vtkChart | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkChartPie * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Update () |
virtual bool | Paint (vtkContext2D *painter) |
virtual vtkPlot * | AddPlot (int type) |
virtual vtkPlot * | GetPlot (vtkIdType index) |
virtual vtkIdType | GetNumberOfPlots () |
virtual void | SetShowLegend (bool visible) |
virtual vtkChartLegend * | GetLegend () |
virtual void | SetScene (vtkContextScene *scene) |
virtual bool | Hit (const vtkContextMouseEvent &mouse) |
virtual bool | MouseEnterEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseMoveEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseLeaveEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseButtonPressEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseButtonReleaseEvent (const vtkContextMouseEvent &mouse) |
virtual vtkIdType | AddPlot (vtkPlot *plot) |
virtual bool | MouseWheelEvent (const vtkContextMouseEvent &mouse, int delta) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkChartPie * | SafeDownCast (vtkObjectBase *o) |
static vtkChartPie * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkChartPie () | |
~vtkChartPie () | |
void | RecalculatePlotTransforms () |
Protected Attributes | |
vtkChartLegend * | Legend |
vtkTooltipItem * | Tooltip |
bool | PlotTransformValid |
Factory class for drawing pie charts.
This class implements an pie chart.
Definition at line 36 of file vtkChartPie.h.
typedef vtkChart vtkChartPie::Superclass |
Reimplemented from vtkChart.
Definition at line 39 of file vtkChartPie.h.
vtkChartPie::vtkChartPie | ( | ) | [protected] |
vtkChartPie::~vtkChartPie | ( | ) | [protected] |
static int vtkChartPie::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 vtkChart.
virtual int vtkChartPie::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 vtkChart.
static vtkChartPie* vtkChartPie::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkChart.
virtual vtkObjectBase* vtkChartPie::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkChart.
vtkChartPie* vtkChartPie::NewInstance | ( | ) | const |
Reimplemented from vtkChart.
virtual void vtkChartPie::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
static vtkChartPie* vtkChartPie::New | ( | ) | [static] |
Creates a 2D Chart object.
Reimplemented from vtkObject.
virtual void vtkChartPie::Update | ( | ) | [virtual] |
Perform any updates to the item that may be necessary before rendering. The scene should take care of calling this on all items before their Paint function is invoked.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkChartPie::Paint | ( | vtkContext2D * | painter | ) | [virtual] |
Paint event for the chart, called whenever the chart needs to be drawn
Implements vtkChart.
virtual vtkPlot* vtkChartPie::AddPlot | ( | int | type | ) | [virtual] |
Add a plot to the chart.
Reimplemented from vtkChart.
virtual vtkIdType vtkChartPie::AddPlot | ( | vtkPlot * | plot | ) | [inline, virtual] |
Add a plot to the chart. Return the index of the plot, -1 if it failed.
Reimplemented from vtkChart.
Definition at line 60 of file vtkChartPie.h.
virtual vtkPlot* vtkChartPie::GetPlot | ( | vtkIdType | index | ) | [virtual] |
Get the plot at the specified index, returns null if the index is invalid.
Reimplemented from vtkChart.
virtual vtkIdType vtkChartPie::GetNumberOfPlots | ( | ) | [virtual] |
Get the number of plots the chart contains.
Reimplemented from vtkChart.
virtual void vtkChartPie::SetShowLegend | ( | bool | visible | ) | [virtual] |
Set whether the chart should draw a legend.
Reimplemented from vtkChart.
virtual vtkChartLegend* vtkChartPie::GetLegend | ( | ) | [virtual] |
Get the legend for the chart, if available. Can return NULL if there is no legend.
Reimplemented from vtkChart.
virtual void vtkChartPie::SetScene | ( | vtkContextScene * | scene | ) | [virtual] |
Set the vtkContextScene for the item, always set for an item in a scene.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkChartPie::Hit | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Return true if the supplied x, y coordinate is inside the item.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkChartPie::MouseEnterEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse enter event.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkChartPie::MouseMoveEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse move event.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkChartPie::MouseLeaveEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse leave event.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkChartPie::MouseButtonPressEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse button down event
Reimplemented from vtkAbstractContextItem.
virtual bool vtkChartPie::MouseButtonReleaseEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse button release event.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkChartPie::MouseWheelEvent | ( | const vtkContextMouseEvent & | mouse, |
int | delta | ||
) | [virtual] |
Mouse wheel event, positive delta indicates forward movement of the wheel.
Reimplemented from vtkAbstractContextItem.
void vtkChartPie::RecalculatePlotTransforms | ( | ) | [protected] |
Recalculate the necessary transforms.
vtkChartLegend* vtkChartPie::Legend [protected] |
The legend for the chart.
Definition at line 117 of file vtkChartPie.h.
vtkTooltipItem* vtkChartPie::Tooltip [protected] |
The tooltip item for the chart - can be used to display extra information.
Definition at line 121 of file vtkChartPie.h.
bool vtkChartPie::PlotTransformValid [protected] |
Does the plot area transform need to be recalculated?
Definition at line 124 of file vtkChartPie.h.