polygon.h
来自「我自己写的代码 可能比较简单 我实现了模拟图层的功能」· C头文件 代码 · 共 34 行
H
34 行
///////////////////////////////////////////////////////////
// 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 + =
减小字号Ctrl + -
显示快捷键?