|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
//文件: 格式转换类
|
|
|
//主要功能:
|
|
|
// 增加对应修饰库、符号库的支持,包括线型、井型……
|
|
|
//
|
|
|
//程序编写: 2011-5-10
|
|
|
//
|
|
|
//
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
#pragma once
|
|
|
#include ".\otherformat.h"
|
|
|
|
|
|
namespace NFormatReader
|
|
|
{
|
|
|
|
|
|
class CEmbellishBaseLib : public COtherFormat
|
|
|
{
|
|
|
public:
|
|
|
CEmbellishBaseLib(void);
|
|
|
~CEmbellishBaseLib(void);
|
|
|
|
|
|
void InitLib(LPCTSTR lpszLibName);
|
|
|
void ClearLib(void);
|
|
|
|
|
|
void* FindToAddHowToViewCurve(LPCTSTR lpszCurveType, long color=-1); //在m_pLibXY中查找指定的层修饰,返回的是查找到的修饰指针
|
|
|
void* FindToAddHowToViewPoint(LPCTSTR lpszPointType, long color=-1);
|
|
|
int SetCurveMarkName(void* pHowToViewCurve, long color); //根据颜色扩展符号名称
|
|
|
int SetPointMarkName(void* pHowToViewPoint, long color); //根据颜色扩展符号名称
|
|
|
int SetPointMarkWidth(void* pHowToViewPoint, double dMarkWidth);
|
|
|
int SetPointFontWidth(void* pHowToViewPoint, double width, double height, bool bAutoWidth=true);
|
|
|
void SetCurveEmbellishWidth(void* pHowToViewCurve, double dCurveWidth);
|
|
|
|
|
|
void* FindToAddMark(LPCTSTR lpszMarkName, long color=-1); //在m_pLibXY中查找指定的符号,查找到后并将其增加到当前图件中,返回的是当前图件中的符号指针
|
|
|
CString GetColorMarkName(CString strMarkName, long color);
|
|
|
|
|
|
//获得曲线线型的层名
|
|
|
//曲线修饰:Layer:\CurveType\曲线类型索引号
|
|
|
CString GetCurveTypeLayer(int nCurveType);
|
|
|
CString GetCurveTypeLayer(CString strCurveType);
|
|
|
|
|
|
|
|
|
//获得井类型层名
|
|
|
//井位修饰:Layer:\PointType\井位类型号
|
|
|
CString GetPointTypeLayer(int nPointType);
|
|
|
CString GetPointTypeLayer(CString strPointType);
|
|
|
|
|
|
public:
|
|
|
void* m_pLibXY;
|
|
|
double GetScale(void);
|
|
|
};
|
|
|
|
|
|
}//namespace
|
|
|
|
|
|
using namespace NFormatReader;
|
|
|
|