00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if !defined(AFX_CHARTSURFACESERIE_H__28A77823_43BD_4502_9AA7_A2B227454035__INCLUDED_)
00023 #define AFX_CHARTSURFACESERIE_H__28A77823_43BD_4502_9AA7_A2B227454035__INCLUDED_
00024
00025 #if _MSC_VER > 1000
00026 #pragma once
00027 #endif // _MSC_VER > 1000
00028
00029 #include "ChartXYSerie.h"
00030
00032
00042 class CChartSurfaceSerie : public CChartXYSerie
00043 {
00044 public:
00046 CChartSurfaceSerie(CChartCtrl* pParent);
00048 virtual ~CChartSurfaceSerie();
00049
00051 enum FillStyle
00052 {
00053 fsSolid = 0,
00054 fsHatchDownDiag,
00055 fsHatchUpDiag,
00056 fsHatchCross,
00057 fsHatchDiagCross,
00058 fsHatchHorizontal,
00059 fsHatchVertical
00060 };
00061
00063 void SetFillStyle(FillStyle NewStyle);
00065 FillStyle GetFillStyle() const { return m_FillStyle; }
00066
00068
00072 void SetHorizontal(bool bHoriz);
00074 bool GetHorizontal() const { return m_bHorizontal; }
00075
00077
00088 bool IsPointOnSerie(const CPoint& screenPoint, unsigned& uIndex) const;
00089
00090 void CChartSurfaceSerie::SetSeriesOrdering(PointsOrdering );
00091 private:
00093
00094
00096
00103 void DrawLegend(CDC* pDC, const CRect& rectBitmap) const;
00104
00106
00113 void Draw(CDC* pDC);
00115
00120 void DrawAll(CDC *pDC);
00121
00123 FillStyle m_FillStyle;
00125 bool m_bHorizontal;
00126 };
00127
00128 #endif // !defined(AFX_CHARTSURFACESERIE_H__28A77823_43BD_4502_9AA7_A2B227454035__INCLUDED_)