Enum Class Projections
- All Implemented Interfaces:
Serializable,Comparable<Projections>,Constable
Projections for street level imagery
- Since:
- 18246
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription360 imagery using a cube map360 imagery using the equirectangular method (single image)This will probably not be seen often in JOSM, but someone might have a synchronized pair of fisheye camersThis is the image type from most camerasIn the event that we have no clue what the projection should be. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateProjections(int expectedImages) Create a new Projections enum -
Method Summary
Modifier and TypeMethodDescriptionintGet the maximum number of expected images for the projectionstatic ProjectionsReturns the enum constant of this class with the specified name.static Projections[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PERSPECTIVE
This is the image type from most cameras -
FISHEYE
This will probably not be seen often in JOSM, but someone might have a synchronized pair of fisheye camers -
EQUIRECTANGULAR
360 imagery using the equirectangular method (single image) -
CUBE_MAP
360 imagery using a cube map -
UNKNOWN
In the event that we have no clue what the projection should be. Defaults to perspective viewing.
-
-
Field Details
-
expectedImages
-
-
Constructor Details
-
Projections
Create a new Projections enum- Parameters:
expectedImages- The maximum images for the projection type
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getExpectedImages
Get the maximum number of expected images for the projection- Returns:
- The number of expected images
-