Class VertexElement

  • Direct Known Subclasses:
    VertexElementMaterial, VertexElementTemplate, VertexElementVector4

    public abstract class VertexElement
    extends java.lang.Object
    Base class of vertex elements. A vertex element type is identified by VertexElementType. A VertexElement describes how the vertex element is mapped to a geometry surface and how the mapping information is arranged in memory. A VertexElement contains Normals, UVs or other kind of information.
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the name.
      • setName

        public void setName​(java.lang.String value)
        Sets the name.
        Parameters:
        value - New value
      • getMappingMode

        public MappingMode getMappingMode()
        Gets how the element is mapped.
      • setMappingMode

        public void setMappingMode​(MappingMode value)
        Sets how the element is mapped.
        Parameters:
        value - New value
      • getReferenceMode

        public ReferenceMode getReferenceMode()
        Gets how the element is referenced.
      • setReferenceMode

        public void setReferenceMode​(ReferenceMode value)
        Sets how the element is referenced.
        Parameters:
        value - New value
      • clear

        public abstract void clear()
        Clears all the data from this vertex element.
      • clone

        public VertexElement clone​(boolean withData)
        Deep clone the vertex element
        Parameters:
        withData - Clone the vertex with direct and index array
      • toString

        public java.lang.String toString()
        String representation of vertex element.
        Overrides:
        toString in class java.lang.Object