Class PLATEAUInstancedCityModel
GMLファイルからUnityにインポートした都市のルートGameObjectに付与されます。
Inheritance
System.Object
PLATEAUInstancedCityModel
Assembly: cs.temp.dll.dll
Syntax
public class PLATEAUInstancedCityModel : MonoBehaviour
Properties
GeoReference
Declaration
public GeoReference GeoReference { get; set; }
Property Value
Type |
Description |
GeoReference |
|
ゲームオブジェクトの階層のうち、GMLファイルに対応する Transform の一覧を返します。
Declaration
public Transform[] GmlTransforms { get; }
Property Value
Type |
Description |
Transform[] |
|
Latitude
Declaration
public double Latitude { get; }
Property Value
Type |
Description |
System.Double |
|
Longitude
Declaration
public double Longitude { get; }
Property Value
Type |
Description |
System.Double |
|
Methods
CopyFrom(PLATEAUInstancedCityModel)
Declaration
public void CopyFrom(PLATEAUInstancedCityModel src)
Parameters
引数として GMLに対応する Transform と LOD番号を受け取ります。
GMLのゲームオブジェクト階層を見て、そのLODで存在する CityObject に対応する Transform をリストで返します。
Declaration
public static List<Transform> GetCityObjects(Transform gmlTransform, int lod)
Parameters
Type |
Name |
Description |
Transform |
gmlTransform |
|
System.Int32 |
lod |
|
Returns
Type |
Description |
List<Transform> |
|
GMLに対応する Transform を受け取り、そのゲームオブジェクト階層の子を見て
利用可能なLODの番号をリストで返します。
Declaration
public static List<int> GetLods(Transform gmlTransform)
Parameters
Type |
Name |
Description |
Transform |
gmlTransform |
|
Returns
Type |
Description |
List<System.Int32> |
|
GMLに対応する Transform を受け取り、そのゲームオブジェクト階層の子を見て
利用可能なLODに対応する Transform のリストを返します。
Declaration
public static List<Transform> GetLodTransforms(Transform gmlTransform)
Parameters
Type |
Name |
Description |
Transform |
gmlTransform |
|
Returns
Type |
Description |
List<Transform> |
|
GetPackage(PLATEAUCityObjectGroup)
Declaration
public PredefinedCityModelPackage GetPackage(PLATEAUCityObjectGroup cog)
Parameters
Returns
Type |
Description |
PredefinedCityModelPackage |
|
GMLに対応する Transform からGMLを非同期ロードして を返します。
合致するGMLがなければ null を返します。
Declaration
public async Task<CityModel> LoadGmlAsync(Transform gmlTransform)
Parameters
Type |
Name |
Description |
Transform |
gmlTransform |
|
Returns
Type |
Description |
Task<CityModel> |
|
TryParseLodGameObjectName(String, out Int32)
Declaration
public static bool TryParseLodGameObjectName(string lodGameObjName, out int outLod)
Parameters
Type |
Name |
Description |
System.String |
lodGameObjName |
|
System.Int32 |
outLod |
|
Returns
Type |
Description |
System.Boolean |
|