VertexDeclaration

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Iterable, java.lang.Comparable

public final class VertexDeclaration implements Iterable<VertexField>, Comparable<VertexDeclaration>

The declaration of a custom defined vertex’s structure

Constructors

ConstructorDescription
VertexDeclaration()

Methods

MethodDescription
addField(int dataType, VertexFieldSemantic semantic)Add a new vertex field
addField(int dataType, VertexFieldSemantic semantic, int index)Add a new vertex field
addField(int dataType, VertexFieldSemantic semantic, int index, String alias)Add a new vertex field
clear()Clear all fields.
compareTo(VertexDeclaration other)Compares this instance to a specified object and returns an indication of their relative values.
equals(Object obj)Determines whether this instance and a specified object, which must also be a VertexDeclaration object, have the same value.
fromGeometry(Geometry geometry, boolean useFloat)Create a VertexDeclaration based on a Geometry’s layout.
get(int index)Gets the VertexField by index
getClass()
getCount()Gets the count of all fields defined in this VertexDeclaration
getSealed()A VertexDeclaration will be sealed when its been used by TriMesh, no more modifications is allowed.
getSize()The size in byte of the vertex structure.
hashCode()Returns the hash code for this string.
iterator()Gets an enumerator to walk through all vertex fields in this instance.
notify()
notifyAll()
toString()String representation of VertexDeclaration
wait()
wait(long arg0)
wait(long arg0, int arg1)

VertexDeclaration()

public VertexDeclaration()

addField(int dataType, VertexFieldSemantic semantic)

public VertexField addField(int dataType, VertexFieldSemantic semantic)

Add a new vertex field

Parameters:

ParameterTypeDescription
dataTypeintThe data type of the vertex field
semanticVertexFieldSemanticHow will this field used for

Returns: VertexField

addField(int dataType, VertexFieldSemantic semantic, int index)

public VertexField addField(int dataType, VertexFieldSemantic semantic, int index)

Add a new vertex field

Parameters:

ParameterTypeDescription
dataTypeintThe data type of the vertex field
semanticVertexFieldSemanticHow will this field used for
indexintThe index for same field semantic, -1 for auto-generation

Returns: VertexField

addField(int dataType, VertexFieldSemantic semantic, int index, String alias)

public VertexField addField(int dataType, VertexFieldSemantic semantic, int index, String alias)

Add a new vertex field

Parameters:

ParameterTypeDescription
dataTypeintThe data type of the vertex field
semanticVertexFieldSemanticHow will this field used for
indexintThe index for same field semantic, -1 for auto-generation
aliasjava.lang.StringThe alias name of the field

Returns: VertexField

clear()

public void clear()

Clear all fields.

compareTo(VertexDeclaration other)

public int compareTo(VertexDeclaration other)

Compares this instance to a specified object and returns an indication of their relative values.

Parameters:

ParameterTypeDescription
otherVertexDeclaration

Returns: int

equals(Object obj)

public boolean equals(Object obj)

Determines whether this instance and a specified object, which must also be a VertexDeclaration object, have the same value.

Parameters:

ParameterTypeDescription
objjava.lang.Object

Returns: boolean

fromGeometry(Geometry geometry, boolean useFloat)

public static VertexDeclaration fromGeometry(Geometry geometry, boolean useFloat)

Create a VertexDeclaration based on a Geometry’s layout.

Parameters:

ParameterTypeDescription
geometryGeometry
useFloatbooleanUse float instead of double type

Returns: VertexDeclaration

get(int index)

public VertexField get(int index)

Gets the VertexField by index

Parameters:

ParameterTypeDescription
indexint

Returns: VertexField

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCount()

public int getCount()

Gets the count of all fields defined in this VertexDeclaration

Returns: int

getSealed()

public boolean getSealed()

A VertexDeclaration will be sealed when its been used by TriMesh, no more modifications is allowed.

Returns: boolean

getSize()

public int getSize()

The size in byte of the vertex structure.

Returns: int

hashCode()

public int hashCode()

Returns the hash code for this string.

Returns: int - A 32-bit signed integer hash code.

iterator()

public Iterator<VertexField> iterator()

Gets an enumerator to walk through all vertex fields in this instance.

Returns: java.util.Iterator<com.aspose.threed.VertexField> - Enumerator

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

String representation of VertexDeclaration

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