📄 tabmapobjrectellipse.cpp
字号:
// tabmapobjrectellipse.cpp: implementation of the TABMAPObjRectEllipse class.////////////////////////////////////////////////////////////////////////#include "tabmapobjrectellipse.h"#include "ugk_errhandle.h"/********************************************************************** * TABMAPObjRectEllipse::ReadObj() * * Read Object information starting after the object id **********************************************************************/int TABMAPObjRectEllipse::ReadObj(TABMAPObjectBlock *poObjBlock){//__TODO__ For now this is read directly in ReadGeometryFromMAPFile()// This will be implemented the day we support random update. return 0;}/********************************************************************** * TABMAPObjRectEllipse::WriteObj() * * Write Object information with the type+object id * * Returns 0 on success, -1 on error. **********************************************************************/int TABMAPObjRectEllipse::WriteObj(TABMAPObjectBlock *poObjBlock){ // Write object type and id TABMAPObjHdr::WriteObjTypeAndId(poObjBlock); if (m_nType == TAB_GEOM_ROUNDRECT || m_nType == TAB_GEOM_ROUNDRECT_C) { if (IsCompressedType()) { poObjBlock->WriteInt16(m_nCornerWidth); poObjBlock->WriteInt16(m_nCornerHeight); } else { poObjBlock->WriteInt32(m_nCornerWidth); poObjBlock->WriteInt32(m_nCornerHeight); } } poObjBlock->WriteIntMBRCoord(m_nMinX, m_nMinY, m_nMaxX, m_nMaxY, IsCompressedType()); poObjBlock->WriteByte(m_nPenId); // Pen index poObjBlock->WriteByte(m_nBrushId); // Brush index if (UGKGetLastErrorNo() != 0) return -1; return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -