StructuralMetadata
Inheritance: java.lang.Object
public class StructuralMetadata
此类提供对 EXT_structural_metadata 的支持,仅在 glTF 中使用。
构造函数
| 构造函数 | 描述 |
|---|---|
| StructuralMetadata() |
方法
StructuralMetadata()
public StructuralMetadata()
attach(Scene scene)
public void attach(Scene scene)
将当前元数据附加到指定场景
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| scene | Scene |
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 | 属性表的名称 |
| clazz | ClassType | 新属性表的类类型 |
Returns: PropertyTable - The new instance of property table
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: 布尔
from(Scene scene)
public static StructuralMetadata from(Scene scene)
获取与指定场景关联的 StructuralMetadata。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| scene | Scene | 要在何种场景中查找结构化元数据 |
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:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |