Routing shapes
Routing allows you to create a path between two points. IPKISS implements a few routing algorithms. They’re mainly used to create connections/links between two components. Routes in IPKISS are regular shapes, this means that they can be easily used to create waveguides or other traces.
Different routing shapes
The main types of routing shapes are
Routes an start_port to a line. |
|
Routes the start_port to a parallel line through a given point This will be done through an S-bend. |
|
A Route that directs the start_port towards a given angle |
|
Routes the start_port to the end_port using a manhattan pattern (straight sections along EAST, WEST, NORTH, SOUTH directions). |
|
Routes the start_port to the end_port using a manhattan pattern (straight sections along EAST, WEST, NORTH, SOUTH directions). |
|
Routes the input_port to the output_port using an s-bend. |
|
Routes the input_port to the output_port using a single arc bend. |
|
Routes the input_port to the output_port using a u-bend. |
RouteToLine
Routes the start_port to a line pointing North at a given X coordinate |
|
Routes the start_port to a line pointing South at a given X coordinate |
|
Routes the start_port to a line pointing North or South (whichever is closest) at a given X coordinate |
|
Routes the start_port to a line pointing East or West (whichever is closest) at a given Y coordinate |
|
Routes the start_port to a line pointing West at a given Y coordinate |
|
Routes the start_port to a line pointing East at a given Y coordinate |
RouteToAngle
A Route that directs the start_port towards a horizontal direction (East or West, whichever is closer) |
|
A Route that directs the start_port towards a vertical direction (North or South, whichever is closer) |
|
A Route that directs the start_port towards the North |
|
A Route that directs the start_port towards the South |
|
A Route that directs the start_port towards the East |
|
A Route that directs the start_port towards the West |
|
A Route that directs the start_port towards the nearest manhattan direction (East or West, North or South) |
Helper Functions
In addition to the classes described above, IPKISS provides a range of helper functions that combine a few of the classes above to implement more specific behavior. All these functions will return a Route object (shape) but the type of the Route will depend on the arguments you provided.
Routes the start_port to a line pointing East at a Y coordinate which is larger or equal to the y_position specified. |
|
Routes the start_port to a line pointing East at a Y coordinate which is larger or equal to the y_position specified. |
|
Routes the start_port to a line pointing North at an X coordinate which is smaller or equal to the x_position specified. |
|
Routes the start_port to a line pointing North at an X coordinate which is larger or equal to the x_position specified. |
|
Routes the start_port to a line pointing South at an X coordinate which is smaller or equal to the x_position specified. |
|
Routes the start_port to a line pointing South at an X coordinate which is larger or equal to the x_position specified. |
|
Routes the start_port to a line pointing West at a Y coordinate which is smaller or equal to the y_position specified. |
|
Routes the start_port to a line pointing West at a Y coordinate which is larger or equal to the y_position specified. |
|
Route a port to a manhattan direction at a coordinate value relative to the given position (coordinate is x for EAST/WEST direction, and y for NORTH/SOUTH) relation is either '>' or '<' |
|
Calculate a route that ends on a given line. |
|
Calculate a route to a line that is parallel with input angle. |