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