|
Recti 1.2.4
|
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 ¶ms) |
| Scale coordinates from data space to SVG canvas space. | |
| template<typename IntPoint > | |
| void | draw_node (std::ostringstream &svg, const RoutingNode< IntPoint > *node, const SvgParams ¶ms) |
| template<> | |
| void | draw_node< Point< int, int > > (std::ostringstream &svg, const RoutingNode< Point< int, int > > *node, const SvgParams ¶ms) |
| template<> | |
| void | draw_node< Point< Point< int, int >, int > > (std::ostringstream &svg, const RoutingNode< Point< Point< int, int >, int > > *node, const SvgParams ¶ms) |
| 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) |
| SvgParams recti::detail::calculate_svg_params | ( | const std::vector< RoutingNode< IntPoint > * > & | nodes, |
| int | width, | ||
| int | height, | ||
| int | margin | ||
| ) |
| SvgParams recti::detail::calculate_svg_params< Point< int, int > > | ( | const std::vector< RoutingNode< Point< int, int > > * > & | nodes, |
| int | width, | ||
| int | height, | ||
| int | margin | ||
| ) |
| 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 | ||
| ) |
| void recti::detail::draw_legend | ( | std::ostringstream & | svg | ) |
| void recti::detail::draw_node | ( | std::ostringstream & | svg, |
| const RoutingNode< IntPoint > * | node, | ||
| const SvgParams & | params | ||
| ) |
| void recti::detail::draw_node< Point< int, int > > | ( | std::ostringstream & | svg, |
| const RoutingNode< Point< int, int > > * | node, | ||
| const SvgParams & | params | ||
| ) |
| 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_stats | ( | std::ostringstream & | svg, |
| const GlobalRoutingTree< IntPoint > & | tree | ||
| ) |
| void recti::detail::draw_stats< Point< int, int > > | ( | std::ostringstream & | svg, |
| const GlobalRoutingTree< Point< int, int > > & | tree | ||
| ) |
| void recti::detail::draw_stats< Point< Point< int, int >, int > > | ( | std::ostringstream & | svg, |
| const GlobalRoutingTree< Point< Point< int, int >, int > > & | tree | ||
| ) |
|
inline |
Scale coordinates from data space to SVG canvas space.
| [in] | x | The x-coordinate in data space |
| [in] | y | The y-coordinate in data space |
| [in] | params | The SVG rendering parameters |