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

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

Detailed Description

Definition at line 48 of file shapes.hpp.

Public Member Functions

 SvgLine (double x1, double y1, double x2, double y2, SvgStroke const &stroke=SvgStroke())
 
 SvgLine (SvgLine &&)=default
 
 SvgLine (SvgLine const &)=default
 
 SvgLine (SvgPoint const &point_1, SvgPoint const &point_2, SvgStroke const &stroke=SvgStroke())
 
 ~SvgLine ()=default
 
SvgBox bounding_box () const
 
SvgLineoperator= (SvgLine &&)=default
 
SvgLineoperator= (SvgLine const &)=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() [1/4]

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

Definition at line 51 of file shapes.cpp.

◆ SvgLine() [2/4]

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

Definition at line 57 of file shapes.cpp.

◆ ~SvgLine()

~SvgLine ( )
default

◆ SvgLine() [3/4]

SvgLine ( SvgLine const &  )
default

◆ SvgLine() [4/4]

SvgLine ( SvgLine &&  )
default

Member Function Documentation

◆ bounding_box()

SvgBox bounding_box ( ) const

Definition at line 65 of file shapes.cpp.

◆ operator=() [1/2]

SvgLine& operator= ( SvgLine &&  )
default

◆ operator=() [2/2]

SvgLine& operator= ( SvgLine const &  )
default

◆ write()

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

◆ self_type

using self_type = SvgLine

Definition at line 56 of file shapes.hpp.

Member Data Documentation

◆ id

std::string id

Definition at line 98 of file shapes.hpp.

◆ point_1

SvgPoint point_1

Definition at line 99 of file shapes.hpp.

◆ point_2

SvgPoint point_2

Definition at line 100 of file shapes.hpp.

◆ stroke

SvgStroke stroke

Definition at line 101 of file shapes.hpp.

◆ transform

SvgTransform transform

Definition at line 102 of file shapes.hpp.


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