完善运动曲线图的显示
This commit is contained in:
@@ -21,8 +21,9 @@ class CDrawGraph : public CWnd
|
||||
double m_dbStartX, m_dbEndX,m_dbStartY,m_dbEndY;
|
||||
double m_dbResolutionX,m_dbResolutionY;
|
||||
int m_nDivisionX,m_nDivisionY;
|
||||
DataBuff m_dataGraph;
|
||||
|
||||
DataBuff m_dataGraphY;
|
||||
DataBuff m_dataGraphX;
|
||||
CString m_XAxisLabel,m_YAxisLabel;
|
||||
public:
|
||||
CDrawGraph();
|
||||
virtual ~CDrawGraph();
|
||||
@@ -32,8 +33,10 @@ public:
|
||||
void SetMargin(int nLeft, int nTop, int nRight, int nBottom, BOOL bIsRedraw=TRUE);
|
||||
bool SetGraphyView(double dbStartX, double dbEndX, double dbStartY, double dbEndY, int nDivisionX = 10, int nDivisionY = 10, BOOL bIsRedraw=TRUE);
|
||||
void SetResolution(double dbResolutionX, double dbResolutionY, BOOL bIsRedraw=TRUE);
|
||||
void LoadGraphyData(DataBuff& dataShow);
|
||||
void LoadGraphyYAxisData(DataBuff& dataShow);
|
||||
void LoadGraphyXAxisData(DataBuff& dataShow);
|
||||
void AddGraphyData(double _data);
|
||||
void SetCoordinateLabel(const CString& _XAxis,const CString& _YAxis);
|
||||
void RemoveGraphyData(BOOL bIsRedraw=TRUE);
|
||||
void DrawCoordinate(CDC* pDC, CRect rectCoord);
|
||||
void DrawIdealCurve(CDC* pDC, CRect rectCoord);
|
||||
|
||||
Reference in New Issue
Block a user