15 #ifndef _BOARD_SHAPELIST_H_
16 #define _BOARD_SHAPELIST_H_
18 #include "Board/Shapes.h"
19 #include "Board/Tools.h"
42 const std::string &
name()
const;
79 void flushFIG( std::ostream & stream,
81 std::map<DGtal::Color,int> & colormap )
const;
83 void flushSVG( std::ostream & stream,
151 T &
last(
const unsigned int position = 0 );
153 Shape &
last(
const unsigned int position = 0 );
198 const std::string &
name()
const;
229 float width,
float height );
249 void flushFIG( std::ostream & stream,
251 std::map<DGtal::Color,int> & colormap )
const;
253 void flushSVG( std::ostream & stream,
277 #include "ShapeList.ih"
A group of shapes. A group is basically a ShapeList except that when rendered in either an SVG of a F...
static unsigned int _clippingCount
void flushSVG(std::ostream &stream, const TransformSVG &transform) const
Shape & rotate(double angle, const Point ¢er)
Group(const Group &other)
Group rotated(double angle, const Point ¢er)
static const std::string _name
const std::string & name() const
void flushFIG(std::ostream &stream, const TransformFIG &transform, std::map< DGtal::Color, int > &colormap) const
void flushCairo(cairo_t *cr, const TransformCairo &transform) const
Group scaled(double sx, double sy)
void flushPostscript(std::ostream &stream, const TransformEPS &transform) const
Group & operator=(const Group &other)
Group translated(double dx, double dy)
Shape & translate(double dx, double dy)
Shape & scale(double sx, double sy)
void setClippingPath(const std::vector< Point > &points)
void setClippingRectangle(float x, float y, float width, float height)
void flushTikZ(std::ostream &stream, const TransformTikZ &transform) const
A path, according to Postscript and SVG definition.
Struct representing a 2D point.
Struct representing a rectangle on the plane.
void addShape(const Shape &shape, double scaleFactor)
ShapeList scaled(double sx, double sy)
void flushCairo(cairo_t *cr, const TransformCairo &transform) const
const std::string & name() const
void flushPostscript(std::ostream &stream, const TransformEPS &transform) const
void flushFIG(std::ostream &stream, const TransformFIG &transform, std::map< DGtal::Color, int > &colormap) const
Shape & rotate(double angle, const Point ¢er)
void flushSVG(std::ostream &stream, const TransformSVG &transform) const
virtual int minDepth() const
std::vector< Shape * > _shapes
T & last(const unsigned int position=0)
void flushTikZ(std::ostream &stream, const TransformTikZ &transform) const
Shape & translate(double dx, double dy)
void shiftDepth(int shift)
ShapeList & insert(const Shape &shape, int depth)
ShapeList & dup(unsigned int copies=1)
Shape & scale(double sx, double sy)
ShapeList translated(double dx, double dy)
static const std::string _name
ShapeList rotated(double angle, const Point ¢er)
virtual int maxDepth() const
ShapeList & operator<<(const Shape &shape)
ShapeList & operator+=(const Shape &shape)
ShapeList & operator=(const ShapeList &other)
Abstract structure for a 2D shape.