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

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

Detailed Description

Definition at line 48 of file shapes.hpp.

Public Member Functions

 SvgLine (SvgPoint const &point_1, SvgPoint const &point_2, SvgStroke const &stroke=SvgStroke())
 
 SvgLine (double x1, double y1, double x2, double y2, SvgStroke const &stroke=SvgStroke())
 
 SvgLine (SvgLine const &)=default
 
 SvgLine (SvgLine &&)=default
 
 ~SvgLine ()=default
 
SvgBox bounding_box () const
 
SvgLineoperator= (SvgLine const &)=default
 
SvgLineoperator= (SvgLine &&)=default
 
void write (std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
 

Public Types

using self_type = SvgLine
 

Public Attributes

std::string id
 
SvgPoint point_1
 
SvgPoint point_2
 
SvgStroke stroke
 
SvgTransform transform
 

Constructor & Destructor Documentation

SvgLine ( SvgPoint const &  point_1,
SvgPoint const &  point_2,
SvgStroke const &  stroke = SvgStroke() 
)

Definition at line 51 of file shapes.cpp.

SvgLine ( double  x1,
double  y1,
double  x2,
double  y2,
SvgStroke const &  stroke = SvgStroke() 
)

Definition at line 57 of file shapes.cpp.

~SvgLine ( )
default
SvgLine ( SvgLine const &  )
default
SvgLine ( SvgLine &&  )
default

Member Function Documentation

SvgBox bounding_box ( ) const

Definition at line 65 of file shapes.cpp.

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

Definition at line 73 of file shapes.cpp.

Member Typedef Documentation

using self_type = SvgLine

Definition at line 56 of file shapes.hpp.

Member Data Documentation

std::string id

Definition at line 98 of file shapes.hpp.

SvgPoint point_1

Definition at line 99 of file shapes.hpp.

SvgPoint point_2

Definition at line 100 of file shapes.hpp.

SvgStroke stroke

Definition at line 101 of file shapes.hpp.

SvgTransform transform

Definition at line 102 of file shapes.hpp.


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