izzi
SVG SUBSET C++ API
Loading...
Searching...
No Matches
a60-svg-radial-base.h File Reference
#include <set>
#include <chrono>
#include <iostream>
#include <iomanip>
#include <algorithm>
#include "a60-svg.h"
+ Include dependency graph for a60-svg-radial-base.h:

Go to the source code of this file.

Namespaces

namespace  svg
 
namespace  svg::constants
 

Enumerations

enum class  svg::constants::rrotation { svg::constants::cw , svg::constants::ccw }
 Radial rotation direction. More...
 

Functions

double svg::adjust_angle_at_orbit_for_distance (double r, double dist, const double minadjust=0.25)
 
double svg::adjust_angle_rotation (const double dorig, const k::rrotation rot)
 Adjust angle above to CW/CCW orientation.
 
void svg::append_ids_at (svg_element &obj, const typography &typo, const strings &ids, const double angled, const point_2t origin, double r)
 Concatenate ids onto one line.
 
double svg::get_angle (ssize_type pvalue, ssize_type pmax)
 Transform a value on a range to an angle on the radial range.
 
ssize_typesvg::get_label_spaces ()
 Get the label space. Value -> Name, as a string where value has labelspaces of fill NB: Should be the number of significant digits in pmax plus separators. So, 10 == 2, 100 == 3, 10k == 5 + 1.
 
point_2tsvg::get_radial_range ()
 
string svg::make_label_for_value (string pname, ssize_type pvalue, const uint valuewidth=9)
 Make radial labels.
 
void svg::radial_text_ccw (svg_element &obj, string text, const typography &typo, const point_2t origin, const double deg)
 Text with typography, arranged ccw around points (x,y) on a circle.
 
void svg::radial_text_ccw (svg_element &obj, string text, const typography &typo, const point_2t origin, const double deg, const point_2t rorigin)
 Text with typography, arranged ccw around points (x,y) on a circle.
 
void svg::radial_text_cw (svg_element &obj, string text, const typography &typo, const point_2t origin, const double deg)
 Text with typography, arranged cw around points (x,y) on a circle.
 
void svg::radial_text_cw (svg_element &obj, string text, const typography &typo, const point_2t origin, const double deg, const point_2t rorigin)
 Text with typography, arranged cw around points (x,y) on a circle.
 
void svg::radial_text_r (svg_element &obj, string text, const typography &typo, const int r, const point_2t origin, const double deg, const bool roriginp=false)
 
void svg::set_label_spaces (ssize_type spaces)
 Set the number of label spaces.
 
point_2t svg::set_radial_range (const space_type rmin, const space_type rmax)
 Convenience for setting radial range.
 
uint svg::significant_digits_in (ssize_type maxval)
 The number of significant digits in.
 
void svg::sort_strings_by_size (strings &ids)
 Sort vectors of strings to largest length string first. (Or use set<>).
 
void svg::splay_ids_after (svg_element &obj, const typography &typo, const strings &ids, const double angledo, const point_2t origin, double r, double rspace)
 Spread ids past the origin point, along circumference path.
 
void svg::splay_ids_around (svg_element &obj, const typography &typo, const strings &ids, const double angled, const point_2t origin, double r, double rspace, const bool satellitep=false)
 Spread ids on either side of an origin point, along circumference path.
 
void svg::splay_ids_stagger (svg_element &obj, const typography &typo, const strings &ids, const double angled, const point_2t origin, double r, double rspace)
 Spread ids after in stepping pattern outward.
 
void svg::stack_ids_at (svg_element &obj, const typography &typoo, const strings &ids, const double angled, const point_2t origin, double r, const double rdelta=10)
 Rotate and stack ids at origin point, extending radius for each from point of origin.