A library for working with phylogenetic and population genetic data.
v0.27.0
SvgPolygon Struct Reference

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

Detailed Description

Definition at line 387 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_typeadd (double x, double y)
 
self_typeadd (SvgPoint p)
 
SvgBox bounding_box () const
 
self_typeoperator<< (SvgPoint p)
 
SvgPolygonoperator= (SvgPolygon &&)=default
 
SvgPolygonoperator= (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< SvgPointpoints
 
SvgStroke stroke
 
SvgTransform transform
 

Constructor & Destructor Documentation

◆ SvgPolygon() [1/4]

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

Definition at line 382 of file shapes.cpp.

◆ SvgPolygon() [2/4]

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

Definition at line 390 of file shapes.cpp.

◆ ~SvgPolygon()

~SvgPolygon ( )
default

◆ SvgPolygon() [3/4]

SvgPolygon ( SvgPolygon const &  )
default

◆ SvgPolygon() [4/4]

SvgPolygon ( SvgPolygon &&  )
default

Member Function Documentation

◆ add() [1/2]

SvgPolygon & add ( double  x,
double  y 
)

Definition at line 404 of file shapes.cpp.

◆ add() [2/2]

SvgPolygon & add ( SvgPoint  p)

Definition at line 409 of file shapes.cpp.

◆ bounding_box()

SvgBox bounding_box ( ) const

Definition at line 420 of file shapes.cpp.

◆ operator<<()

SvgPolygon & operator<< ( SvgPoint  p)

Definition at line 415 of file shapes.cpp.

◆ operator=() [1/2]

SvgPolygon& operator= ( SvgPolygon &&  )
default

◆ operator=() [2/2]

SvgPolygon& operator= ( SvgPolygon const &  )
default

◆ write()

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

◆ self_type

Definition at line 395 of file shapes.hpp.

Member Data Documentation

◆ fill

SvgFill fill

Definition at line 446 of file shapes.hpp.

◆ id

std::string id

Definition at line 441 of file shapes.hpp.

◆ points

std::vector< SvgPoint > points

Definition at line 443 of file shapes.hpp.

◆ stroke

SvgStroke stroke

Definition at line 445 of file shapes.hpp.

◆ transform

SvgTransform transform

Definition at line 448 of file shapes.hpp.


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