A library for working with phylogenetic and population genetic data.
v0.27.0
utils/formats/svg/helper.hpp File Reference
#include "genesis/utils/io/base64.hpp"
#include "genesis/utils/math/common.hpp"
#include <algorithm>
#include <cmath>
#include <ostream>
#include <sstream>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  SvgBox
 
struct  SvgDrawingOptions
 
struct  SvgMargin
 
struct  SvgPoint
 
struct  SvgSize
 

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::utils
 

Functions

std::string svg_arc (double center_x, double center_y, double radius, double start_angle, double end_angle)
 Create an arc to use in an SvgPath. More...
 
template<typename T >
std::string svg_attribute (std::string const &name, T const &value, std::string const &unit="")
 
std::string svg_comment (std::string const &content)
 
std::string svg_data_uri (std::string const &media_type, std::string const &content, bool encode_base64=false)