|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_UTILS_FORMATS_SVG_GRADIENT_H_
2 #define GENESIS_UTILS_FORMATS_SVG_GRADIENT_H_
91 void write( std::ostream& out )
const;
135 std::string
const&
id,
157 void write( std::ostream& out,
size_t indent = 0 )
const;
175 std::vector< SvgGradientStop >
stops;
183 #endif // include guard
std::string indent(std::string const &text, std::string const &indentation)
Indent each line of text with indentation and return the result.
std::vector< SvgGradientStop > stops
SvgGradientStop self_type
~SvgGradientStop()=default
SvgGradientLinear & add_stop(SvgGradientStop const &stop)
SpreadMethod spread_method
SvgGradientLinear(std::string const &id, SvgPoint point_1=SvgPoint(0.0, 0.0), SvgPoint point_2=SvgPoint(1.0, 0.0))
Construct a gradient, with an ID and a vector determining its direction.
bool operator<(self_type const &rhs) const
SvgGradientStop(double offset, Color const &stop_color=Color())
void write(std::ostream &out, size_t indent=0) const
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
SvgGradientLinear()=default
SvgGradientStop & operator=(SvgGradientStop const &)=default
~SvgGradientLinear()=default
SvgGradientLinear & operator=(SvgGradientLinear const &)=default
SvgGradientLinear & set_stops(std::map< double, Color > const &ranges)
void write(std::ostream &out) const