Package de.javagl.ply
Class AbstractPlyTarget
- java.lang.Object
-
- de.javagl.ply.AbstractPlyTarget
-
-
Constructor Summary
Constructors Constructor Description AbstractPlyTarget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendElement(int elementTypeIndex, int elementIndex)Will be called to indicate that the specified element was finished, and allhandle...Propertycalls for that element have been made.voidendElementList(int elementTypeIndex)Will be called to indicate that the sequence of calls to handle the specified sequence of elements is finished.voidhandleCharListProperty(int elementTypeIndex, int elementIndex, int propertyIndex, byte[] value)Will be called to handle the specified property of the specified element.voidhandleCharProperty(int elementTypeIndex, int elementIndex, int propertyIndex, byte value)Will be called to handle the specified property of the specified element.voidhandleDoubleListProperty(int elementTypeIndex, int elementIndex, int propertyIndex, double[] value)Will be called to handle the specified property of the specified element.voidhandleDoubleProperty(int elementTypeIndex, int elementIndex, int propertyIndex, double value)Will be called to handle the specified property of the specified element.voidhandleFloatListProperty(int elementTypeIndex, int elementIndex, int propertyIndex, float[] value)Will be called to handle the specified property of the specified element.voidhandleFloatProperty(int elementTypeIndex, int elementIndex, int propertyIndex, float value)Will be called to handle the specified property of the specified element.voidhandleIntListProperty(int elementTypeIndex, int elementIndex, int propertyIndex, int[] value)Will be called to handle the specified property of the specified element.voidhandleIntProperty(int elementTypeIndex, int elementIndex, int propertyIndex, int value)Will be called to handle the specified property of the specified element.voidhandleShortListProperty(int elementTypeIndex, int elementIndex, int propertyIndex, short[] value)Will be called to handle the specified property of the specified element.voidhandleShortProperty(int elementTypeIndex, int elementIndex, int propertyIndex, short value)Will be called to handle the specified property of the specified element.voidsetDescriptor(Descriptor descriptor)Will receive theDescriptorfor the PLY data.voidstartElement(int elementTypeIndex, int elementIndex)Will be called to indicate the start of the specified element.voidstartElementList(int elementTypeIndex, int elementCount)Will be called to indicate the start of a list of elements.
-
-
-
Method Detail
-
setDescriptor
public void setDescriptor(Descriptor descriptor)
Description copied from interface:PlyTargetWill receive theDescriptorfor the PLY data. This will be called once, at the beginning of the process. It may be used to initialize internal data structures based on the givenDescriptor.- Specified by:
setDescriptorin interfacePlyTarget- Parameters:
descriptor- TheDescriptor
-
startElementList
public void startElementList(int elementTypeIndex, int elementCount)Description copied from interface:PlyTargetWill be called to indicate the start of a list of elements. It will be followed by calls that reflect a sequence of elements. Each element will be represented by callsPlyTarget.startElement(int, int)handle...Propertyfor all the element propertiesPlyTarget.endElement(int, int)
- Specified by:
startElementListin interfacePlyTarget- Parameters:
elementTypeIndex- The element type indexelementCount- The number of elements that will follow
-
startElement
public void startElement(int elementTypeIndex, int elementIndex)Description copied from interface:PlyTargetWill be called to indicate the start of the specified element. It will be followed by a sequence of calls tohandle...Propertyfor all the element properties.- Specified by:
startElementin interfacePlyTarget- Parameters:
elementTypeIndex- The element type indexelementIndex- The index of the element
-
handleCharProperty
public void handleCharProperty(int elementTypeIndex, int elementIndex, int propertyIndex, byte value)Description copied from interface:PlyTargetWill be called to handle the specified property of the specified element.- Specified by:
handleCharPropertyin interfacePlyTarget- Parameters:
elementTypeIndex- The element type indexelementIndex- The index of the elementpropertyIndex- The index of the propertyvalue- The value of the property
-
handleShortProperty
public void handleShortProperty(int elementTypeIndex, int elementIndex, int propertyIndex, short value)Description copied from interface:PlyTargetWill be called to handle the specified property of the specified element.- Specified by:
handleShortPropertyin interfacePlyTarget- Parameters:
elementTypeIndex- The element type indexelementIndex- The index of the elementpropertyIndex- The index of the propertyvalue- The value of the property
-
handleIntProperty
public void handleIntProperty(int elementTypeIndex, int elementIndex, int propertyIndex, int value)Description copied from interface:PlyTargetWill be called to handle the specified property of the specified element.- Specified by:
handleIntPropertyin interfacePlyTarget- Parameters:
elementTypeIndex- The element type indexelementIndex- The index of the elementpropertyIndex- The index of the propertyvalue- The value of the property
-
handleFloatProperty
public void handleFloatProperty(int elementTypeIndex, int elementIndex, int propertyIndex, float value)Description copied from interface:PlyTargetWill be called to handle the specified property of the specified element.- Specified by:
handleFloatPropertyin interfacePlyTarget- Parameters:
elementTypeIndex- The element type indexelementIndex- The index of the elementpropertyIndex- The index of the propertyvalue- The value of the property
-
handleDoubleProperty
public void handleDoubleProperty(int elementTypeIndex, int elementIndex, int propertyIndex, double value)Description copied from interface:PlyTargetWill be called to handle the specified property of the specified element.- Specified by:
handleDoublePropertyin interfacePlyTarget- Parameters:
elementTypeIndex- The element type indexelementIndex- The index of the elementpropertyIndex- The index of the propertyvalue- The value of the property
-
handleCharListProperty
public void handleCharListProperty(int elementTypeIndex, int elementIndex, int propertyIndex, byte[] value)Description copied from interface:PlyTargetWill be called to handle the specified property of the specified element.- Specified by:
handleCharListPropertyin interfacePlyTarget- Parameters:
elementTypeIndex- The element type indexelementIndex- The index of the elementpropertyIndex- The index of the propertyvalue- The value of the property
-
handleShortListProperty
public void handleShortListProperty(int elementTypeIndex, int elementIndex, int propertyIndex, short[] value)Description copied from interface:PlyTargetWill be called to handle the specified property of the specified element.- Specified by:
handleShortListPropertyin interfacePlyTarget- Parameters:
elementTypeIndex- The element type indexelementIndex- The index of the elementpropertyIndex- The index of the propertyvalue- The value of the property
-
handleIntListProperty
public void handleIntListProperty(int elementTypeIndex, int elementIndex, int propertyIndex, int[] value)Description copied from interface:PlyTargetWill be called to handle the specified property of the specified element.- Specified by:
handleIntListPropertyin interfacePlyTarget- Parameters:
elementTypeIndex- The element type indexelementIndex- The index of the elementpropertyIndex- The index of the propertyvalue- The value of the property
-
handleFloatListProperty
public void handleFloatListProperty(int elementTypeIndex, int elementIndex, int propertyIndex, float[] value)Description copied from interface:PlyTargetWill be called to handle the specified property of the specified element.- Specified by:
handleFloatListPropertyin interfacePlyTarget- Parameters:
elementTypeIndex- The element type indexelementIndex- The index of the elementpropertyIndex- The index of the propertyvalue- The value of the property
-
handleDoubleListProperty
public void handleDoubleListProperty(int elementTypeIndex, int elementIndex, int propertyIndex, double[] value)Description copied from interface:PlyTargetWill be called to handle the specified property of the specified element.- Specified by:
handleDoubleListPropertyin interfacePlyTarget- Parameters:
elementTypeIndex- The element type indexelementIndex- The index of the elementpropertyIndex- The index of the propertyvalue- The value of the property
-
endElementList
public void endElementList(int elementTypeIndex)
Description copied from interface:PlyTargetWill be called to indicate that the sequence of calls to handle the specified sequence of elements is finished.- Specified by:
endElementListin interfacePlyTarget- Parameters:
elementTypeIndex- The element type index
-
endElement
public void endElement(int elementTypeIndex, int elementIndex)Description copied from interface:PlyTargetWill be called to indicate that the specified element was finished, and allhandle...Propertycalls for that element have been made.- Specified by:
endElementin interfacePlyTarget- Parameters:
elementTypeIndex- The element type indexelementIndex- The index of the element
-
-