Open Rails

SpeedPostItem Properties

The properties of the SpeedPostItem class are listed below. For a complete list of SpeedPostItem class members, see the SpeedPostItem Members topic.

Public Instance Properties

Anglespeedpost (normalized) angle
Directionderived direction relative to track
DisplayNumbernumber to be displayed if ShowNumber is true
IsFreightis freight speed limit
IsLimitspeed limit
IsMilePosttrue to be milepost
IsMPHis the digit in MPH or KPH
IsPassengeris passenger speed limit
IsResumespeed resume sign (has no speed defined!)
IsWarningspeed warning
ItemName (inherited from TrItem) The name of the item (used for the label shown by F6)
ItemType (inherited from TrItem)Type of track item
PX (inherited from TrItem)Appears to be a copy of X in Sdata, but only for X and Z
PZ (inherited from TrItem)Appears to be a copy of X in Sdata, but only for X and Z
ReverseDirectionGet the direction the signal is NOT facing
SData1 (inherited from TrItem)Extra data 1, related to location along section
SData2 (inherited from TrItem)Extra data 2
ShowDotif ShowNumber is true and this is set, will show 1.5 as for 15KMH
ShowNumbershow numbers instead of KPH, like 5 means 50KMH
SigObjindex to Signal Object Table
SpeedIndOr distance if mile post.
TilePX (inherited from TrItem)Appears to be a copy of tileX in Sdata, but only for X and Z
TilePZ (inherited from TrItem)Appears to be a copy of tileZ in Sdata, but only for X and Z
TileX (inherited from TrItem)X-value of world tile
TileZ (inherited from TrItem)Z-value of world tile
TrItemId (inherited from TrItem)Id if track item
X (inherited from TrItem)X-location within world tile (tracknode, not shape)
Y (inherited from TrItem)X-location within world tile (tracknode, not shape)
Z (inherited from TrItem)X-location within world tile (tracknode, not shape)

See Also

SpeedPostItem Class | Orts.Formats.Msts Namespace