⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tabmapobjtext.cpp

📁 linux下一款GIS程序源码
💻 CPP
字号:
// tabmapobjtext.cpp: implementation of the TABMAPObjText class.////////////////////////////////////////////////////////////////////////#include "tabmapobjtext.h"#include "ugk_errhandle.h"/********************************************************************** *                   TABMAPObjText::ReadObj() * * Read Object information starting after the object id **********************************************************************/int TABMAPObjText::ReadObj(TABMAPObjectBlock *poObjBlock){//__TODO__  For now this is read directly in ReadGeometryFromMAPFile()//          This will be implemented the day we support random update.    return 0;}/********************************************************************** *                   TABMAPObjText::WriteObj() * * Write Object information with the type+object id * * Returns 0 on success, -1 on error. **********************************************************************/int TABMAPObjText::WriteObj(TABMAPObjectBlock *poObjBlock){    // Write object type and id    TABMAPObjHdr::WriteObjTypeAndId(poObjBlock);    poObjBlock->WriteInt32(m_nCoordBlockPtr);     // String position    poObjBlock->WriteInt16(m_nCoordDataSize);     // String length    poObjBlock->WriteInt16(m_nTextAlignment);     // just./spacing/arrow    poObjBlock->WriteInt16(m_nAngle);             // Tenths of degree    poObjBlock->WriteInt16(m_nFontStyle);         // Font style/effect    poObjBlock->WriteByte(m_nFGColorR );    poObjBlock->WriteByte(m_nFGColorG );    poObjBlock->WriteByte(m_nFGColorB );    poObjBlock->WriteByte(m_nBGColorR );    poObjBlock->WriteByte(m_nBGColorG );    poObjBlock->WriteByte(m_nBGColorB );    // Label line end point    poObjBlock->WriteIntCoord(m_nLineEndX, m_nLineEndY, IsCompressedType());    // Text Height    poObjBlock->WriteInt32(m_nHeight);    // Font name    poObjBlock->WriteByte(m_nFontId);      // Font name index    // MBR after rotation    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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -