17#include "Board/Point.h"
18#include "Board/Rect.h"
19#include "Board/Transforms.h"
26#pragma clang diagnostic push
27#pragma clang diagnostic ignored "-Wdocumentation"
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;
134 Path & rotate(
double angle );
173 Path & scale(
double sx,
double sy );
182 Path & scale(
double s );
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
Point & operator[](const unsigned int n)
void flushCairoPoints(cairo_t *cr, const TransformCairo &transform) const
Path(const std::vector< Point > &points, bool closedPath)
const Point & operator[](const unsigned int n) const
std::vector< Point > _points
void flushFIG(std::ostream &stream, const TransformFIG &transform) const
Path & operator<<(const Point &p)
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
Struct representing a 2D point.
Struct representing a rectangle on the plane.