tabmapobjarc.cpp

来自「linux下一款GIS程序源码」· C++ 代码 · 共 53 行

CPP
53
字号
// tabmapobjarc.cpp: implementation of the TABMAPObjArc class.////////////////////////////////////////////////////////////////////////#include "tabmapobjarc.h"#include "ugk_errhandle.h"/********************************************************************** *                   TABMAPObjArc::ReadObj() * * Read Object information starting after the object id **********************************************************************/int TABMAPObjArc::ReadObj(TABMAPObjectBlock *poObjBlock){//__TODO__  For now this is read directly in ReadGeometryFromMAPFile()//          This will be implemented the day we support random update.    return 0;}/********************************************************************** *                   TABMAPObjArc::WriteObj() * * Write Object information with the type+object id * * Returns 0 on success, -1 on error. **********************************************************************/int TABMAPObjArc::WriteObj(TABMAPObjectBlock *poObjBlock){    // Write object type and id    TABMAPObjHdr::WriteObjTypeAndId(poObjBlock);    poObjBlock->WriteInt16(m_nStartAngle);    poObjBlock->WriteInt16(m_nEndAngle);        // An arc is defined by its defining ellipse's MBR:    poObjBlock->WriteIntMBRCoord(m_nArcEllipseMinX, m_nArcEllipseMinY,                                  m_nArcEllipseMaxX, m_nArcEllipseMaxY,                                  IsCompressedType());    // Write the Arc's actual MBR    poObjBlock->WriteIntMBRCoord(m_nMinX, m_nMinY, m_nMaxX, m_nMaxY,                                  IsCompressedType());    poObjBlock->WriteByte(m_nPenId);      // Pen index    if (UGKGetLastErrorNo() != 0)        return -1;    return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?