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.

60 lines
2.0 KiB
C

1 month ago
//////////////////////////////////////////////////////////////////////////////
//<2F>ļ<EFBFBD> Gridding.h
//<2F><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>:
//
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д: 2005-12-07
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include "net.h"
#include "text.h"
class AFX_EXT_CLASS CGridding : public CNet
{
public:
CGridding(void);
virtual ~CGridding(void);
CPoint2D m_ptBase; //x=m_ptBase.x0+x*m_szCoefficient.cx;
CSize8 m_szCoefficient; //y=m_ptBase.y0+y*m_szCoefficient.cy;
virtual void GetRange(CRect8& range);
virtual int IsInRange(CRect8& range);
virtual int Dissolution(void* pXY, CList<POSITION, POSITION>& list); //<2F><><EFBFBD><EFBFBD>γ<EFBFBD><CEB3><EFBFBD><EFBFBD>ɢ<EFBFBD><C9A2><EFBFBD><EFBFBD>ʵ<EFBFBD>ʵ<EFBFBD>Ԫ<EFBFBD><D4AA>
virtual void Draw(void* pDC);
virtual void ScaleProperty(double sx, double sy);
void Serialize(CArchive& ar, const short &ver) override;
virtual int Read(CFile& fr, const short& ver);
virtual void Write(CFile& fw, const short& ver);
virtual void WriteDML(CFile& fw, const short& ver, int nBaseTabNum);
virtual int ReadDML(CFile &fr, const short &ver);
virtual void WritePCG(CFile& fw, const short& ver, int nBaseTabNum);
virtual int ReadPCG(CFile &fr, const short &ver);
virtual int ReadPCG2(CFile &fr, const short &ver);
int Read_Old(CFile& fr, const short& ver);
void Write_Old(CFile& fw, const short& ver);
void WriteDML_Old(CFile& fw, const short& ver, int nBaseTabNum);
int ReadDML_Old(CFile &fr, const short &ver);
void WritePCG_Old(CFile& fw, const short& ver, int nBaseTabNum);
int ReadPCG_Old(CFile &fr, const short &ver);
void operator=(CGridding& gd);
protected:
void DrawGridCrossPoint(void* pDC, BOOL bDraw, void* pXY=NULL);
void DrawGridPline(void* pDC, BOOL bDraw, void* pXY=NULL);
void DrawMarkTextX(void* pDC, CText &text, double yt, double yb, BOOL bDraw, void* pXY=NULL);
void DrawMarkTextY(void* pDC, CText &text, double xl, double xr, BOOL bAlign=FALSE, BOOL bDraw=FALSE, void* pXY=NULL);
public:
virtual int ReadPCG(void *pxp, const short &ver);
virtual int ReadPCG2(void *pxp, const short &ver);
int ReadPCG_Old(void *pxp, const short &ver);
};