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();
Path & scale(double sx, double sy)
Point & operator[](const unsigned int n)
Path rotated(double angle, const Point ¢er) const
Path(const std::vector< Point > &points, bool closedPath)
Struct representing a rectangle on the plane.
const Point & operator[](const unsigned int n) const
Path & operator<<(const Point &p)
void setClosed(bool closed)
Path & translate(double dx, double dy)
void flushFIG(std::ostream &stream, const TransformFIG &transform) const
void flushTikZPoints(std::ostream &stream, const TransformTikZ &transform) const
unsigned int size() const
Path scaled(double sx, double sy) const
Struct representing a 2D point.
void flushSVGPoints(std::ostream &stream, const TransformSVG &transform) const
Path & rotate(double angle, const Point ¢er)
std::vector< Point > _points
A path, according to Postscript and SVG definition.
void flushCairoPoints(cairo_t *cr, const TransformCairo &transform) const
void flushSVGCommands(std::ostream &stream, const TransformSVG &transform) const
Path translated(double dx, double dy) const
void flushPostscript(std::ostream &stream, const TransformEPS &transform) const