|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_UTILS_FORMATS_SVG_SHAPES_H_
2 #define GENESIS_UTILS_FORMATS_SVG_SHAPES_H_
205 double cx,
double cy,
267 double rx,
double ry,
273 double cx,
double cy,
274 double rx,
double ry,
340 std::vector< SvgPoint >
points,
409 std::vector< SvgPoint >
const&
points,
478 std::vector< std::string >
const&
elements,
551 :
SvgUse( other, 0.0, 0.0 )
567 ,
offset( offset_x, offset_y )
569 if( other.
id().empty() ) {
570 throw std::runtime_error(
571 "Cannot create an SvgUse object using an SvgObject with an empty id attribute."
613 #endif // include guard
SvgBox bounding_box() const
SvgUse(SvgObject const &other, SvgPoint const &offset)
std::vector< SvgPoint > points
std::vector< std::string > elements
std::string indent(std::string const &text, std::string const &indentation)
Indent each line of text with indentation and return the result.
SvgEllipse(SvgPoint const ¢er, double rx, double ry, SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
SvgRect & operator=(SvgRect const &)=default
self_type & operator<<(std::string elem)
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
self_type & operator<<(SvgPoint p)
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
std::string const & id() const
SvgBox bounding_box() const
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
self_type & add(double x, double y)
SvgBox bounding_box() const
SvgBox bounding_box() const
SvgBox bounding_box() const
Compute the bounding box of the path.
self_type & add(double x, double y)
SvgPolyline & operator=(SvgPolyline const &)=default
SvgLine & operator=(SvgLine const &)=default
SvgLine(SvgPoint const &point_1, SvgPoint const &point_2, SvgStroke const &stroke=SvgStroke())
std::vector< SvgPoint > points
SvgBox bounding_box() const
SvgPolyline(SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
SvgPolygon & operator=(SvgPolygon const &)=default
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
SvgUse(SvgObject const &other, double offset_x, double offset_y)
SvgUse(SvgObject const &other)
SvgPolygon(SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
SvgCircle & operator=(SvgCircle const &)=default
SvgEllipse & operator=(SvgEllipse const &)=default
SvgPath(SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
SvgBox bounding_box() const
SvgBox bounding_box() const
SvgRect(SvgPoint const &position, SvgSize const &size, SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
SvgCircle(SvgPoint const ¢er, double radius, SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
self_type & add(std::string elem)
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
self_type & operator<<(SvgPoint p)
SvgPath & operator=(SvgPath const &)=default
SvgUse & operator=(SvgUse const &)=default
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const