Package de.javagl.ply

Interface PlyTarget

  • All Known Implementing Classes:
    AbstractPlyTarget, ObjectPlyTarget

    public interface PlyTarget
    Interface for all classes that may receive information about PLY data
    • Method Summary

      All Methods Instance Methods Abstract 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.
    • Method Detail

      • setDescriptor

        void setDescriptor​(Descriptor descriptor)
        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.
        Parameters:
        descriptor - The Descriptor
      • startElementList

        void startElementList​(int elementTypeIndex,
                              int elementCount)
        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
        Parameters:
        elementTypeIndex - The element type index
        elementCount - The number of elements that will follow
      • startElement

        void startElement​(int elementTypeIndex,
                          int elementIndex)
        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.
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
      • handleCharProperty

        void handleCharProperty​(int elementTypeIndex,
                                int elementIndex,
                                int propertyIndex,
                                byte value)
        Will be called to handle the specified property of the specified element.
        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

        void handleShortProperty​(int elementTypeIndex,
                                 int elementIndex,
                                 int propertyIndex,
                                 short value)
        Will be called to handle the specified property of the specified element.
        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

        void handleIntProperty​(int elementTypeIndex,
                               int elementIndex,
                               int propertyIndex,
                               int value)
        Will be called to handle the specified property of the specified element.
        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

        void handleFloatProperty​(int elementTypeIndex,
                                 int elementIndex,
                                 int propertyIndex,
                                 float value)
        Will be called to handle the specified property of the specified element.
        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

        void handleDoubleProperty​(int elementTypeIndex,
                                  int elementIndex,
                                  int propertyIndex,
                                  double value)
        Will be called to handle the specified property of the specified element.
        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

        void handleCharListProperty​(int elementTypeIndex,
                                    int elementIndex,
                                    int propertyIndex,
                                    byte[] value)
        Will be called to handle the specified property of the specified element.
        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

        void handleShortListProperty​(int elementTypeIndex,
                                     int elementIndex,
                                     int propertyIndex,
                                     short[] value)
        Will be called to handle the specified property of the specified element.
        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

        void handleIntListProperty​(int elementTypeIndex,
                                   int elementIndex,
                                   int propertyIndex,
                                   int[] value)
        Will be called to handle the specified property of the specified element.
        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

        void handleFloatListProperty​(int elementTypeIndex,
                                     int elementIndex,
                                     int propertyIndex,
                                     float[] value)
        Will be called to handle the specified property of the specified element.
        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

        void handleDoubleListProperty​(int elementTypeIndex,
                                      int elementIndex,
                                      int propertyIndex,
                                      double[] value)
        Will be called to handle the specified property of the specified element.
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
        propertyIndex - The index of the property
        value - The value of the property
      • endElement

        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.
        Parameters:
        elementTypeIndex - The element type index
        elementIndex - The index of the element
      • endElementList

        void endElementList​(int elementTypeIndex)
        Will be called to indicate that the sequence of calls to handle the specified sequence of elements is finished.
        Parameters:
        elementTypeIndex - The element type index