Search Results for

    Show / Hide Table of Contents

    Class PLATEAUInstancedCityModel

    GMLファイルからUnityにインポートした都市のルートGameObjectに付与されます。

    Inheritance
    System.Object
    PLATEAUInstancedCityModel
    Namespace: PLATEAU.CityInfo
    Assembly: cs.temp.dll.dll
    Syntax
    public class PLATEAUInstancedCityModel : MonoBehaviour

    Properties

    GeoReference

    極座標と平面直角座標を変換するインスタンスです。

    Declaration
    public GeoReference GeoReference { get; set; }
    Property Value
    Type Description
    GeoReference

    GmlTransforms

    ゲームオブジェクトの階層のうち、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
    Type Name Description
    PLATEAUInstancedCityModel src

    GetCityObjects(Transform, Int32)

    引数として 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>

    GetLods(Transform)

    GMLに対応する Transform を受け取り、そのゲームオブジェクト階層の子を見て 利用可能なLODの番号をリストで返します。

    Declaration
    public static List<int> GetLods(Transform gmlTransform)
    Parameters
    Type Name Description
    Transform gmlTransform
    Returns
    Type Description
    List<System.Int32>

    GetLodTransforms(Transform)

    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
    Type Name Description
    PLATEAUCityObjectGroup cog
    Returns
    Type Description
    PredefinedCityModelPackage

    LoadGmlAsync(Transform)

    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
    In This Article
    Back to top PLATEAU SDK for Unity