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_CHARTPOINTSSERIE_H__F66C180F_F04C_4E2D_878C_08BDBCE91863__INCLUDED_)
00023 #define AFX_CHARTPOINTSSERIE_H__F66C180F_F04C_4E2D_878C_08BDBCE91863__INCLUDED_
00024
00025 #if _MSC_VER > 1000
00026 #pragma once
00027 #endif // _MSC_VER > 1000
00028
00029 #include "ChartXYSerie.h"
00030
00032
00035 class CChartPointsSerie : public CChartXYSerie
00036 {
00037 public:
00039 enum PointType
00040 {
00041 ptEllipse=0,
00042 ptRectangle=1,
00043 ptTriangle=2
00044 };
00045
00047 void SetPointSize(int XSize, int YSize);
00049 void GetPointSize(int& XSize, int& YSize) const
00050 {
00051 XSize = m_iXPointSize;
00052 YSize = m_iYPointSize;
00053 }
00055 void SetPointType(PointType Type);
00057 PointType GetPointType() const { return m_iPointType; }
00058
00060 void SetBorderColor(COLORREF Color);
00062 COLORREF GetBorderColor() { return m_colBorder; }
00063
00065 CChartPointsSerie(CChartCtrl* pParent);
00067 virtual ~CChartPointsSerie();
00068
00070
00077 bool IsPointOnSerie(const CPoint& screenPoint, unsigned& uIndex) const;
00078
00079 private:
00081
00088 void DrawLegend(CDC* pDC, const CRect& rectBitmap) const;
00089
00091
00098 void Draw(CDC* pDC);
00100
00105 void DrawAll(CDC *pDC);
00106
00108 int m_iXPointSize;
00110 int m_iYPointSize;
00112 PointType m_iPointType;
00114 COLORREF m_colBorder;
00115 };
00116
00117 #endif // !defined(AFX_CHARTPOINTSSERIE_H__F66C180F_F04C_4E2D_878C_08BDBCE91863__INCLUDED_)