Class RnModel
Inheritance
System.Object
RnModel
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: PLATEAU.RoadNetwork.Structure
Assembly: cs.temp.dll.dll
Syntax
public class RnModel
Fields
Epsilon
Declaration
public const float Epsilon = 1.401298E-45F
Field Value
| Type | Description |
|---|---|
| System.Single |
Properties
FactoryVersion
自動生成で作成されたときのバージョン. これが現在のバージョンよりも古い場合はデータが古い可能性がある. RoadNetworkFactory.FactoryVersion参照
Declaration
public string FactoryVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Intersections
Declaration
public IReadOnlyList<RnIntersection> Intersections { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<RnIntersection> |
Roads
Declaration
public IReadOnlyList<RnRoad> Roads { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<RnRoad> |
SideWalks
Declaration
public IReadOnlyList<RnSideWalk> SideWalks { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<RnSideWalk> |
Methods
AddDefaultTrafficSignalLights()
Declaration
public void AddDefaultTrafficSignalLights()
AddIntersection(RnIntersection)
Declaration
public void AddIntersection(RnIntersection intersection)
Parameters
| Type | Name | Description |
|---|---|---|
| RnIntersection | intersection |
AddRoad(RnRoad)
Declaration
public void AddRoad(RnRoad link)
Parameters
| Type | Name | Description |
|---|---|---|
| RnRoad | link |
AddRoadBase(RnRoadBase)
Declaration
public void AddRoadBase(RnRoadBase roadBase)
Parameters
| Type | Name | Description |
|---|---|---|
| RnRoadBase | roadBase |
AddSideWalk(RnSideWalk)
歩道情報追加
Declaration
public void AddSideWalk(RnSideWalk sideWalk)
Parameters
| Type | Name | Description |
|---|---|---|
| RnSideWalk | sideWalk |
AdjustRoadGroupBorder()
道路グループの交差点との境界線の角度を調整する(垂直になるようにする)
Declaration
public void AdjustRoadGroupBorder()
Check()
Declaration
public void Check()
Clear()
Declaration
public void Clear()
CollectAllEdges()
Declaration
public IEnumerable<RnIntersectionEdge> CollectAllEdges()
Returns
| Type | Description |
|---|---|
| IEnumerable<RnIntersectionEdge> |
CollectAllLanes()
Roadのレーンを全て取得
Declaration
public IEnumerable<RnLane> CollectAllLanes()
Returns
| Type | Description |
|---|---|
| IEnumerable<RnLane> |
CollectAllLineStrings()
Modelが所持する全てのLineStringを取得
Declaration
public IEnumerable<RnLineString> CollectAllLineStrings()
Returns
| Type | Description |
|---|---|
| IEnumerable<RnLineString> |
CollectAllWays()
Intersection/RoadのWayを全て取得
Declaration
public IEnumerable<RnWay> CollectAllWays()
Returns
| Type | Description |
|---|---|
| IEnumerable<RnWay> |
Convert2Intersection(RnRoad, Boolean)
roadをIntersectionに変換
Declaration
public void Convert2Intersection(RnRoad road, bool buildTracks = true)
Parameters
| Type | Name | Description |
|---|---|---|
| RnRoad | road | |
| System.Boolean | buildTracks | 変換後にTrackの生成を行う |
Convert2Road(RnIntersection, RnRoadBase, RnRoadBase)
Declaration
public void Convert2Road(RnIntersection intersection, RnRoadBase prev, RnRoadBase next)
Parameters
| Type | Name | Description |
|---|---|---|
| RnIntersection | intersection | |
| RnRoadBase | prev | |
| RnRoadBase | next |
CopyFrom(RnModel)
modelからコピーしてくる
Declaration
public void CopyFrom(RnModel model)
Parameters
| Type | Name | Description |
|---|---|---|
| RnModel | model |
CreateEmptyIntersectionBetweenRoad()
道路同士が直接つながっている状況において、空の交差点を作成する
Declaration
public void CreateEmptyIntersectionBetweenRoad()
CreateEmptyRoadBetweenInteraction()
交差点同士が直接つながっている状況において、交差点間のリンクを作成する
Declaration
public void CreateEmptyRoadBetweenInteraction()
CreateRoadBetweenIntersection(RnIntersection, RnIntersection, RnLane)
prev/next間に道路を作成
Declaration
public void CreateRoadBetweenIntersection(RnIntersection prev, RnIntersection next, RnLane lane)
Parameters
| Type | Name | Description |
|---|---|---|
| RnIntersection | prev | |
| RnIntersection | next | |
| RnLane | lane |
Deserialize(RoadNetworkStorage, Boolean)
Declaration
public void Deserialize(RoadNetworkStorage storage, bool removeEmptyCheck = true)
Parameters
| Type | Name | Description |
|---|---|---|
| RoadNetworkStorage | storage | |
| System.Boolean | removeEmptyCheck |
MergeRoadGroup()
連続した道路を一つのRoadにまとめる
Declaration
public void MergeRoadGroup()
ReBuildIntersectionTracks()
Declaration
public void ReBuildIntersectionTracks()
RemoveEmptyIntersectionBetweenRoad()
Declaration
public void RemoveEmptyIntersectionBetweenRoad()
RemoveEmptyRoadBetweenIntersection()
直接つながった交差点間に挿入された空リンクを削除する
Declaration
public void RemoveEmptyRoadBetweenIntersection()
RemoveIntersection(RnIntersection)
Declaration
public void RemoveIntersection(RnIntersection intersection)
Parameters
| Type | Name | Description |
|---|---|---|
| RnIntersection | intersection |
RemoveRoad(RnRoad)
Declaration
public void RemoveRoad(RnRoad link)
Parameters
| Type | Name | Description |
|---|---|---|
| RnRoad | link |
RemoveSideWalk(RnSideWalk)
Declaration
public void RemoveSideWalk(RnSideWalk sideWalk)
Parameters
| Type | Name | Description |
|---|---|---|
| RnSideWalk | sideWalk |
ReplaceLane(RnLane, RnLane)
レーンの入れ替え
Declaration
public void ReplaceLane(RnLane before, RnLane after)
Parameters
| Type | Name | Description |
|---|---|---|
| RnLane | before | |
| RnLane | after |
SeparateContinuousBorder()
交差点の形状調整
Declaration
public void SeparateContinuousBorder()
Serialize(Boolean)
Declaration
public RoadNetworkStorage Serialize(bool createEmptyCheck = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | createEmptyCheck |
Returns
| Type | Description |
|---|---|
| RoadNetworkStorage |
SplitLaneByWidth(Single, Boolean, out List<UInt64>, Func<RnRoadGroup, Boolean>)
roadWidthの道路幅を基準にレーンを分割する
Declaration
public void SplitLaneByWidth(float roadWidth, bool rebuildTrack, out List<ulong> failedRoads, Func<RnRoadGroup, bool> isTargetLaneSplit)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | roadWidth | |
| System.Boolean | rebuildTrack | レーン分割後に関連する交差点のトラックを再生成する |
| List<System.UInt64> | failedRoads | |
| Func<RnRoadGroup, System.Boolean> | isTargetLaneSplit |