VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkChartPie Class Reference

Factory class for drawing pie charts. More...

#include <vtkChartPie.h>

Inheritance diagram for vtkChartPie:
Inheritance graph
[legend]
Collaboration diagram for vtkChartPie:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkChart Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkChartPieNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual void Update ()
virtual bool Paint (vtkContext2D *painter)
virtual vtkPlotAddPlot (int type)
virtual vtkPlotGetPlot (vtkIdType index)
virtual vtkIdType GetNumberOfPlots ()
virtual void SetShowLegend (bool visible)
virtual vtkChartLegendGetLegend ()
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 vtkChartPieSafeDownCast (vtkObjectBase *o)
static vtkChartPieNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkChartPie ()
 ~vtkChartPie ()
void RecalculatePlotTransforms ()

Protected Attributes

vtkChartLegendLegend
vtkTooltipItemTooltip
bool PlotTransformValid

Detailed Description

Factory class for drawing pie charts.

This class implements an pie chart.

Tests:
vtkChartPie (Tests)

Definition at line 36 of file vtkChartPie.h.


Member Typedef Documentation

Reimplemented from vtkChart.

Definition at line 39 of file vtkChartPie.h.


Constructor & Destructor Documentation

vtkChartPie::vtkChartPie ( ) [protected]
vtkChartPie::~vtkChartPie ( ) [protected]

Member Function Documentation

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.

Reimplemented from vtkChart.

virtual vtkObjectBase* vtkChartPie::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkChart.

Reimplemented from vtkChart.

virtual void vtkChartPie::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 vtkChart.

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.

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.

Recalculate the necessary transforms.


Member Data Documentation

The legend for the chart.

Definition at line 117 of file vtkChartPie.h.

The tooltip item for the chart - can be used to display extra information.

Definition at line 121 of file vtkChartPie.h.

Does the plot area transform need to be recalculated?

Definition at line 124 of file vtkChartPie.h.


The documentation for this class was generated from the following file: