A library for working with phylogenetic and population genetic data.
v0.32.0
SvgPolyline Struct Reference

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

Detailed Description

Definition at line 320 of file shapes.hpp.

Public Member Functions

 SvgPolyline (std::vector< SvgPoint > points, SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
 
 SvgPolyline (SvgPolyline &&)=default
 
 SvgPolyline (SvgPolyline const &)=default
 
 SvgPolyline (SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
 
 ~SvgPolyline ()=default
 
self_typeadd (double x, double y)
 
self_typeadd (SvgPoint p)
 
SvgBox bounding_box () const
 
self_typeoperator<< (SvgPoint p)
 
SvgPolylineoperator= (SvgPolyline &&)=default
 
SvgPolylineoperator= (SvgPolyline const &)=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 307 of file shapes.cpp.

◆ SvgPolyline() [2/4]

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

Definition at line 315 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 329 of file shapes.cpp.

◆ add() [2/2]

SvgPolyline & add ( SvgPoint  p)

Definition at line 334 of file shapes.cpp.

◆ bounding_box()

SvgBox bounding_box ( ) const

Definition at line 345 of file shapes.cpp.

◆ operator<<()

SvgPolyline & operator<< ( SvgPoint  p)

Definition at line 340 of file shapes.cpp.

◆ operator=() [1/2]

SvgPolyline& operator= ( SvgPolyline &&  )
default

◆ operator=() [2/2]

SvgPolyline& operator= ( SvgPolyline const &  )
default

◆ write()

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

Definition at line 350 of file shapes.cpp.

Member Typedef Documentation

◆ self_type

Definition at line 328 of file shapes.hpp.

Member Data Documentation

◆ fill

SvgFill fill

Definition at line 379 of file shapes.hpp.

◆ id

std::string id

Definition at line 374 of file shapes.hpp.

◆ points

std::vector< SvgPoint > points

Definition at line 376 of file shapes.hpp.

◆ stroke

SvgStroke stroke

Definition at line 378 of file shapes.hpp.

◆ transform

SvgTransform transform

Definition at line 381 of file shapes.hpp.


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