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.
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include "dfpluginbase.h"
|
|
|
|
|
|
#include "formatreaderbase.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace NPluginFormat
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
class CPluginFormatZGF :
|
|
|
|
|
|
public CPluginFormatBase
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CPluginFormatZGF(void);
|
|
|
|
|
|
virtual ~CPluginFormatZGF(void);
|
|
|
|
|
|
|
|
|
|
|
|
//<2F>ڸò<DAB8><C3B2><EFBFBD><EFBFBD>н<EFBFBD><D0BD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>øú<C3B8><C3BA><EFBFBD><EFBFBD>Ϳɽ<CDBF><C9BD><EFBFBD>ת<EFBFBD><D7AA>Ϊ˫<CEAA><CBAB><EFBFBD><EFBFBD>ʽ
|
|
|
|
|
|
virtual int ReadFile(const char* strFilePathName, int nFormatType);
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>öԻ<C3B6><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ö<EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
virtual int Initialize(const char* strFilePathName);
|
|
|
|
|
|
|
|
|
|
|
|
CString m_strPath;
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>ʵ<EFBFBD>ʵĸ<CAB5>ʽת<CABD><D7AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
class CZgf : public CFormatReaderBase
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CZgf(void);
|
|
|
|
|
|
virtual ~CZgf(void);
|
|
|
|
|
|
|
|
|
|
|
|
int Read(const char* strFileName);
|
|
|
|
|
|
|
|
|
|
|
|
int OpenNewFile(CString strFileName);
|
|
|
|
|
|
CString GetType(int nType);
|
|
|
|
|
|
long GetColor(__int64 nZgfColor);
|
|
|
|
|
|
|
|
|
|
|
|
CString m_strPath;
|
|
|
|
|
|
CString m_strCurrentFileName;
|
|
|
|
|
|
CString m_strLayer;
|
|
|
|
|
|
|
|
|
|
|
|
double xmin = 0, xmax = 0, ymin = 0, ymax = 0; //ͼ<><CDBC><EFBFBD><EFBFBD>Χ
|
|
|
|
|
|
double ox = 0, oy = 0; //ԭ<><D4AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
double sx = 0, sy = 0; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
void ToRealCoordinate(double& x, double& y);
|
|
|
|
|
|
double ToRealWidth(double w);
|
|
|
|
|
|
|
|
|
|
|
|
COLORREF ** m_zgfColor;
|
|
|
|
|
|
int m_zgfNum;
|
|
|
|
|
|
|
|
|
|
|
|
void ClearColorArray(void);
|
|
|
|
|
|
long GetArrayColor(int nIndex);
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
};
|