www.pudn.com > DrawGrInDlg.rar > LineData.h
// LineData.h: interface for the CLineData class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_LINEDATA_H__C6ACEDC5_2BE5_11D6_836B_5254AB372662__INCLUDED_) #define AFX_LINEDATA_H__C6ACEDC5_2BE5_11D6_836B_5254AB372662__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include#include "BaseGr.h" class CLineData { public: CLineData(); virtual ~CLineData(); public: struct structData { double XData; double YData; }; CArray structDataArray; CBaseGr::PointType ePointType; int LineSize; COLORREF LineColor; COLORREF PointColor; CString LegendName; public: void AddData(double x,double y); void SetLegend(CString strLegend) { LegendName=strLegend;} void SetPointType(CBaseGr::PointType Pt=CBaseGr::CIRCLE) { ePointType = Pt; } void SetLineSize(int Ls=1) { LineSize = Ls;} void SetLineColor(COLORREF Lc=RGB(0,0,0)) { LineColor = Lc;} void SetPointColor(COLORREF Pc=RGB(0,0,0)) { PointColor=Pc;} CLineData& operator= (CLineData& LineData); }; #endif // !defined(AFX_LINEDATA_H__C6ACEDC5_2BE5_11D6_836B_5254AB372662__INCLUDED_)