📄 polygon.h
字号:
///////////////////////////////////////////////////////////
// Polygon.h
// Implementation of the Class Polygon
// Created on: 18-二月-2009 17:17:22
// Original author: pangyj
///////////////////////////////////////////////////////////
#if !defined(EA_D9AAB42F_501C_45a0_9429_65D50BAC373F__INCLUDED_)
#define EA_D9AAB42F_501C_45a0_9429_65D50BAC373F__INCLUDED_
#include "ErrorStatus.h"
#include "GeometryPrimitive.h"
#include "Point2D.h"
class Polygon : public GeometryPrimitive
{
public:
virtual ~Polygon();
Polygon(const lit_list<Point2D> & vertexPts);
Polygon();
const lit_list<Point2D> & AddvertexAt(int pos, Point2D& pt);
virtual ErrorStatus read(fstream& f);
ErrorStatus vertexPts(lit_list<Point2D> & pts);
ErrorStatus write(fstream& f);
virtual void list()const;
ErrorStatus explode(lit_list<unsigned long> & ids);
private:
lit_list<Point2D> lVertexPts;
};
#endif // !defined(EA_D9AAB42F_501C_45a0_9429_65D50BAC373F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -