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.

87 lines
2.0 KiB
C

1 month ago
//////////////////////////////////////////////////////////////////////////////
//<2F>ļ<EFBFBD> ToGoogleKML.h
//<2F><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>:
//
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д: 2005-12-07
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include "MessageInfo.h"
class CXy;
class COne;
class CHowToViewPoint;
namespace NFormatWriter
{
class AFX_EXT_CLASS CToGoogleKML
{
public:
CToGoogleKML(void);
virtual ~CToGoogleKML(void);
void SetMessageFile(LPCTSTR lpszFileName);
void SetProgress(CProgressCtrl* pProgress);
void SetInfoWnd(CWnd* pWnd);
int Play(CXy* pxy, LPCTSTR lpszOutput, LPCTSTR lpszLayerName);
int Play(CXy* pxy, CFile* pFileWrite, LPCTSTR lpszLayerName);
int ChangeXY2LB(CXy* pxy); //ֱ<>ӽ<EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>Ϊ<EFBFBD><CEAA>γ<EFBFBD>ȣ<EFBFBD><C8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>ͶӰ<CDB6><D3B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD><DAB2><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD>
protected:
void ChangeToKML(CXy* pxy, LPCTSTR lpszLayerName);
void PlayPoint(CXy* pxy, CPositionList& list, int nType, int& count);
void PlayCurve(CXy* pxy, CPositionList& list, int& count);
void WritePointHead(CString lpszLayer, COLORREF color, CHowToViewPoint* php=NULL);
void PlayPoint(COne* pOne);
void WriteTextHead(CString lpszLayer, COLORREF color);
void PlayText(COne* pOne);
void PlayCurve(COne* pOne);
void PlayCurveSolidHead(CString lpszLayer, COLORREF color, int nSolid);
void PlayImage(CXy* pxy, CPositionList& list, int& count);
void PlayImage(COne* pOne);
int FindMessageInfo(CString strLayerName, CString strElementName);
void WriteMessageInfo(CString strLayerName, CString strElementName);
void WriteString(LPCTSTR lpString);
public:
BOOL m_bCurve;
BOOL m_bPoint;
BOOL m_bText;
BOOL m_bImage;
BOOL m_bWithSubLayer;
double m_dScale; //<2F><>С<EFBFBD><D0A1><EFBFBD>ű<EFBFBD><C5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>ȱʡ<C8B1><CAA1>Ϊ1
protected:
CString Convert(CString str, int sourceCodepage, int targetCodepage);
CMessageInfo m_messageInfo;
int uint = 0;
CProgressCtrl* m_pProgress;
CWnd* m_pInfoWnd;
CFile* m_pFile;
private:
int m_nUnicodeNum;
int m_nTargetNum;
BYTE* m_pTargetData;
wchar_t* m_pUnicodeData;
};
};//namespace
using namespace NFormatWriter;