Package de.javagl.ply
Interface MutableDescriptor
-
- All Superinterfaces:
Descriptor
public interface MutableDescriptor extends Descriptor
ADescriptorwhereElementDescriptorobjects can be added.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddComment(String comment)Add the given comment to be part of the PLY filevoidaddListProperty(String elementName, String propertyName, PlyType propertySizeType, PlyType propertyType)Add the specified list property to this descriptor.voidaddProperty(String elementName, String propertyName, PlyType propertyType)Add the specified property to this descriptor.-
Methods inherited from interface de.javagl.ply.Descriptor
getComments, getElementDescriptors, getElementName, getPropertyName, getPropertySizeType, getPropertyType
-
-
-
-
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 namepropertyName- The property namepropertyType- 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 namepropertyName- The property namepropertySizeType- The property size typepropertyType- 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
-
-