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

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

Detailed Description

Definition at line 318 of file shapes.hpp.

Public Member Functions

 SvgPolyline (SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
 
 SvgPolyline (std::vector< SvgPoint > points, SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
 
 SvgPolyline (SvgPolyline const &)=default
 
 SvgPolyline (SvgPolyline &&)=default
 
 ~SvgPolyline ()=default
 
self_typeadd (double x, double y)
 
self_typeadd (SvgPoint p)
 
SvgBox bounding_box () const
 
self_typeoperator<< (SvgPoint p)
 
SvgPolylineoperator= (SvgPolyline const &)=default
 
SvgPolylineoperator= (SvgPolyline &&)=default
 
void write (std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
 

Public Types

using self_type = SvgPolyline
 

Public Attributes

SvgFill fill
 
std::string id
 
std::vector< SvgPointpoints
 
SvgStroke stroke
 
SvgTransform transform
 

Constructor & Destructor Documentation

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

Definition at line 287 of file shapes.cpp.

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

Definition at line 295 of file shapes.cpp.

~SvgPolyline ( )
default
SvgPolyline ( SvgPolyline const &  )
default
SvgPolyline ( SvgPolyline &&  )
default

Member Function Documentation

SvgPolyline & add ( double  x,
double  y 
)

Definition at line 309 of file shapes.cpp.

SvgPolyline & add ( SvgPoint  p)

Definition at line 314 of file shapes.cpp.

SvgBox bounding_box ( ) const

Definition at line 325 of file shapes.cpp.

SvgPolyline & operator<< ( SvgPoint  p)

Definition at line 320 of file shapes.cpp.

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

Definition at line 349 of file shapes.cpp.

Member Typedef Documentation

Definition at line 326 of file shapes.hpp.

Member Data Documentation

SvgFill fill

Definition at line 377 of file shapes.hpp.

std::string id

Definition at line 372 of file shapes.hpp.

std::vector< SvgPoint > points

Definition at line 374 of file shapes.hpp.

SvgStroke stroke

Definition at line 376 of file shapes.hpp.

SvgTransform transform

Definition at line 379 of file shapes.hpp.


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