26 #ifndef _BOARD_PATH_H_
27 #define _BOARD_PATH_H_
43 Path() : _closed(
false ) { }
45 Path(
const std::vector<Point> & points,
bool closed )
46 : _points( points ), _closed( closed ) { }
48 Path(
bool closed ) : _closed( closed ) { }
52 inline bool closed()
const;
54 inline bool empty()
const;
56 inline std::size_t size()
const;
58 inline void setClosed(
bool closed );
206 void flushPostscript( std::ostream & stream,
209 void flushFIG( std::ostream & stream,
212 void flushSVGPoints( std::ostream & stream,
215 void flushSVGCommands( std::ostream & stream,
218 void flushTikZPoints( std::ostream & stream,
229 std::vector<Point> _points;
259 return _points.empty();
265 return _points.size();
269 Path::setClosed(
bool closed )
Path & scale(double sx, double sy)
Definition: Path.cpp:117
Path & operator<<(const Point &p)
Definition: Path.cpp:40
Rect boundingBox() const
Definition: Path.cpp:260
Path & translate(double dx, double dy)
Definition: Path.cpp:90
The Point structure. @copyright This source code is part of the Board project, a C++ library whose pu...
Point center() const
Definition: Path.cpp:47
A path, according to Postscript and SVG definition.
Definition: Path.h:41
Path scaled(double sx, double sy) const
Definition: Path.cpp:140
Struct representing a 2D point.
Definition: Point.h:38
Path rotated(double angle, const Point ¢er) const
Definition: Path.cpp:64
Path & pop_back()
Definition: Path.cpp:33
Path & rotate(double angle, const Point ¢er)
Definition: Path.cpp:52
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
void scaleAll(double s)
Definition: Path.cpp:152
Path translated(double dx, double dy) const
Definition: Path.cpp:103
Point & operator[](const std::size_t n)
Definition: Path.h:240
Struct representing a rectangle on the plane.
Definition: Rect.h:38