www.pudn.com > DrawGrInDlg.rar > LineData.cpp


// LineData.cpp: implementation of the CLineData class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#include "stdafx.h" 
#include "LineData.h" 
 
#ifdef _DEBUG 
#undef THIS_FILE 
static char THIS_FILE[]=__FILE__; 
#define new DEBUG_NEW 
#endif 
 
////////////////////////////////////////////////////////////////////// 
// Construction/Destruction 
////////////////////////////////////////////////////////////////////// 
 
CLineData::CLineData() 
{ 
	ePointType = CBaseGr::FDIAMOND; 
	LegendName = _T(""); 
	LineColor = RGB(0,0,0); 
	LineSize = 1; 
	PointColor = RGB(0,0,0); 
} 
 
CLineData::~CLineData() 
{ 
 
} 
void CLineData::AddData(double x,double y) 
{ 
	structData tagData; 
	tagData.XData = x; 
	tagData.YData = y; 
	structDataArray.Add(tagData); 
} 
CLineData& CLineData::operator= (CLineData& LineData) 
{ 
	structDataArray.Copy(LineData.structDataArray); 
	LegendName = LineData.LegendName; 
	ePointType = LineData.ePointType; 
	LineSize = LineData.LineSize; 
	LineColor = LineData.LineColor; 
	PointColor = LineData.PointColor; 
	return (*this); 
}