- java.lang.Object
-
- java.lang.Enum<ShapeMultiPatchType>
-
- org.arakhne.afc.io.shape.ShapeMultiPatchType
-
- All Implemented Interfaces:
Serializable
,Comparable<ShapeMultiPatchType>
public enum ShapeMultiPatchType extends Enum<ShapeMultiPatchType>
Supported types of multipatches in an ESRI shape file.The specification of the ESRI Shape file format is described in the July 98 specification document.
- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:52
- Author:
- Stéphane GALLAND, Olivier LAMOTTE
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- shapefile
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIRST_RING
First ring.INNER_RING
An inner ring.OUTER_RING
An outer ring.RING
A ring.TRIANGLE_FAN
A triangle fan.TRIANGLE_STRIP
A triangle strip.
-
Field Summary
Fields Modifier and Type Field Description int
partType
Is the type identifier used inside ESRI shape files.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShapeMultiPatchType
fromESRIInteger(int esriNumber)
Replies the element type which is corresponding to the given number (from ESRI shape file specification).static ShapeMultiPatchType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ShapeMultiPatchType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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.
-
-
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 nameNullPointerException
- 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.
-
-