ultimatepp/bazaar/DXF/Line.h
micio ebcd401c53 Bazaar/DXF : provide a GetBoundingBox() function and zoom to drawing extents upon saving
git-svn-id: svn://ultimatepp.org/upp/trunk@5276 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-08-12 10:37:12 +00:00

33 lines
641 B
C++

#ifndef _DXF_Line_h_
#define _DXF_Line_h_
#include "Entity.h"
class DXFLine : public DXFEntity
{
friend class DXFEntities;
private:
// the line endpoints
Pointf p1, p2;
protected:
virtual bool Write(Stream &s);
// private constructor -- may be created only by DXFEntities
DXFLine(DXFEntities *e);
public:
// get/set points
Pointf const &GetP1(void) const { return p1; }
Pointf const &GetP2(void) const { return p2; }
Vector<Pointf> GetPoints(void) const;
DXFLine &SetPoints(Pointf const &p1, Pointf const &p2);
// gets bounding box of element
virtual Rectf GetBoundingBox(void) const;
};
#endif