tabmapobjfontpoint.cpp

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

CPP
55
字号
// tabmapobjfontpoint.cpp: implementation of the TABMAPObjFontPoint class.////////////////////////////////////////////////////////////////////////#include "tabmapobjfontpoint.h"#include "ugk_errhandle.h"/********************************************************************** *                   TABMAPObjFontPoint::ReadObj() * * Read Object information starting after the object id **********************************************************************/int TABMAPObjFontPoint::ReadObj(TABMAPObjectBlock *poObjBlock){//__TODO__  For now this is read directly in ReadGeometryFromMAPFile()//          This will be implemented the day we support random update.    return 0;}/********************************************************************** *                   TABMAPObjFontPoint::WriteObj() * * Write Object information with the type+object id * * Returns 0 on success, -1 on error. **********************************************************************/int TABMAPObjFontPoint::WriteObj(TABMAPObjectBlock *poObjBlock){    // Write object type and id    TABMAPObjHdr::WriteObjTypeAndId(poObjBlock);    poObjBlock->WriteByte(m_nSymbolId);   // symbol shape    poObjBlock->WriteByte(m_nPointSize);    poObjBlock->WriteInt16(m_nFontStyle);            // font style    poObjBlock->WriteByte( m_nR );    poObjBlock->WriteByte( m_nG );    poObjBlock->WriteByte( m_nB );    poObjBlock->WriteByte( 0 );    poObjBlock->WriteByte( 0 );    poObjBlock->WriteByte( 0 );        poObjBlock->WriteInt16(m_nAngle);    poObjBlock->WriteIntCoord(m_nX, m_nY, IsCompressedType());    poObjBlock->WriteByte(m_nFontId);      // Font name index    if (UGKGetLastErrorNo() != 0)        return -1;    return 0;}

⌨️ 快捷键说明

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