Package de.javagl.ply

Class AbstractPlyTarget

  • All Implemented Interfaces:
    PlyTarget

    public class AbstractPlyTarget
    extends Object
    implements PlyTarget
    Abstract base implementation of a PlyTarget. All methods are empty and may be overridden.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void endElement​(int elementTypeIndex, int elementIndex)
      Will be called to indicate that the specified element was finished, and all handle...Property calls for that element have been made.
      void endElementList​(int elementTypeIndex)
      Will be called to indicate that the sequence of calls to handle the specified sequence of elements is finished.
      void handleCharListProperty​(int elementTypeIndex, int elementIndex, int propertyIndex, byte[] value)
      Will be called to handle the specified property of the specified element.
      void handleCharProperty​(int elementTypeIndex, int elementIndex, int propertyIndex, byte value)
      Will be called to handle the specified property of the specified element.
      void handleDoubleListProperty​(int elementTypeIndex, int elementIndex, int propertyIndex, double[] value)
      Will be called to handle the specified property of the specified element.
      void handleDoubleProperty​(int elementTypeIndex, int elementIndex, int propertyIndex, double value)
      Will be called to handle the specified property of the specified element.
      void handleFloatListProperty​(int elementTypeIndex, int elementIndex, int propertyIndex, float[] value)
      Will be called to handle the specified property of the specified element.
      void handleFloatProperty​(int elementTypeIndex, int elementIndex, int propertyIndex, float value)
      Will be called to handle the specified property of the specified element.
      void handleIntListProperty​(int elementTypeIndex, int elementIndex, int propertyIndex, int[] value)
      Will be called to handle the specified property of the specified element.
      void handleIntProperty​(int elementTypeIndex, int elementIndex, int propertyIndex, int value)
      Will be called to handle the specified property of the specified element.
      void handleShortListProperty​(int elementTypeIndex, int elementIndex, int propertyIndex, short[] value)
      Will be called to handle the specified property of the specified element.
      void handleShortProperty​(int elementTypeIndex, int elementIndex, int propertyIndex, short value)
      Will be called to handle the specified property of the specified element.
      void setDescriptor​(Descriptor descriptor)
      Will receive the Descriptor for the PLY data.
      void startElement​(int elementTypeIndex, int elementIndex)
      Will be called to indicate the start of the specified element.
      void startElementList​(int elementTypeIndex, int elementCount)
      Will be called to indicate the start of a list of elements.
    • Constructor Detail

      • AbstractPlyTarget

        public AbstractPlyTarget()
    • Method Detail

      • setDescriptor

        public void setDescriptor​(Descriptor descriptor)
        Description copied from interface: PlyTarget
        Will receive the Descriptor for 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 given Descriptor.
        Specified by:
        setDescriptor in interface PlyTarget
        Parameters:
        descriptor - The Descriptor
      • startElementList

        public void startElementList​(int elementTypeIndex,
                                     int elementCount)
        Description copied from interface: PlyTarget
        Will 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 calls
        Specified by:
        startElementList in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
        elementCount - The number of elements that will follow
      • startElement

        public void startElement​(int elementTypeIndex,
                                 int elementIndex)
        Description copied from interface: PlyTarget
        Will be called to indicate the start of the specified element. It will be followed by a sequence of calls to handle...Property for all the element properties.
        Specified by:
        startElement in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
      • handleCharProperty

        public void handleCharProperty​(int elementTypeIndex,
                                       int elementIndex,
                                       int propertyIndex,
                                       byte value)
        Description copied from interface: PlyTarget
        Will be called to handle the specified property of the specified element.
        Specified by:
        handleCharProperty in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
        propertyIndex - The index of the property
        value - The value of the property
      • handleShortProperty

        public void handleShortProperty​(int elementTypeIndex,
                                        int elementIndex,
                                        int propertyIndex,
                                        short value)
        Description copied from interface: PlyTarget
        Will be called to handle the specified property of the specified element.
        Specified by:
        handleShortProperty in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
        propertyIndex - The index of the property
        value - The value of the property
      • handleIntProperty

        public void handleIntProperty​(int elementTypeIndex,
                                      int elementIndex,
                                      int propertyIndex,
                                      int value)
        Description copied from interface: PlyTarget
        Will be called to handle the specified property of the specified element.
        Specified by:
        handleIntProperty in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
        propertyIndex - The index of the property
        value - The value of the property
      • handleFloatProperty

        public void handleFloatProperty​(int elementTypeIndex,
                                        int elementIndex,
                                        int propertyIndex,
                                        float value)
        Description copied from interface: PlyTarget
        Will be called to handle the specified property of the specified element.
        Specified by:
        handleFloatProperty in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
        propertyIndex - The index of the property
        value - The value of the property
      • handleDoubleProperty

        public void handleDoubleProperty​(int elementTypeIndex,
                                         int elementIndex,
                                         int propertyIndex,
                                         double value)
        Description copied from interface: PlyTarget
        Will be called to handle the specified property of the specified element.
        Specified by:
        handleDoubleProperty in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
        propertyIndex - The index of the property
        value - The value of the property
      • handleCharListProperty

        public void handleCharListProperty​(int elementTypeIndex,
                                           int elementIndex,
                                           int propertyIndex,
                                           byte[] value)
        Description copied from interface: PlyTarget
        Will be called to handle the specified property of the specified element.
        Specified by:
        handleCharListProperty in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
        propertyIndex - The index of the property
        value - The value of the property
      • handleShortListProperty

        public void handleShortListProperty​(int elementTypeIndex,
                                            int elementIndex,
                                            int propertyIndex,
                                            short[] value)
        Description copied from interface: PlyTarget
        Will be called to handle the specified property of the specified element.
        Specified by:
        handleShortListProperty in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
        propertyIndex - The index of the property
        value - The value of the property
      • handleIntListProperty

        public void handleIntListProperty​(int elementTypeIndex,
                                          int elementIndex,
                                          int propertyIndex,
                                          int[] value)
        Description copied from interface: PlyTarget
        Will be called to handle the specified property of the specified element.
        Specified by:
        handleIntListProperty in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
        propertyIndex - The index of the property
        value - The value of the property
      • handleFloatListProperty

        public void handleFloatListProperty​(int elementTypeIndex,
                                            int elementIndex,
                                            int propertyIndex,
                                            float[] value)
        Description copied from interface: PlyTarget
        Will be called to handle the specified property of the specified element.
        Specified by:
        handleFloatListProperty in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
        propertyIndex - The index of the property
        value - The value of the property
      • handleDoubleListProperty

        public void handleDoubleListProperty​(int elementTypeIndex,
                                             int elementIndex,
                                             int propertyIndex,
                                             double[] value)
        Description copied from interface: PlyTarget
        Will be called to handle the specified property of the specified element.
        Specified by:
        handleDoubleListProperty in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
        propertyIndex - The index of the property
        value - The value of the property
      • endElementList

        public void endElementList​(int elementTypeIndex)
        Description copied from interface: PlyTarget
        Will be called to indicate that the sequence of calls to handle the specified sequence of elements is finished.
        Specified by:
        endElementList in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
      • endElement

        public void endElement​(int elementTypeIndex,
                               int elementIndex)
        Description copied from interface: PlyTarget
        Will be called to indicate that the specified element was finished, and all handle...Property calls for that element have been made.
        Specified by:
        endElement in interface PlyTarget
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element