30 template <
typename IntPo
int>
32 int height,
int margin);
34 template <>
SvgParams calculate_svg_params<Point<int, int>>(
35 const std::vector<RoutingNode<Point<int, int>>*>& nodes,
int width,
int height,
int margin);
37 template <>
SvgParams calculate_svg_params<Point<Point<int, int>,
int>>(
38 const std::vector<RoutingNode<Point<Point<int, int>,
int>>*>& nodes,
int width,
int height,
54 template <
typename IntPo
int>
void draw_node(std::ostringstream& svg,
58 template <>
void draw_node<Point<int, int>>(std::ostringstream& svg,
62 template <>
void draw_node<Point<Point<int, int>,
int>>(
68 template <
typename IntPo
int>
71 template <>
void draw_stats<Point<int, int>>(std::ostringstream& svg,
74 template <>
void draw_stats<Point<Point<int, int>,
int>>(
Represents the entire global routing tree.
Definition global_router.hpp:165
Represents a node in the global routing tree.
Definition global_router.hpp:52
Data structures and algorithms for global routing in physical design.
Definition svg_utils.hpp:12
std::pair< double, double > scale_coords(int x, int y, const SvgParams ¶ms)
Scale coordinates from data space to SVG canvas space.
Definition svg_utils.hpp:48
void draw_legend(std::ostringstream &svg)
SvgParams calculate_svg_params(const std::vector< RoutingNode< IntPoint > * > &nodes, int width, int height, int margin)
void draw_stats(std::ostringstream &svg, const GlobalRoutingTree< IntPoint > &tree)
void draw_node(std::ostringstream &svg, const RoutingNode< IntPoint > *node, const SvgParams ¶ms)
SVG rendering parameters.
Definition svg_utils.hpp:20
int margin
Margin around the drawing area.
Definition svg_utils.hpp:23
int min_y
Minimum y-coordinate in the data.
Definition svg_utils.hpp:26
double scale
Scaling factor for coordinates.
Definition svg_utils.hpp:24
int width
Width of the SVG canvas.
Definition svg_utils.hpp:21
int height
Height of the SVG canvas.
Definition svg_utils.hpp:22
int min_x
Minimum x-coordinate in the data.
Definition svg_utils.hpp:25