Recti 1.2.4
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
svg_utils.hpp File Reference

SVG rendering parameters and utilities for routing tree visualization. More...

#include <iosfwd>
#include <recti/global_router.hpp>
#include <vector>
Include dependency graph for svg_utils.hpp:

Go to the source code of this file.

Classes

struct  recti::detail::SvgParams
 SVG rendering parameters. More...
 

Namespaces

namespace  recti
 
namespace  recti::detail
 

Functions

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

Detailed Description

SVG rendering parameters and utilities for routing tree visualization.