Go to the documentation of this file.
30 #include "vtkChartsCoreModule.h"
35 class vtkChartPiePrivate;
69 {
return Superclass::AddPlot(plot); }
139 void RecalculatePlotTransforms();
168 vtkChartPiePrivate *Private;
172 #endif //vtkChartPie_h
Factory class for drawing 2D charts.
Factory class for drawing pie charts.
virtual vtkIdType GetNumberOfPlots()
Get the number of plots the chart contains.
data structure to represent mouse events.
vtkChartLegend * Legend
The legend for the chart.
bool PlotTransformValid
Does the plot area transform need to be recalculated?
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Class for drawing 2D primitives to a graphical context.
virtual vtkPlot * AddPlot(int type)
Add a plot to the chart, defaults to using the name of the y column.
Abstract class for 2D plots.
Provides a 2D scene for vtkContextItem objects.
bool Paint(vtkContext2D *painter) override=0
Paint event for the chart, called whenever the chart needs to be drawn.
virtual vtkChartLegend * GetLegend()
Get the legend for the chart, if available.
a simple class to control print indentation
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
virtual vtkPlot * GetPlot(vtkIdType index)
Get the plot at the specified index, returns null if the index is invalid.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move 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.
vtkIdType AddPlot(vtkPlot *plot) override
Add a plot to the chart.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetScene(vtkContextScene *scene)
Set the vtkContextScene for the item, always set for an item in a scene.
virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse)
Mouse enter event.
virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse)
Mouse leave event.
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
Mouse button down event Return true if the item holds the event, false if the event can be propagated...
virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta)
Mouse wheel event, positive delta indicates forward movement of the wheel.
virtual void SetShowLegend(bool visible)
Set/get whether the chart should draw a legend.
virtual void Update()
Perform any updates to the item that may be necessary before rendering.