14 #ifndef _BOARD_PATH_H_
15 #define _BOARD_PATH_H_
17 #include "Board/Point.h"
18 #include "Board/Rect.h"
19 #include "Board/Transforms.h"
25 #if defined(__clang__)
26 #pragma clang diagnostic push
27 #pragma clang diagnostic ignored "-Wdocumentation"
30 #if defined(__clang__)
31 #pragma clang diagnostic pop
47 Path(
const std::vector<Point> & points,
bool closedPath )
54 inline bool closed()
const;
56 inline bool empty()
const;
58 inline unsigned int size()
const;
206 void flushFIG( std::ostream & stream,
251 return (
unsigned int)
_points.size();
A path, according to Postscript and SVG definition.
unsigned int size() const
Path translated(double dx, double dy) const
void flushCairoPoints(cairo_t *cr, const TransformCairo &transform) const
const Point & operator[](const unsigned int n) const
Path(const std::vector< Point > &points, bool closedPath)
std::vector< Point > _points
Path & scale(double sx, double sy)
void flushFIG(std::ostream &stream, const TransformFIG &transform) const
Path & operator<<(const Point &p)
Point & operator[](const unsigned int n)
void setClosed(bool closed)
void flushSVGPoints(std::ostream &stream, const TransformSVG &transform) const
Path scaled(double sx, double sy) const
Path rotated(double angle, const Point ¢er) const
Path & translate(double dx, double dy)
void flushPostscript(std::ostream &stream, const TransformEPS &transform) const
void flushSVGCommands(std::ostream &stream, const TransformSVG &transform) const
void flushTikZPoints(std::ostream &stream, const TransformTikZ &transform) const
Path & rotate(double angle, const Point ¢er)
Struct representing a 2D point.
Struct representing a rectangle on the plane.