15
15
//----------------------------------------------------------------------------
17
17
//----------------------------------------------------------------------------
18
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
19
#pragma interface "bar3dchartpoints.h"
19
22
#include "wx/points.h"
20
23
#include "wx/chartcolors.h"
21
24
#include "wx/chartpoints.h"
23
30
//+++-S-cd-------------------------------------------------------------------
24
31
// NAME: wxBarChartPoints
25
32
// DESC: Definition of XY for a bar chart
41
48
// If this is allow after the bcp is out of scope the list has
42
49
// a pointer which has been deallocated!
43
50
//------------------------------------------------------------
44
static wxBar3DChartPoints* CreateWxBar3DChartPoints(wxString name,
45
ChartColor c = wxCHART_NOCOLOR, bool showlabel = false);
51
static wxBar3DChartPoints* CreateWxBar3DChartPoints(wxString name,
52
ChartColor c = wxCHART_NOCOLOR, bool showlabel = false);
47
54
virtual ~wxBar3DChartPoints() {};
49
56
// Draw the series of points
50
57
//--------------------------
51
virtual void Draw(CHART_HPAINT hp, CHART_HRECT hr);
58
void Draw(CHART_HPAINT hp, CHART_HRECT hr);
53
60
// Get n-th point information
54
61
//---------------------------
55
virtual ChartValue GetXVal(int n) const;
56
virtual ChartValue GetYVal(int n) const;
57
virtual wxString GetName(int n) const;
58
virtual ChartColor GetColor(int n) const;
62
ChartValue GetXVal(int n) const;
63
ChartValue GetYVal(int n) const;
64
wxString GetName(int n) const;
65
ChartColor GetColor(int n) const;
62
virtual int GetCount() const;
63
virtual ChartValue GetMaxX() const;
64
virtual ChartValue GetMaxY() const;
65
virtual ChartValue GetMinX() const;
66
virtual ChartValue GetMinY() const;
70
ChartValue GetMaxX() const;
71
ChartValue GetMaxY() const;
72
ChartValue GetMinX() const;
73
ChartValue GetMinY() const;
70
virtual void SetZoom(double z);
71
virtual double GetZoom();
77
void SetZoom(double z);
73
80
// Set sizes for drawing
74
81
//----------------------
75
virtual void SetSizes(ChartSizes sizes);
76
virtual const ChartSizes& GetSizes() const;
82
void SetSizes(wxChartSizes *sizes);
83
wxChartSizes* GetSizes() const;
80
virtual ChartColor GetColor() const;
81
virtual void SetColor(ChartColor c);
87
ChartColor GetColor() const;
88
void SetColor(ChartColor c);
85
virtual wxString GetName() const;
86
virtual void SetName(wxString name);
92
wxString GetName() const;
93
void SetName(wxString name);
90
virtual void Add(wxString name, ChartValue x, ChartValue y);
91
virtual void Add(wxString name, ChartValue x, ChartValue y,
97
void Add(wxString name, ChartValue x, ChartValue y);
98
void Add(wxString name, ChartValue x, ChartValue y,
94
101
// Set/Get Display option
95
102
//-----------------------
96
virtual void SetDisplayTag(wxDISPLAY_LABEL d);
97
virtual wxDISPLAY_LABEL GetDisplayTag() const;
103
void SetDisplayTag(wxDISPLAY_LABEL d);
104
wxDISPLAY_LABEL GetDisplayTag() const;
100
107
wxPoints m_Points;