A toolkit for working with phylogenetic data.
v0.24.0
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() [1/4]

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

Definition at line 287 of file shapes.cpp.

◆ SvgPolyline() [2/4]

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

Definition at line 295 of file shapes.cpp.

◆ ~SvgPolyline()

~SvgPolyline ( )
default

◆ SvgPolyline() [3/4]

SvgPolyline ( SvgPolyline const &  )
default

◆ SvgPolyline() [4/4]

SvgPolyline ( SvgPolyline &&  )
default

Member Function Documentation

◆ add() [1/2]

SvgPolyline & add ( double  x,
double  y 
)

Definition at line 309 of file shapes.cpp.

◆ add() [2/2]

SvgPolyline & add ( SvgPoint  p)

Definition at line 314 of file shapes.cpp.

◆ bounding_box()

SvgBox bounding_box ( ) const

Definition at line 325 of file shapes.cpp.

◆ operator<<()

SvgPolyline & operator<< ( SvgPoint  p)

Definition at line 320 of file shapes.cpp.

◆ operator=() [1/2]

SvgPolyline& operator= ( SvgPolyline const &  )
default

◆ operator=() [2/2]

SvgPolyline& operator= ( SvgPolyline &&  )
default

◆ write()

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

◆ self_type

Definition at line 326 of file shapes.hpp.

Member Data Documentation

◆ fill

SvgFill fill

Definition at line 377 of file shapes.hpp.

◆ id

std::string id

Definition at line 372 of file shapes.hpp.

◆ points

std::vector< SvgPoint > points

Definition at line 374 of file shapes.hpp.

◆ stroke

SvgStroke stroke

Definition at line 376 of file shapes.hpp.

◆ transform

SvgTransform transform

Definition at line 379 of file shapes.hpp.


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