Package de.javagl.ply

Interface MutableDescriptor

    • Method Detail

      • addComment

        void addComment​(String comment)
        Add the given comment to be part of the PLY file
        Parameters:
        comment - The comment
      • addProperty

        void addProperty​(String elementName,
                         String propertyName,
                         PlyType propertyType)
        Add the specified property to this descriptor. This will automatically add the element descriptor for the specified element name if necessary.
        Parameters:
        elementName - The element name
        propertyName - The property name
        propertyType - The property type
        Throws:
        IllegalArgumentException - If a property with the given name was already added for the specified element
      • addListProperty

        void addListProperty​(String elementName,
                             String propertyName,
                             PlyType propertySizeType,
                             PlyType propertyType)
        Add the specified list property to this descriptor. This will automatically add the element descriptor for the specified element name if necessary.
        Parameters:
        elementName - The element name
        propertyName - The property name
        propertySizeType - The property size type
        propertyType - The property type
        Throws:
        IllegalArgumentException - If a property with the given name was already added for the specified element, or if the size type is not an integer type