A toolkit for working with phylogenetic data.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SvgPolygon Struct Reference

#include <genesis/utils/formats/svg/shapes.hpp>

Detailed Description

Definition at line 387 of file shapes.hpp.

Public Member Functions

 SvgPolygon (SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
 SvgPolygon (std::vector< SvgPoint > const &points, SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
 SvgPolygon (SvgPolygon const &)=default
 SvgPolygon (SvgPolygon &&)=default
 ~SvgPolygon ()=default
self_typeadd (double x, double y)
self_typeadd (SvgPoint p)
SvgBox bounding_box () const
self_typeoperator<< (SvgPoint p)
SvgPolygonoperator= (SvgPolygon const &)=default
SvgPolygonoperator= (SvgPolygon &&)=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< SvgPointpoints
SvgStroke stroke
SvgTransform transform

Constructor & Destructor Documentation

SvgPolygon ( SvgStroke const &  stroke = SvgStroke(),
SvgFill const &  fill = SvgFill() 

Definition at line 382 of file shapes.cpp.

SvgPolygon ( std::vector< SvgPoint > const &  points,
SvgStroke const &  stroke = SvgStroke(),
SvgFill const &  fill = SvgFill() 

Definition at line 390 of file shapes.cpp.

~SvgPolygon ( )
SvgPolygon ( SvgPolygon const &  )
SvgPolygon ( SvgPolygon &&  )

Member Function Documentation

SvgPolygon & add ( double  x,
double  y 

Definition at line 404 of file shapes.cpp.

SvgPolygon & add ( SvgPoint  p)

Definition at line 409 of file shapes.cpp.

SvgBox bounding_box ( ) const

Definition at line 420 of file shapes.cpp.

SvgPolygon & operator<< ( SvgPoint  p)

Definition at line 415 of file shapes.cpp.

SvgPolygon& operator= ( SvgPolygon const &  )
SvgPolygon& operator= ( SvgPolygon &&  )
void write ( std::ostream &  out,
size_t  indent = 0,
SvgDrawingOptions const &  options = SvgDrawingOptions() 
) const

Definition at line 444 of file shapes.cpp.

Member Typedef Documentation

Definition at line 395 of file shapes.hpp.

Member Data Documentation

SvgFill fill

Definition at line 446 of file shapes.hpp.

std::string id

Definition at line 441 of file shapes.hpp.

std::vector< SvgPoint > points

Definition at line 443 of file shapes.hpp.

SvgStroke stroke

Definition at line 445 of file shapes.hpp.

SvgTransform transform

Definition at line 448 of file shapes.hpp.

The documentation for this struct was generated from the following files: