LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::io::TikzEdgeRouter Class Reference

#include <line/io/tikz/tikz_edge_router.h>

Public Member Functions

 TikzEdgeRouter (const std::vector< double > &x, const std::vector< double > &y, const std::vector< std::size_t > &visible)
std::vector< TikzPoint > compute_waypoints (std::size_t from, std::size_t to)
 computeWaypoints: empty when the straight segment is clear, and for a self-loop.

Static Public Attributes

static constexpr double NODE_HALF_WIDTH = 1.2
 cm
static constexpr double NODE_HALF_HEIGHT = 0.9
 cm
static constexpr double MARGIN = 0.25
static constexpr double ROUTE_SPACING = 0.5
static constexpr double ENTRY_OFFSET = 0.2

Detailed Description

Definition at line 44 of file tikz_edge_router.h.

Constructor & Destructor Documentation

◆ TikzEdgeRouter()

line::io::TikzEdgeRouter::TikzEdgeRouter ( const std::vector< double > & x,
const std::vector< double > & y,
const std::vector< std::size_t > & visible )
inline
Parameters
x,ypositions of every node of the graph, indexed by node
visiblethe nodes that are drawn; only they bound the drawing and count as obstacles

Definition at line 56 of file tikz_edge_router.h.

References NODE_HALF_HEIGHT, and NODE_HALF_WIDTH.

Member Function Documentation

◆ compute_waypoints()

std::vector< TikzPoint > line::io::TikzEdgeRouter::compute_waypoints ( std::size_t from,
std::size_t to )
inline

computeWaypoints: empty when the straight segment is clear, and for a self-loop.

Definition at line 72 of file tikz_edge_router.h.

References MARGIN, NODE_HALF_WIDTH, line::io::TikzPoint::x, and line::io::TikzPoint::y.

Referenced by line::io::to_tikz().

Member Data Documentation

◆ ENTRY_OFFSET

double line::io::TikzEdgeRouter::ENTRY_OFFSET = 0.2
staticconstexpr

Definition at line 50 of file tikz_edge_router.h.

◆ MARGIN

double line::io::TikzEdgeRouter::MARGIN = 0.25
staticconstexpr

Definition at line 48 of file tikz_edge_router.h.

Referenced by compute_waypoints().

◆ NODE_HALF_HEIGHT

double line::io::TikzEdgeRouter::NODE_HALF_HEIGHT = 0.9
staticconstexpr

cm

Definition at line 47 of file tikz_edge_router.h.

Referenced by TikzEdgeRouter().

◆ NODE_HALF_WIDTH

double line::io::TikzEdgeRouter::NODE_HALF_WIDTH = 1.2
staticconstexpr

cm

Definition at line 46 of file tikz_edge_router.h.

Referenced by compute_waypoints(), and TikzEdgeRouter().

◆ ROUTE_SPACING

double line::io::TikzEdgeRouter::ROUTE_SPACING = 0.5
staticconstexpr

Definition at line 49 of file tikz_edge_router.h.


The documentation for this class was generated from the following file: