C# Класс Transit.Addon.RoadExtensions.Roads.Common.RoadHelper

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddLeftWallLights ( this props, float pavementWidth ) : void
AddProps ( this props, ICollection propsToAdd ) : void
AddRightWallLights ( this props, float pavementWidth ) : void
GetLeftRoadShoulder ( this info ) : NetInfo.Lane
GetMedianLane ( this info ) : NetInfo.Lane
GetRightRoadShoulder ( this info ) : NetInfo.Lane
HandleAsymComplementarySegmentsFlags ( NetInfo fSegment, NetInfo bSegment, LanesLayoutStyle lanesLayoutStyle ) : void
HandleAsymSegmentFlags ( this segment, LanesLayoutStyle asymLaneType ) : void
RemoveProps ( this props ) : void
ReplacePropInfo ( this props, PropInfo>.KeyValuePair replacementPair ) : void

Replaces a prop whose name is contained in the key with the propinfo in the value.

ReplaceProps ( this info, PropInfo newPropInfo, PropInfo oldPropInfo ) : void
SetRoadLanes ( this rdInfo, NetInfoVersion version, LanesConfiguration config ) : NetInfo
SetupNewSpeedLimitProps ( this info, int newSpeedLimit, int oldSpeedLimit ) : void
SetupPedestrianLanes ( this rdInfo, NetInfoVersion version, LanesConfiguration config ) : IEnumerable
TrimAboveGroundProps ( this info, NetInfoVersion version, bool removeRightStreetLights = false, bool removeLeftStreetLights = false ) : void
TrimArrowsProps ( this info ) : void

Приватные методы

Метод Описание
SetupMedianLane ( this lane, LanesConfiguration config, NetInfoVersion version ) : NetInfo.Lane
SetupParkingLanes ( this rdInfo ) : IEnumerable
SetupTurningLaneProps ( NetInfo lane ) : void
SetupVehicleLanes ( this rdInfo, NetInfoVersion version, LanesConfiguration config ) : IEnumerable

Описание методов

AddLeftWallLights() публичный статический Метод

public static AddLeftWallLights ( this props, float pavementWidth ) : void
props this
pavementWidth float
Результат void

AddProps() публичный статический Метод

public static AddProps ( this props, ICollection propsToAdd ) : void
props this
propsToAdd ICollection
Результат void

AddRightWallLights() публичный статический Метод

public static AddRightWallLights ( this props, float pavementWidth ) : void
props this
pavementWidth float
Результат void

GetLeftRoadShoulder() публичный статический Метод

public static GetLeftRoadShoulder ( this info ) : NetInfo.Lane
info this
Результат NetInfo.Lane

GetMedianLane() публичный статический Метод

public static GetMedianLane ( this info ) : NetInfo.Lane
info this
Результат NetInfo.Lane

GetRightRoadShoulder() публичный статический Метод

public static GetRightRoadShoulder ( this info ) : NetInfo.Lane
info this
Результат NetInfo.Lane

HandleAsymComplementarySegmentsFlags() публичный статический Метод

public static HandleAsymComplementarySegmentsFlags ( NetInfo fSegment, NetInfo bSegment, LanesLayoutStyle lanesLayoutStyle ) : void
fSegment NetInfo
bSegment NetInfo
lanesLayoutStyle LanesLayoutStyle
Результат void

HandleAsymSegmentFlags() публичный статический Метод

public static HandleAsymSegmentFlags ( this segment, LanesLayoutStyle asymLaneType ) : void
segment this
asymLaneType LanesLayoutStyle
Результат void

RemoveProps() публичный статический Метод

public static RemoveProps ( this props ) : void
props this
Результат void

ReplacePropInfo() публичный статический Метод

Replaces a prop whose name is contained in the key with the propinfo in the value.
public static ReplacePropInfo ( this props, PropInfo>.KeyValuePair replacementPair ) : void
props this
replacementPair PropInfo>.KeyValuePair
Результат void

ReplaceProps() публичный статический Метод

public static ReplaceProps ( this info, PropInfo newPropInfo, PropInfo oldPropInfo ) : void
info this
newPropInfo PropInfo
oldPropInfo PropInfo
Результат void

SetRoadLanes() публичный статический Метод

public static SetRoadLanes ( this rdInfo, NetInfoVersion version, LanesConfiguration config ) : NetInfo
rdInfo this
version NetInfoVersion
config LanesConfiguration
Результат NetInfo

SetupNewSpeedLimitProps() публичный статический Метод

public static SetupNewSpeedLimitProps ( this info, int newSpeedLimit, int oldSpeedLimit ) : void
info this
newSpeedLimit int
oldSpeedLimit int
Результат void

SetupPedestrianLanes() публичный статический Метод

public static SetupPedestrianLanes ( this rdInfo, NetInfoVersion version, LanesConfiguration config ) : IEnumerable
rdInfo this
version NetInfoVersion
config LanesConfiguration
Результат IEnumerable

TrimAboveGroundProps() публичный статический Метод

public static TrimAboveGroundProps ( this info, NetInfoVersion version, bool removeRightStreetLights = false, bool removeLeftStreetLights = false ) : void
info this
version NetInfoVersion
removeRightStreetLights bool
removeLeftStreetLights bool
Результат void

TrimArrowsProps() публичный статический Метод

public static TrimArrowsProps ( this info ) : void
info this
Результат void