You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB
C++

//////////////////////////////////////////////////////////////////////////////
//文件: DFDraw补充绘图元素接口类
//主要功能:
//
//程序编写: 2005-12-07
//
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include "fmn.h"
class AFX_EXT_CLASS CFmnDraw :
public CFMN
{
public:
CFmnDraw(void);
virtual ~CFmnDraw(void);
int stepx,stepy; //测线显示步长
int steprx,stepry; //背景显示步长
int width; //背景一个点的显示宽度
int IsQuick;
int display_mode;
int Draw(CDC* pDC, CScreenXY* pCR, double &x, double &y,int IsXY);
void Draw(CDC* pDC, CScreenXY& sr);
void Draw(void DrawCurve(CCurve &curve));
void DrawM(CDC* pDC, CScreenXY& sr,int i);
void DrawN(CDC* pDC, CScreenXY& sr,int j);
void DrawM(void DrawCurve(CCurve &curve),int i);
void DrawN(void DrawCurve(CCurve &curve),int j);
void DrawPoint(CDC* pDC, CScreenXY& sr, CColorBase* pColor);
void DrawXY(CDC *pDC, CScreenXY& sr,void *pColor);
virtual void Write(CFile& fw);
virtual int Read(CFile& fr);
BOOL IsViewX(int x);
BOOL IsViewY(int y);
BOOL GetCurve(CCurve& curve, int curve_num, bool IsX);
};