Switch (turnout) object type.
These are on the schematic and represent a switch on the Schematic.
- Parameters
-
_ctcpanel | The CTCPanel megawidget. |
_canvas | The schematic canvas to draw the switch on. |
... | Options:
- -x The x coordinate of the object (readonly, default 0).
- -y The y coordinate of the object (readonly, default 0).
- -controlpoint The name of the control point this label is part of (readonly, default CP1).
- -label The label of the switch (default "1").
- -orientation The orientation (8-way) of the switch (readonly, default 0).
- -flipped Whether or not the switch is flipped (readonly, default no).
- -statecommand A command to run to get the switch's state (default {}).
- -occupiedcommand A command to run to find out if the switch is occupied (default {}).
|
- Defined coords terminals:
- Common Common terminal (point end of switch).
- Main Mainline terminal.
- Divergence Branchline terminal.
Defined values (states):
- Normal Points are aligned for the mainline.
- Reverse Points are aligned for the branchline.
- Unknown Point are not aligned for any route (eg points are in motion).
Defined indicators: none.
- Author
- Robert Heller <heller@deepsoft.com>