Enum ShapeMultiPatchType

    • Enum Constant Detail

      • TRIANGLE_STRIP

        public static final ShapeMultiPatchType TRIANGLE_STRIP
        A triangle strip.

        A linked strip of triangles, where every vertex (after the first two) completes a new triangle. A new triangle is always formed by connecting the new vertex with its two immediate predecessors.

      • TRIANGLE_FAN

        public static final ShapeMultiPatchType TRIANGLE_FAN
        A triangle fan.

        A linked fan of triangles, where every vertex (after the first two) completes a new triangle. A new triangle is always formed by connecting the new vertex with its immediate predecessor and the first vertex of the part.

      • OUTER_RING

        public static final ShapeMultiPatchType OUTER_RING
        An outer ring.

        The outer ring of a polygon.

      • INNER_RING

        public static final ShapeMultiPatchType INNER_RING
        An inner ring.

        A hole of a polygon.

      • FIRST_RING

        public static final ShapeMultiPatchType FIRST_RING
        First ring.

        The first ring of a polygon of an unspecified type.

      • RING

        public static final ShapeMultiPatchType RING
        A ring.

        A ring of a polygon of an unspecified type.

    • Field Detail

      • partType

        public final int partType
        Is the type identifier used inside ESRI shape files.
    • Method Detail

      • values

        public static ShapeMultiPatchType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ShapeMultiPatchType c : ShapeMultiPatchType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ShapeMultiPatchType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • fromESRIInteger

        @Pure
        public static ShapeMultiPatchType fromESRIInteger​(int esriNumber)
                                                   throws ShapeFileException
        Replies the element type which is corresponding to the given number (from ESRI shape file specification).
        Parameters:
        esriNumber - is the number from the ESRI shape file specification.
        Returns:
        the element type corresponding to the number.
        Throws:
        ShapeFileException - if the given parameter is not a valid integer.