TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
tmk::route::BundleHooks Struct Reference

#include <route/bundle.hpp>

Public Attributes

std::function< bool(geom::Point, geom::Point, int layer, Coord width, model::NetId)> free
 May a track of net and width run a-b on layer? The router's exact check against everything placed (fixed copper, routed copper, rules).
std::function< Coord(model::NetId)> width
 track width of a net
std::function< Coord(model::NetId)> clearance
 clearance of a net
std::function< bool(int layer, model::NetId)> layer_ok
std::function< bool(geom::Point, model::NetId)> via_ok
 A via of net at p (the class via, not necked): may it go there? (exact check, strict).
std::function< Coord(model::NetId)> via_diameter
std::function< bool(const BundleConn &, const std::vector< std::pair< int, std::vector< geom::Point > > > &, const std::vector< geom::Point > &)> place_tunnel
 Places the tunnel of a connection: tracks (layer, polyline) and the vias that join them. False: refused (nothing placed).
std::function< bool(const BundleConn &, int layer, const std::vector< geom::Point > &)> place
 Places the lane of a connection: the polyline from the centre of one pad to the centre of the other, on layer. False: refused (not placed).

Detailed Description

Definition at line 25 of file bundle.hpp.

Member Data Documentation

◆ clearance

std::function<Coord(model::NetId)> tmk::route::BundleHooks::clearance

clearance of a net

Definition at line 29 of file bundle.hpp.

◆ free

std::function<bool(geom::Point, geom::Point, int layer, Coord width, model::NetId)> tmk::route::BundleHooks::free

May a track of net and width run a-b on layer? The router's exact check against everything placed (fixed copper, routed copper, rules).

Definition at line 27 of file bundle.hpp.

◆ layer_ok

std::function<bool(int layer, model::NetId)> tmk::route::BundleHooks::layer_ok

Definition at line 30 of file bundle.hpp.

◆ place

std::function<bool(const BundleConn&, int layer, const std::vector<geom::Point>&)> tmk::route::BundleHooks::place

Places the lane of a connection: the polyline from the centre of one pad to the centre of the other, on layer. False: refused (not placed).

Definition at line 37 of file bundle.hpp.

◆ place_tunnel

std::function<bool(const BundleConn&, const std::vector<std::pair<int, std::vector<geom::Point>>>&, const std::vector<geom::Point>&)> tmk::route::BundleHooks::place_tunnel

Places the tunnel of a connection: tracks (layer, polyline) and the vias that join them. False: refused (nothing placed).

Definition at line 35 of file bundle.hpp.

◆ via_diameter

std::function<Coord(model::NetId)> tmk::route::BundleHooks::via_diameter

Definition at line 33 of file bundle.hpp.

◆ via_ok

std::function<bool(geom::Point, model::NetId)> tmk::route::BundleHooks::via_ok

A via of net at p (the class via, not necked): may it go there? (exact check, strict).

Definition at line 32 of file bundle.hpp.

◆ width

std::function<Coord(model::NetId)> tmk::route::BundleHooks::width

track width of a net

Definition at line 28 of file bundle.hpp.


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