|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include "FormatDC.h"
|
|
|
|
|
|
#include "GeoMapGdbWriter.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace NFormatWriter
|
|
|
|
|
|
{
|
|
|
|
|
|
class CGdbDC : public CFormatDC
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CGdbDC(void);
|
|
|
|
|
|
~CGdbDC(void);
|
|
|
|
|
|
virtual void Initial(void);
|
|
|
|
|
|
virtual int OutFront(void);
|
|
|
|
|
|
virtual int OutEnd(void);
|
|
|
|
|
|
virtual void PolyLine(CPointList& dp);
|
|
|
|
|
|
virtual void Draw(CText& text, CCurveEx& curve) override;
|
|
|
|
|
|
void Draw(CImageInsert& image);
|
|
|
|
|
|
void PaintRgn(CCurveEx& curve);
|
|
|
|
|
|
void Draw(CSection& section,CRect8* rect=NULL);
|
|
|
|
|
|
void Draw(CInsertDraw& m_insert);
|
|
|
|
|
|
void Draw(CInsertOld& m_insert);
|
|
|
|
|
|
|
|
|
|
|
|
BOOL OpenWrite(CString lpszPathName, bool bBinary = true); //<2F><><EFBFBD><EFBFBD>д<EFBFBD>ļ<EFBFBD>
|
|
|
|
|
|
BOOL OpenWrite(CFile *pFile); //<2F><><EFBFBD><EFBFBD>д<EFBFBD>ļ<EFBFBD>
|
|
|
|
|
|
//void Close(); //<2F>ر<EFBFBD>д<EFBFBD>ļ<EFBFBD>
|
|
|
|
|
|
void SetPictureRect(CRect8 rect);
|
|
|
|
|
|
CRect8 GetPictureRect(void);
|
|
|
|
|
|
void SetScaleFactor(double scaleFactor);
|
|
|
|
|
|
double GetScaleFactor(void);
|
|
|
|
|
|
//FILE* GetFile(void);
|
|
|
|
|
|
/*virtual void SetFile(FILE* pFile);*/
|
|
|
|
|
|
void SetUnit(CSize unit);
|
|
|
|
|
|
CSize GetUnit(void);
|
|
|
|
|
|
virtual void SetMapSize(CSize sz) {}
|
|
|
|
|
|
int BuildFileHead(void);
|
|
|
|
|
|
int BuildSymLib(void);
|
|
|
|
|
|
GMLayerHead BuildLayerHead(void);
|
|
|
|
|
|
int BuildPline(int size, IPoint *ip);
|
|
|
|
|
|
int BuildString(CText *text);
|
|
|
|
|
|
int BuildImage(long w,long h,CRect8 rect);
|
|
|
|
|
|
int BuildPolygon(int size, IPoint *ip);
|
|
|
|
|
|
int BuildSeismacSection(CSection& section);
|
|
|
|
|
|
int BuildElement(void);
|
|
|
|
|
|
int Amplify10(double num);
|
|
|
|
|
|
void DeleteObj(void);
|
|
|
|
|
|
public:
|
|
|
|
|
|
CGeoMapGdbWriter *m_gdb;
|
|
|
|
|
|
public:
|
|
|
|
|
|
CRect8 m_rect;
|
|
|
|
|
|
CSize m_unit;
|
|
|
|
|
|
double m_scaleFactor;
|
|
|
|
|
|
int m_headSize;
|
|
|
|
|
|
int m_symbolSize;
|
|
|
|
|
|
int m_polylineSize;
|
|
|
|
|
|
int m_textSize;
|
|
|
|
|
|
int m_polygonSize;
|
|
|
|
|
|
int m_multTextySize;
|
|
|
|
|
|
IPoint m_xyData;
|
|
|
|
|
|
list<IPoint> m_xyList;
|
|
|
|
|
|
|
|
|
|
|
|
int m_DataLength;
|
|
|
|
|
|
BYTE *m_imageData;
|
|
|
|
|
|
int m_imageSize;
|
|
|
|
|
|
int m_seismacSize;
|
|
|
|
|
|
|
|
|
|
|
|
int m_xScale;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>x<EFBFBD><78><EFBFBD><EFBFBD><EFBFBD>̶<EFBFBD>
|
|
|
|
|
|
int m_yScale;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>y<EFBFBD><79><EFBFBD><EFBFBD><EFBFBD>̶<EFBFBD>
|
|
|
|
|
|
int m_scale;//<2F>̶ȱ<CCB6><C8B1><EFBFBD> Ҫ<><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
int m_x1,m_y1,m_x2,m_y2;//ͼ<>μ<EFBFBD><CEBC><EFBFBD><EFBFBD>߽<EFBFBD> <20><>ͨͼ<CDA8><CDBC><EFBFBD><EFBFBD><EFBFBD>ò<EFBFBD>ֵͬ
|
|
|
|
|
|
double m_w,m_h;//x2-x1 y2-y1ʵ<31>ʿ<EFBFBD><CABF>߱<EFBFBD><DFB1>ڼ<EFBFBD><DABC><EFBFBD>
|
|
|
|
|
|
int m_left,m_top,m_rignt,m_bottom;//ͼ<><CDBC><EFBFBD>߾<EFBFBD>mm
|
|
|
|
|
|
int m_paperW,m_paperH;//ͼֽ<CDBC><D6BD><EFBFBD><EFBFBD>mm
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}//namespace
|
|
|
|
|
|
|