30#include "vtkChartsCoreModule.h"
35class vtkChartPiePrivate;
69 {
return Superclass::AddPlot(plot); }
158 void operator=(
const vtkChartPie &) VTK_DELETE_FUNCTION;
168 vtkChartPiePrivate *Private;
Factory class for drawing pie charts.
virtual vtkPlot * GetPlot(vtkIdType index)
Get the plot at the specified index, returns null if the index is invalid.
static vtkChartPie * New()
Creates a 2D Chart object.
virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse)
Mouse enter event.
virtual void SetScene(vtkContextScene *scene)
Set the vtkContextScene for the item, always set for an item in a scene.
bool PlotTransformValid
Does the plot area transform need to be recalculated?
virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse)
Mouse leave event.
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
void RecalculatePlotTransforms()
Recalculate the necessary transforms.
virtual vtkPlot * AddPlot(int type)
Add a plot to the chart.
virtual vtkIdType GetNumberOfPlots()
Get the number of plots the chart contains.
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
vtkChartLegend * Legend
The legend for the chart.
virtual vtkChartLegend * GetLegend()
Get the legend for the chart, if available.
virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta)
Mouse wheel event, positive delta indicates forward movement of the wheel.
virtual vtkIdType AddPlot(vtkPlot *plot)
Add a plot to the chart.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
Mouse button down event.
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse)
Mouse button release event.
vtkTooltipItem * Tooltip
The tooltip item for the chart - can be used to display extra information.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetShowLegend(bool visible)
Set whether the chart should draw a legend.
virtual bool Paint(vtkContext2D *painter)
Paint event for the chart, called whenever the chart needs to be drawn.
Factory class for drawing 2D charts.
Class for drawing 2D primitives to a graphical context.
data structure to represent mouse events.
Provides a 2D scene for vtkContextItem objects.
a simple class to control print indentation
Abstract class for 2D plots.