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
Constructor | Description |
---|---|
VertexDeclaration() |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
dataType | int | The data type of the vertex field |
semantic | VertexFieldSemantic | How 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:
Parameter | Type | Description |
---|---|---|
dataType | int | The data type of the vertex field |
semantic | VertexFieldSemantic | How will this field used for |
index | int | The 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:
Parameter | Type | Description |
---|---|---|
dataType | int | The data type of the vertex field |
semantic | VertexFieldSemantic | How will this field used for |
index | int | The index for same field semantic, -1 for auto-generation |
alias | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
other | VertexDeclaration |
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:
Parameter | Type | Description |
---|---|---|
obj | java.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:
Parameter | Type | Description |
---|---|---|
geometry | Geometry | |
useFloat | boolean | Use float instead of double type |
Returns: VertexDeclaration
get(int index)
public VertexField get(int index)
Gets the VertexField by index
Parameters:
Parameter | Type | Description |
---|---|---|
index | int |
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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |