Search Results for

    Show / Hide Table of Contents

    Class NativeAttributeValue

    Plateau のオブジェクトが持つ属性 (key と value のペア) のうち、 value の部分です。 value は、内部的には string または 子の属性セットへの参照 のどちらかのデータを保持します。

    value の値がどのような形式であるかを AttributeType 形式で保持し、Type で取得できます。

    Type が String, Double, Integer, Data, Uri, Measure の場合、内部的にはデータは単に string であり、 AsString で取得できます。 AsDouble, AsInt プロパティもありますが、それは単に AsString を数値にパースするものです。

    Type が AttributeSet である場合、 この属性の子に属性セットがあることを意味します。 この場合は AsString は意味を成さず、代わりに AsAttrSet で子の属性セットを取得できます。

    Inheritance
    System.Object
    NativeAttributeValue
    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.CityGML
    Assembly: cs.temp.dll.dll
    Syntax
    public class NativeAttributeValue

    Constructors

    NativeAttributeValue(IntPtr)

    Declaration
    public NativeAttributeValue(IntPtr handle)
    Parameters
    Type Name Description
    IntPtr handle

    Properties

    AsAttrSet

    Type が AttributeSet であることを前提に、 子の NativeAttributesMap を返します。 Type がその他である場合は意味を成しません。

    Declaration
    public NativeAttributesMap AsAttrSet { get; }
    Property Value
    Type Description
    NativeAttributesMap

    AsBool

    属性値を bool にパースして返します。

    Declaration
    public bool AsBool { get; }
    Property Value
    Type Description
    System.Boolean

    AsDouble

    属性値を double にパースして返します。

    Declaration
    public double AsDouble { get; }
    Property Value
    Type Description
    System.Double

    AsInt

    属性値を int にパースして返します。

    Declaration
    public int AsInt { get; }
    Property Value
    Type Description
    System.Int32

    AsString

    属性値を string 形式で取得します。 Type が String, Double, Integer, Data, Uri, Measure の場合に有効です。 Type が AttributeSet の場合は意味を成しません。

    Declaration
    public string AsString { get; }
    Property Value
    Type Description
    System.String

    Type

    属性の値の想定形式です。AttributeType 型で返します。

    Declaration
    public AttributeType Type { get; }
    Property Value
    Type Description
    AttributeType
    In This Article
    Back to top PLATEAU SDK for Unity