StructuralMetadata

Inheritance: java.lang.Object

public class StructuralMetadata

This class provides support for EXT_structural_metadata, only used in glTF.

Constructors

ConstructorDescription
StructuralMetadata()

Methods

MethodDescription
attach(Scene scene)Attach current meta data to specified scene
createClass(String name)Create a meta class type
createEnum(String name)Create an enum type
createPropertyTable(String name, StructuralMetadata.ClassType clazz)Create a new property table with given meta class type
equals(Object arg0)
from(Scene scene)Get StructuralMetadata associated with specified scene.
getClass()
getClasses()The class definitions .
getEnums()The enum type definitions
getPropertyTables()The property tables in this metadata.
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

StructuralMetadata()

public StructuralMetadata()

attach(Scene scene)

public void attach(Scene scene)

Attach current meta data to specified scene

Parameters:

ParameterTypeDescription
sceneScene

createClass(String name)

public StructuralMetadata.ClassType createClass(String name)

Create a meta class type

Parameters:

ParameterTypeDescription
namejava.lang.StringThe class’s name

Returns: ClassType - Instance of the meta class

createEnum(String name)

public StructuralMetadata.EnumType createEnum(String name)

Create an enum type

Parameters:

ParameterTypeDescription
namejava.lang.StringThe enum type’s name

Returns: EnumType - Instance of the enum type

createPropertyTable(String name, StructuralMetadata.ClassType clazz)

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

Create a new property table with given meta class type

Parameters:

ParameterTypeDescription
namejava.lang.StringThe name of the property table
clazzClassTypeThe class type of the new property table

Returns: PropertyTable - The new instance of property table

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

from(Scene scene)

public static StructuralMetadata from(Scene scene)

Get StructuralMetadata associated with specified scene.

Parameters:

ParameterTypeDescription
sceneSceneWhich scene to look for the structural metadata

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()

The class definitions .

Returns: java.util.HashMap<java.lang.String,com.aspose.threed.StructuralMetadata.ClassType> - The class definitions .

getEnums()

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

The enum type definitions

Returns: java.util.HashMap<java.lang.String,com.aspose.threed.StructuralMetadata.EnumType> - The enum type definitions

getPropertyTables()

public ArrayList<StructuralMetadata.PropertyTable> getPropertyTables()

The property tables in this metadata.

Returns: java.util.ArrayList<com.aspose.threed.StructuralMetadata.PropertyTable> - The property tables in this metadata.

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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int