com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class VertexDeclaration

  • java.lang.Object
    • com.aspose.threed.VertexDeclaration
  • All Implemented Interfaces:
    java.lang.Comparable<VertexDeclaration>, java.lang.Iterable<VertexField>


    public final class VertexDeclaration
    extends java.lang.Object
    implements java.lang.Iterable<VertexField>, java.lang.Comparable<VertexDeclaration>
    The declaration of a custom defined vertex's structure
    • Constructor Detail

      • VertexDeclaration

        public VertexDeclaration()
    • Method Detail

      • getSealed

        public boolean getSealed()
        A VertexDeclaration will be sealed when its been used by TriMesh, no more modifications is allowed.
      • getCount

        public int getCount()
        Gets the count of all fields defined in this VertexDeclaration
      • clear

        public void clear()
        Clear all fields.
      • addField

        public VertexField addField(int dataType,
                                    VertexFieldSemantic semantic,
                                    int index)
        Add a new vertex field
        Parameters:
        dataType - The data type of the vertex field
        semantic - How will this field used for
        index - The index for same field semantic
      • addField

        public VertexField addField(int dataType,
                                    VertexFieldSemantic semantic)
        Add a new vertex field
        Parameters:
        dataType - The data type of the vertex field
        semantic - How will this field used for
      • getSize

        public int getSize()
        The size in byte of the vertex structure.
      • compareTo

        public int compareTo(VertexDeclaration other)
        Compares this instance to a specified object and returns an indication of their relative values.
        Specified by:
        compareTo in interface java.lang.Comparable<VertexDeclaration>
      • toString

        public java.lang.String toString()
        String representation of VertexDeclaration
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Determines whether this instance and a specified object, which must also be a VertexDeclaration object, have the same value.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Returns the hash code for this string.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        A 32-bit signed integer hash code.
      • iterator

        public java.util.Iterator<VertexField> iterator()
        Gets an enumerator to walk through all vertex fields in this instance.
        Specified by:
        iterator in interface java.lang.Iterable<VertexField>
        Returns:
        Enumerator