line2d.h
来自「我自己写的代码 可能比较简单 我实现了模拟图层的功能」· C头文件 代码 · 共 37 行
H
37 行
///////////////////////////////////////////////////////////
// Line2D.h
// Implementation of the Class Line2D
// Created on: 18-二月-2009 17:17:20
// Original author: pangyj
///////////////////////////////////////////////////////////
#if !defined(EA_9448FE11_A0F2_4265_AA0B_334517EE1AE5__INCLUDED_)
#define EA_9448FE11_A0F2_4265_AA0B_334517EE1AE5__INCLUDED_
#include "Point2D.h"
#include "ErrorStatus.h"
#include "GeometryPrimitive.h"
class Line2D : public GeometryPrimitive
{
public:
virtual ~Line2D();
Line2D();
Line2D(const Point2D& ePt, const Point2D& sPt);
const Point2D endPoint() const;
void endPoint(const Point2D& pt);
virtual ErrorStatus read(fstream& f);
const Point2D startPoint() const;
void startPoint(const Point2D& pt);
virtual ErrorStatus write(fstream& f);
virtual void list()const;
private:
Point2D endPt;
Point2D startPt;
};
#endif // !defined(EA_9448FE11_A0F2_4265_AA0B_334517EE1AE5__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?