StructuralMetadata

Inheritance: java.lang.Object

public class StructuralMetadata

此类提供对 EXT_structural_metadata 的支持,仅在 glTF 中使用。

构造函数

构造函数描述
StructuralMetadata()

方法

方法描述
attach(Scene scene)将当前元数据附加到指定场景
createClass(String name)创建元类类型
createEnum(String name)创建枚举类型
createPropertyTable(String name, StructuralMetadata.ClassType clazz)使用给定的元类类型创建新的属性表
equals(Object arg0)
from(Scene scene)获取与指定场景关联的 StructuralMetadata
getClass()
getClasses()类定义。
getEnums()枚举类型定义
getPropertyTables()此元数据中的属性表。
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

StructuralMetadata()

public StructuralMetadata()

attach(Scene scene)

public void attach(Scene scene)

将当前元数据附加到指定场景

Parameters:

参数类型描述
sceneScene

createClass(String name)

public StructuralMetadata.ClassType createClass(String name)

创建元类类型

Parameters:

参数类型描述
名称java.lang.String类的名称

Returns: ClassType - Instance of the meta class

createEnum(String name)

public StructuralMetadata.EnumType createEnum(String name)

创建枚举类型

Parameters:

参数类型描述
名称java.lang.String枚举类型的名称

Returns: EnumType - Instance of the enum type

createPropertyTable(String name, StructuralMetadata.ClassType clazz)

public StructuralMetadata.PropertyTable createPropertyTable(String name, StructuralMetadata.ClassType clazz)

使用给定的元类类型创建新的属性表

Parameters:

参数类型描述
名称java.lang.String属性表的名称
clazzClassType新属性表的类类型

Returns: PropertyTable - The new instance of property table

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.lang.Object

Returns: 布尔

from(Scene scene)

public static StructuralMetadata from(Scene scene)

获取与指定场景关联的 StructuralMetadata

Parameters:

参数类型描述
sceneScene要在何种场景中查找结构化元数据

Returns: StructuralMetadata - A valid instance of StructuralMetadata if its found in the scene, otherwise null returned

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getClasses()

public HashMap<String,StructuralMetadata.ClassType> getClasses()

类定义。

Returns: java.util.HashMap<java.lang.String,com.aspose.threed.StructuralMetadata.ClassType> - 类定义。

getEnums()

public HashMap<String,StructuralMetadata.EnumType> getEnums()

枚举类型定义

Returns: java.util.HashMap<java.lang.String,com.aspose.threed.StructuralMetadata.EnumType> - 枚举类型定义

getPropertyTables()

public ArrayList<StructuralMetadata.PropertyTable> getPropertyTables()

此元数据中的属性表。

Returns: java.util.ArrayList<com.aspose.threed.StructuralMetadata.PropertyTable> - 此元数据中的属性表。

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int