📄 line2d.h
字号:
///////////////////////////////////////////////////////////
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -