Recti 1.2.4
Loading...
Searching...
No Matches
Classes | Functions
recti::detail Namespace Reference

Classes

struct  SvgParams
 SVG rendering parameters. More...
 

Functions

template<typename IntPoint >
SvgParams calculate_svg_params (const std::vector< RoutingNode< IntPoint > * > &nodes, int width, int height, int margin)
 
template<>
SvgParams calculate_svg_params< Point< int, int > > (const std::vector< RoutingNode< Point< int, int > > * > &nodes, int width, int height, int margin)
 
template<>
SvgParams calculate_svg_params< Point< Point< int, int >, int > > (const std::vector< RoutingNode< Point< Point< int, int >, int > > * > &nodes, int width, int height, int margin)
 
std::pair< double, double > scale_coords (int x, int y, const SvgParams &params)
 Scale coordinates from data space to SVG canvas space.
 
template<typename IntPoint >
void draw_node (std::ostringstream &svg, const RoutingNode< IntPoint > *node, const SvgParams &params)
 
template<>
void draw_node< Point< int, int > > (std::ostringstream &svg, const RoutingNode< Point< int, int > > *node, const SvgParams &params)
 
template<>
void draw_node< Point< Point< int, int >, int > > (std::ostringstream &svg, const RoutingNode< Point< Point< int, int >, int > > *node, const SvgParams &params)
 
void draw_legend (std::ostringstream &svg)
 
template<typename IntPoint >
void draw_stats (std::ostringstream &svg, const GlobalRoutingTree< IntPoint > &tree)
 
template<>
void draw_stats< Point< int, int > > (std::ostringstream &svg, const GlobalRoutingTree< Point< int, int > > &tree)
 
template<>
void draw_stats< Point< Point< int, int >, int > > (std::ostringstream &svg, const GlobalRoutingTree< Point< Point< int, int >, int > > &tree)
 

Function Documentation

◆ calculate_svg_params()

template<typename IntPoint >
SvgParams recti::detail::calculate_svg_params ( const std::vector< RoutingNode< IntPoint > * > &  nodes,
int  width,
int  height,
int  margin 
)

◆ calculate_svg_params< Point< int, int > >()

template<>
SvgParams recti::detail::calculate_svg_params< Point< int, int > > ( const std::vector< RoutingNode< Point< int, int > > * > &  nodes,
int  width,
int  height,
int  margin 
)

◆ calculate_svg_params< Point< Point< int, int >, int > >()

template<>
SvgParams recti::detail::calculate_svg_params< Point< Point< int, int >, int > > ( const std::vector< RoutingNode< Point< Point< int, int >, int > > * > &  nodes,
int  width,
int  height,
int  margin 
)

◆ draw_legend()

void recti::detail::draw_legend ( std::ostringstream &  svg)

◆ draw_node()

template<typename IntPoint >
void recti::detail::draw_node ( std::ostringstream &  svg,
const RoutingNode< IntPoint > *  node,
const SvgParams params 
)

◆ draw_node< Point< int, int > >()

template<>
void recti::detail::draw_node< Point< int, int > > ( std::ostringstream &  svg,
const RoutingNode< Point< int, int > > *  node,
const SvgParams params 
)

◆ draw_node< Point< Point< int, int >, int > >()

template<>
void recti::detail::draw_node< Point< Point< int, int >, int > > ( std::ostringstream &  svg,
const RoutingNode< Point< Point< int, int >, int > > *  node,
const SvgParams params 
)

◆ draw_stats()

template<typename IntPoint >
void recti::detail::draw_stats ( std::ostringstream &  svg,
const GlobalRoutingTree< IntPoint > &  tree 
)

◆ draw_stats< Point< int, int > >()

template<>
void recti::detail::draw_stats< Point< int, int > > ( std::ostringstream &  svg,
const GlobalRoutingTree< Point< int, int > > &  tree 
)

◆ draw_stats< Point< Point< int, int >, int > >()

template<>
void recti::detail::draw_stats< Point< Point< int, int >, int > > ( std::ostringstream &  svg,
const GlobalRoutingTree< Point< Point< int, int >, int > > &  tree 
)

◆ scale_coords()

std::pair< double, double > recti::detail::scale_coords ( int  x,
int  y,
const SvgParams params 
)
inline

Scale coordinates from data space to SVG canvas space.

Parameters
[in]xThe x-coordinate in data space
[in]yThe y-coordinate in data space
[in]paramsThe SVG rendering parameters
Returns
A pair of scaled coordinates (x, y) in SVG canvas space