📄 tabrectangle.h
字号:
// tabrectangle.h: interface for the TABRectangle class.///*--------------------------------------------------------------------- * class TABRectangle * * Feature class to handle the MapInfo rectangle types: * * TAB_GEOM_RECT_C 0x13 * TAB_GEOM_RECT 0x14 * TAB_GEOM_ROUNDRECT_C 0x16 * TAB_GEOM_ROUNDRECT 0x17 * * A rectangle is defined by the coords of its 2 opposite corners (the MBR) * Its corners can optionaly be rounded, in which case a X and Y rounding * radius will be defined. * * Feature geometry will be UGKPolygon *--------------------------------------------------------------------*/#ifndef TABRectangle_H#define TABRectangle_H#include "tabfeaturepen.h"#include "tabfeature.h"#include "tabfeaturebrush.h"class TABRectangle : public TABFeature, public TABFeaturePen, public TABFeatureBrush {public: TABRectangle(UGKFeatureDefn *poDefnIn); virtual ~TABRectangle(); virtual TABFeatureClass GetFeatureClass() { return TABFCRectangle; }; virtual int ValidateMapInfoType(TABMAPFile *poMapFile = NULL); virtual TABFeature *CloneTABFeature(UGKFeatureDefn *poNewDefn = NULL ); virtual int ReadGeometryFromMAPFile(TABMAPFile *poMapFile, TABMAPObjHdr *); virtual int WriteGeometryToMAPFile(TABMAPFile *poMapFile, TABMAPObjHdr *); virtual int ReadGeometryFromMIFFile(MIDDATAFile *fp); virtual int WriteGeometryToMIFFile(MIDDATAFile *fp); virtual const char *GetStyleString(); virtual void DumpMIF(FILE *fpOut = NULL); UGKBool m_bRoundCorners; double m_dRoundXRadius; double m_dRoundYRadius;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -