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.
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//文件 OtherFormat.h
|
|
//主要功能:
|
|
//
|
|
//程序编写: 2005-12-07
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
namespace NFormatReader
|
|
{
|
|
|
|
class AFX_EXT_CLASS COtherFormat
|
|
{
|
|
public:
|
|
COtherFormat(void);
|
|
virtual ~COtherFormat(void);
|
|
|
|
void* m_pXy;
|
|
|
|
protected:
|
|
virtual void* GetXY(void);
|
|
|
|
virtual POSITION AddElement(void* pElement, int type);
|
|
POSITION AddCurve(CPointList& dp, int curveType=0, double curveWidth=0, COLORREF curveColor=0);
|
|
POSITION InsertElementAfter(POSITION pos, void* pElement, int type);
|
|
|
|
CString m_strRootLayer;
|
|
virtual void SetCurrentLayer(CString strLayer);
|
|
|
|
void SetCurrentLayer(void* pLayer); //CLayer* pLayer
|
|
void* GetCurrentLayer(void);
|
|
|
|
void SetElementColor(POSITION pos,COLORREF color);
|
|
|
|
void* GetCurve(POSITION pos);
|
|
void* IsType(POSITION pos, int nType);
|
|
|
|
int SetMapUnit(CString strUnit); //设置图件单位,返回单位索引号
|
|
|
|
public:
|
|
static CString GetLayerColor(long nColor); //获得颜色串,用作类别名称分类
|
|
};
|
|
|
|
};
|
|
|
|
using namespace NFormatReader;
|