wxFreeChart
Public Member Functions | Protected Member Functions | List of all members
PiePlot Class Reference

Pie plot. More...

#include <pieplot.h>

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

Public Member Functions

void SetDataset (CategoryDataset *dataset)
 
void SetUsedSerie (size_t serie)
 
void SetColorScheme (ColorScheme *cs)
 
void Set3DView (bool use3DView)
 
void SetEllipticAspect (float ellipticAspect)
 
void SetLegend (Legend *legend)
 
virtual void DatasetChanged (Dataset *dataset)
 
- Public Member Functions inherited from Plot
virtual void Draw (ChartDC &cdc, wxRect rc, PlotDrawMode mode=PLOT_DRAW_ALL)
 Draws plot. More...
 
virtual void DrawNoDataMessage (wxDC &dc, wxRect rc)
 Draws "no data" message. More...
 
void SetChartPanel (wxChartPanel *chartPanel)
 
wxChartPanelGetChartPanel ()
 Returns chart panel (GUI component, at top level) if it.
 
void SetBackground (AreaDraw *background)
 Sets plot background. More...
 
void SetTextNoData (const wxString &textNoData)
 Sets text message drawn, when plot has no data to draw. More...
 

Protected Member Functions

virtual bool HasData ()
 Checks whether plot has data. More...
 
virtual void DrawData (ChartDC &cdc, wxRect rc)
 Draw the plot data, i.e. More...
 
virtual void DrawBackground (ChartDC &cdc, wxRect rc)
 Draw the plot's static items (e.g. More...
 
- Protected Member Functions inherited from Plot
virtual void ChartPanelChanged (wxChartPanel *oldPanel, wxChartPanel *newPanel)
 Called when chart panel is changed. More...
 

Additional Inherited Members

- Protected Attributes inherited from Plot
AreaDrawm_background
 

Detailed Description

Pie plot.

TODO: initial quick and dirty, must be cleaned up or rewritten.

Definition at line 27 of file pieplot.h.

Member Function Documentation

virtual void PiePlot::DrawBackground ( ChartDC cdc,
wxRect  rc 
)
inlineprotectedvirtual

Draw the plot's static items (e.g.

axis, gridlines, legend etc.). Must be overriden by derivative classes.

Parameters
dcdevice context
rcrectangle where to draw

Implements Plot.

Definition at line 66 of file pieplot.h.

virtual void PiePlot::DrawData ( ChartDC cdc,
wxRect  rc 
)
protectedvirtual

Draw the plot data, i.e.

the lines, bars etc. on top of the background. Must be overriden by derivative classes.

Parameters
dcdevice context
rcrectangle where to draw

Implements Plot.

virtual bool PiePlot::HasData ( )
protectedvirtual

Checks whether plot has data.

Must be overriden by derivative classes.

Returns
true if plot has data, false overwise

Implements Plot.


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