📄 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 <Afxtempl.h>
#include "BaseGr.h"
class CLineData
{
public:
CLineData();
virtual ~CLineData();
public:
struct structData
{
double XData;
double YData;
};
CArray<structData,structData&> 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_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -