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.
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//文件 Mxn.h
|
|
//主要功能:
|
|
//
|
|
//程序编写: 2005-12-07
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
#include ".\pointnamerect.h"
|
|
#include "..\MxnFormat\MxnDraw.h"
|
|
#include "mesh.h"
|
|
|
|
class AFX_EXT_CLASS CMxn : public CPointNameRect
|
|
{
|
|
public:
|
|
CMxn(void);
|
|
virtual ~CMxn(void);
|
|
|
|
public:
|
|
CStringArray NameArray;
|
|
BOOL m_bIsDrawGrid;
|
|
BOOL IsMesh;
|
|
CMesh *mesh;
|
|
CMxnDraw *mn;
|
|
int dwRop;
|
|
CSize8 m_one;
|
|
int rmin,rmax;
|
|
int step;
|
|
long m_nStartTrace; //显示的开始道,从0计起
|
|
long m_nEndTrace; //显示的结束道
|
|
long m_nStartPoint; //开始点
|
|
long m_nEndPoint; //结束点
|
|
|
|
void Serialize(CArchive& ar, const short &ver) override;
|
|
virtual void Write(CFile &fw, const short& ver);
|
|
virtual int Read(CFile &fr, const short& ver);
|
|
virtual int ReadList(CFile &fr);
|
|
virtual int IsInRange(CRect8 &range );
|
|
virtual bool GetRange(CRect8 &range);
|
|
|
|
virtual int ReadDML(CFile &fw, const short &ver);
|
|
virtual void WriteDML(CFile& fw, const short& ver, int nBaseTabNum);
|
|
|
|
virtual int ReadPCG(CFile &fw, const short &ver);
|
|
virtual void WritePCG(CFile& fw, const short& ver, int nBaseTabNum);
|
|
|
|
void ToMesh();
|
|
void operator=(const CMxn& mxn);
|
|
BOOL LoadMXN(LPCTSTR lpczMxnName);
|
|
};
|