izzi
SVG SUBSET C++ API
Loading...
Searching...
No Matches
a60::metadata Namespace Reference

Functions

void analyze_metadata_aggregate_chord (const area<> a, const string field="", const string match="", const string wfield="", const string wvalue="")
 Analyze metadata directory or subset of it, and generate summary output for all in directory. Iff field is non zero, then subset it to data files with field and match.
 
void analyze_metadata_aggregate_chord (const area<> a, const strings &namedkeys, const string aggname, const string wfield="", const string wvalue="")
 Analyze metadata directory or subset of it, and generate summary output for all in directory.
 
uint get_xoffset (const string &id, const uint xstart, const double hspace)
 Compute xoffset.
 
svg_element h_chord_graph (const vumids &cumulative, const string aggname, const area<> a=svg::k::v1080p_h, const double yscale=0.7, const uint rwidth=10)
 
svg_element h_chord_graph_labels (const string aggname, const area<> a=svg::k::v1080p_h)
 Grid, titles, labels for h_chord_graph.
 
const double hdenom (k::age_values.size()+1+1+1)
 
void render_metadata_aggregate_chord (const area<> a, const vumids &cumulative, const strings &namedkeyso, const string aggname)
 Analyze metadata directory or subset of it and generate summary output for all in directory.
 
const double vlspace (10)
 Distance between label and top/bottom of line or text.
 
const double vspace (60)
 

Variables

const auto asz = 12
 
const auto lsz = 16
 
const auto ssz = 10
 

Function Documentation

◆ analyze_metadata_aggregate_chord() [1/2]

void a60::metadata::analyze_metadata_aggregate_chord ( const area<> a,
const string field = "",
const string match = "",
const string wfield = "",
const string wvalue = "" )

Analyze metadata directory or subset of it, and generate summary output for all in directory. Iff field is non zero, then subset it to data files with field and match.

Definition at line 441 of file a60-svg-graphs-chord.h.

+ Here is the call graph for this function:

◆ analyze_metadata_aggregate_chord() [2/2]

void a60::metadata::analyze_metadata_aggregate_chord ( const area<> a,
const strings & namedkeys,
const string aggname,
const string wfield = "",
const string wvalue = "" )

Analyze metadata directory or subset of it, and generate summary output for all in directory.

Definition at line 470 of file a60-svg-graphs-chord.h.

+ Here is the call graph for this function:

◆ get_xoffset()

uint a60::metadata::get_xoffset ( const string & id,
const uint xstart,
const double hspace )

Compute xoffset.

Definition at line 40 of file a60-svg-graphs-chord.h.

◆ h_chord_graph()

svg_element a60::metadata::h_chord_graph ( const vumids & cumulative,
const string aggname,
const area<> a = svg::k::v1080p_h,
const double yscale = 0.7,
const uint rwidth = 10 )

A chord diagram, flattened into a linear horizontal form.

Rendering set/subset of metadata with "playing" compound grammars.

The Vertical (roughly, in thirds): top is actual age graph middle is ages plotted on horizontal axes bottom is playing age graph, inverted.

And then a connecting line will be drawn from the actual age to the playing age.

The Horizontal: Use linear scaling for age values, instead of bell shaped scaling for glyph. have 10 values (00-09, ..., 90-99) + 100+ + unknown +ambiguous -> 13.

Process cumulative age values 1-3.

  1. ages vo map
  2. ages playing map
  3. largest count value over all of the age values

Process cumulative age values 4.

  1. coalesce/flatten multi-playing values "50-59 playing 50-59, 60-69" "50-59 playing 10-19, 60-69 to "50-59 playing 50-59" x 1 "50-59 playing 10-19" x 1 "50-59 playing 60-69" x 2

Definition at line 117 of file a60-svg-graphs-chord.h.

+ Here is the call graph for this function:

◆ h_chord_graph_labels()

svg_element a60::metadata::h_chord_graph_labels ( const string aggname,
const area<> a = svg::k::v1080p_h )

Grid, titles, labels for h_chord_graph.

Parameters
yscale== how much to vertically scale the bar graph from center.

Definition at line 47 of file a60-svg-graphs-chord.h.

+ Here is the call graph for this function:

◆ hdenom()

const double a60::metadata::hdenom ( k::age_values.size()+1+1+ 1)

◆ render_metadata_aggregate_chord()

void a60::metadata::render_metadata_aggregate_chord ( const area<> a,
const vumids & cumulative,
const strings & namedkeyso,
const string aggname )

Analyze metadata directory or subset of it and generate summary output for all in directory.

Definition at line 395 of file a60-svg-graphs-chord.h.

+ Here is the call graph for this function:

◆ vlspace()

const double a60::metadata::vlspace ( 10 )

Distance between label and top/bottom of line or text.

◆ vspace()

const double a60::metadata::vspace ( 60 )

Variable Documentation

◆ asz

const auto a60::metadata::asz = 12

Definition at line 35 of file a60-svg-graphs-chord.h.

◆ lsz

const auto a60::metadata::lsz = 16

Definition at line 34 of file a60-svg-graphs-chord.h.

◆ ssz

const auto a60::metadata::ssz = 10

Definition at line 36 of file a60-svg-graphs-chord.h.