Class Camera.Look2D

java.lang.Object
com.luciad.cameras.Camera.Look2D
Enclosing class:
Camera

public static final class Camera.Look2D extends Object
Structure describing the position of the camera for an orthographic top-down view.

This following picture shows:

  • the relation between the map and view origins
  • how scaleX and scaleY map the map units (meters) onto pixels

Camera Look2D
Camera Look2D
  • Constructor Details Link icon

  • Method Details Link icon

    • getMapOrigin Link icon

      @NotNull public Coordinate getMapOrigin()
      The origin, defined in the map reference.

      The origin is mapped to viewOrigin.

    • getViewOrigin Link icon

      @NotNull public Coordinate getViewOrigin()
      The view origin, defined in view coordinates (device independent pixels, (0, 0) at the bottom left of the screen).

      The view origin is mapped to mapOrigin. It is usually the center of the host component. A typical use case for changing the viewOrigin is to zoom in on a specific point, e.g. at the current mouse position.

    • getScaleX Link icon

      public double getScaleX()
      The scale on the horizontal axis in device independent pixels per map unit.
    • getScaleY Link icon

      public double getScaleY()
      The scale on the vertical axis in device independent pixels per map unit.
    • getRotation Link icon

      @NotNull public Azimuth getRotation()
      The rotation of the camera.

      See Azimuth to see how the rotation is defined.