Enum Class Projections

java.lang.Object
java.lang.Enum<Projections>
org.openstreetmap.josm.data.imagery.street_level.Projections
All Implemented Interfaces:
Serializable, Comparable<Projections>, Constable

public enum Projections extends Enum<Projections>
Projections for street level imagery
Since:
18246
  • Enum Constant Details

    • PERSPECTIVE

      public static final Projections PERSPECTIVE
      This is the image type from most cameras
    • FISHEYE

      public static final Projections FISHEYE
      This will probably not be seen often in JOSM, but someone might have a synchronized pair of fisheye camers
    • EQUIRECTANGULAR

      public static final Projections EQUIRECTANGULAR
      360 imagery using the equirectangular method (single image)
    • CUBE_MAP

      public static final Projections CUBE_MAP
      360 imagery using a cube map
    • UNKNOWN

      public static final Projections UNKNOWN
      In the event that we have no clue what the projection should be. Defaults to perspective viewing.
  • Field Details

  • Constructor Details

    • Projections

      private Projections(int expectedImages)
      Create a new Projections enum
      Parameters:
      expectedImages - The maximum images for the projection type
  • Method Details

    • values

      public static Projections[] 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

      public static Projections valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getExpectedImages

      public int getExpectedImages()
      Get the maximum number of expected images for the projection
      Returns:
      The number of expected images