#include <genesis/utils/formats/svg/shapes.hpp>
Definition at line 389 of file shapes.hpp.
Public Member Functions | |
| SvgPolygon (std::vector< SvgPoint > const &points, SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill()) | |
| SvgPolygon (SvgPolygon &&)=default | |
| SvgPolygon (SvgPolygon const &)=default | |
| SvgPolygon (SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill()) | |
| ~SvgPolygon ()=default | |
| self_type & | add (double x, double y) |
| self_type & | add (SvgPoint p) |
| SvgBox | bounding_box () const |
| self_type & | operator<< (SvgPoint p) |
| SvgPolygon & | operator= (SvgPolygon &&)=default |
| SvgPolygon & | operator= (SvgPolygon const &)=default |
| void | write (std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const |
Public Types | |
| using | self_type = SvgPolygon |
Public Attributes | |
| SvgFill | fill |
| std::string | id |
| std::vector< SvgPoint > | points |
| SvgStroke | stroke |
| SvgTransform | transform |
| SvgPolygon | ( | SvgStroke const & | stroke = SvgStroke(), |
| SvgFill const & | fill = SvgFill() |
||
| ) |
Definition at line 383 of file shapes.cpp.
| SvgPolygon | ( | std::vector< SvgPoint > const & | points, |
| SvgStroke const & | stroke = SvgStroke(), |
||
| SvgFill const & | fill = SvgFill() |
||
| ) |
Definition at line 391 of file shapes.cpp.
|
default |
|
default |
|
default |
| SvgPolygon & add | ( | double | x, |
| double | y | ||
| ) |
Definition at line 405 of file shapes.cpp.
| SvgPolygon & add | ( | SvgPoint | p | ) |
Definition at line 410 of file shapes.cpp.
| SvgBox bounding_box | ( | ) | const |
Definition at line 421 of file shapes.cpp.
| SvgPolygon & operator<< | ( | SvgPoint | p | ) |
Definition at line 416 of file shapes.cpp.
|
default |
|
default |
| void write | ( | std::ostream & | out, |
| size_t | indent = 0, |
||
| SvgDrawingOptions const & | options = SvgDrawingOptions() |
||
| ) | const |
Definition at line 426 of file shapes.cpp.
| using self_type = SvgPolygon |
Definition at line 397 of file shapes.hpp.
| SvgFill fill |
Definition at line 448 of file shapes.hpp.
| std::string id |
Definition at line 443 of file shapes.hpp.
| std::vector< SvgPoint > points |
Definition at line 445 of file shapes.hpp.
| SvgStroke stroke |
Definition at line 447 of file shapes.hpp.
| SvgTransform transform |
Definition at line 450 of file shapes.hpp.