1
/////////////////////////////////////////////////////////////////////////////
2
// Name: pie3dcharpoints.h
7
// Copyright: (C) 2006, Paolo Gava
8
// RCS-ID: $Id: pie3dchartpoints.h 4669 2007-11-24 14:54:50Z killerbot $
9
// Licence: wxWindows licence
10
/////////////////////////////////////////////////////////////////////////////
12
#if !defined( __PIE3DCHARTPOINTS_H__ )
13
#define __PIE3DCHARTPOINTS_H__
15
//----------------------------------------------------------------------------
17
//----------------------------------------------------------------------------
19
#include "wx/points.h"
20
#include "wx/chartcolors.h"
21
#include "wx/chartpoints.h"
23
//+++-S-cd-------------------------------------------------------------------
24
// NAME: wxPie3DChartPoints
25
// DESC: Definition of pie chart
28
//----------------------------------------------------------------------E-+++
29
class WXDLLIMPEXP_CHART wxPie3DChartPoints : public wxChartPoints
33
// Create object. This class has to be created on the heap
34
// because CChart needs its base pointer to create a list
37
// CPieChartPoints bcp;
41
// If this is allow after the bcp is out of scope the list has
42
// a pointer which has been deallocated!
43
//------------------------------------------------------------
44
static wxPie3DChartPoints* CreateWxPie3DChartPoints(wxString name,
45
ChartColor c = wxCHART_NOCOLOR, bool showlabel = false);
47
virtual ~wxPie3DChartPoints() {};
49
// Draw the series of points
50
//--------------------------
51
void Draw(CHART_HPAINT hp, CHART_HRECT hr);
53
// Get n-th point information
54
//---------------------------
55
ChartValue GetXVal(int n) const;
56
ChartValue GetYVal(int n) const;
57
wxString GetName(int n) const;
58
ChartColor GetColor(int n) const;
63
ChartValue GetMaxX() const;
64
ChartValue GetMaxY() const;
65
ChartValue GetMinX() const;
66
ChartValue GetMinY() const;
70
void SetZoom(double z);
73
// Set sizes for drawing
74
//----------------------
75
void SetSizes(ChartSizes sizes);
76
const ChartSizes& GetSizes() const;
80
ChartColor GetColor() const;
81
void SetColor(ChartColor c);
85
wxString GetName() const;
86
void SetName(wxString name);
90
void Add(wxString name, ChartValue x, ChartValue y);
91
void Add(wxString name, ChartValue x, ChartValue y,
94
// Set/Get Display option
95
//-----------------------
96
void SetDisplayTag(wxDISPLAY_LABEL d);
97
wxDISPLAY_LABEL GetDisplayTag() const;
104
wxDISPLAY_LABEL m_PieTag;
109
// has to be created on the heap!
110
//-------------------------------
111
wxPie3DChartPoints(wxString name, ChartColor c, bool showlabel);
113
// copy ctor & op= NOT allow
114
//--------------------------
115
wxPie3DChartPoints(const wxPie3DChartPoints&);
116
wxPie3DChartPoints& operator=(const wxPie3DChartPoints&);
120
#endif // __PIE3DCHARTPOINTS_H__