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.

59 lines
2.7 KiB
C

1 month ago
#pragma once
#include "dfPluginBase.h"
namespace NPluginFormat
{
class AFX_EXT_CLASS CPluginFormat
{
public:
CPluginFormat(void* pxy);
virtual ~CPluginFormat(void);
static void* m_pXY;
static void* GetXY();
static void SetXY(void* pxy);
static dfPluginFormatReader pluginReader;
//Ϊ<><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ľӿں<D3BF><DABA><EFBFBD>
static bool dfSaveFile( const char* strFileName, int nSaveType); //<2F><><EFBFBD><EFBFBD><EFBFBD>ݱ<EFBFBD><DDB1><EFBFBD>Ϊָ<CEAA><D6B8><EFBFBD><EFBFBD>չ<EFBFBD><D5B9><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>nSaveType:1=dfd<66><64>2=dfb<66><62>3=dml
static bool dfClearAll( void ); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>Ԫ<EFBFBD>ص<EFBFBD><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
static bool SetCurrentLayer( const char* strLayer ); //<2F><><EFBFBD>õ<EFBFBD>ǰ<EFBFBD><C7B0>
static bool SetProjection( const char* strProjection ); //<2F><><EFBFBD><EFBFBD>ͶӰ<CDB6><D3B0><EFBFBD><EFBFBD>ʽΪ˫<CEAA><CBAB>DFD<46><44>ʽ
static bool dfElePline( const dfPluginPline* pPline); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
static bool dfEleRect( const dfPluginPlineRect* pRect); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߾<EFBFBD><DFBE>Σ<EFBFBD><CEA3><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
static bool dfEleText( const dfPluginText* pText); //<2F><><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
static bool dfElePoint( dfPluginPoint dp, const char* strName, double angle ); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֣<EFBFBD><D6A3>羮λ<E7BEAE>ȣ<EFBFBD><C8A3><EFBFBD>˫<EFBFBD><CBAB><EFBFBD>п<EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD><CEBF><EFBFBD>
static bool dfEleEllipse( const dfPluginEllipse* pEllipse); //<2F><><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD><EFBFBD>Բ
static bool dfEleArc( const dfPluginArc* pArc); //<2F><><EFBFBD>
static bool dfEleImage( const dfPluginImage* pImage); //<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC>
static bool dfEleImageBuffer(const dfPluginImageBuffer* pImageBuffer ); //<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><><CDBC><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD>Ϊ<EFBFBD><CEAA>BMP<4D><50>JPG<50><47>GIF<49><46>TIF<49><46>WMF<4D><46>EMF<4D><46>PNG<4E><47><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD><D6BD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD><CDA3>ļ<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>а<EFBFBD><D0B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD>
static bool dfEleImageFile( const char* strFileName, dfPluginRect rect);//<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC>
static bool dfEleSurface( const dfPluginSurface* pSurface); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
static bool dfEleXyz( double x, double y, double z ); //<2F><><EFBFBD><EFBFBD>XYZɢ<5A><C9A2>
static bool dfEleMergeDFFile( const char* strFileNameOrData, BOOL bMemeryData );//<2F>ϲ<EFBFBD>˫<EFBFBD><CBAB>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ſ<EFBFBD><C5BF>ȣ<EFBFBD><C8A3><EFBFBD>bMemeryDataΪTRUE<55><45>ʾstrFileNameOrData<74><61>ֱ<EFBFBD><D6B1>ΪDFD<46><44>ʽ<EFBFBD>Ĵ<EFBFBD>
static bool dfEleGriding( const dfPluginGriding* pGriding); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
static bool dfEleFrame( const dfPluginFrame* pFrame); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߿<EFBFBD>
static bool dfEleMark( const dfPluginMark* pMark ); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
static POSITION AddElement(void* pElement, int type);
static void SetElementColor(POSITION pos, COLORREF color);
static int GetCurveType(enumPlineType pt);
static CRect8 GetRect(dfPluginRect rect);
//<2F>ڿ<EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD>ź󣬺<C5BA><F3A3ACBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD>Ԫ<EFBFBD>ؽ<EFBFBD><D8BD><EFBFBD><EFBFBD>ӵ<EFBFBD><D3B5>÷<EFBFBD><C3B7><EFBFBD><EFBFBD>У<EFBFBD>ֱ<EFBFBD><D6B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//<2F><><EFBFBD>ſ<EFBFBD><C5BF><EFBFBD>Ƕ<EFBFBD><C7B6>ʹ<EFBFBD>ã<EFBFBD><C3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɶԳ<C9B6><D4B3><EFBFBD>
static bool dfEleBeginCreateMark(const char* strMarkName); //<2F><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
static bool dfEleEndCreateMark(void); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
protected:
static CPtrList m_markCreaterList; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>浱ǰ<E6B5B1><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD>dfEleEndCreateMark<72><6B><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
};
};
using namespace NPluginFormat;