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.
kev/Drawer/SSBase/DrawOperator/EmbellishBaseLib.h

57 lines
1.7 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

//////////////////////////////////////////////////////////////////////////////
//文件: 格式转换类
//主要功能:
// 增加对应修饰库、符号库的支持,包括线型、井型……
//
//程序编写: 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;