org.osm2world.core.target.common.rendering
Class OrthoTilesUtil

Object
  extended by OrthoTilesUtil

public final class OrthoTilesUtil
extends Object

calculates camera and projection information for viewing a given pair of z12 tiles. The viewer will look at the scene at an angle of 30°. The tiles' projection on the screen will therefore be only half as high as it is wide. Using a pair of z12 tiles will result in a square image.


Method Summary
static Camera cameraForBounds(AxisAlignedBoundingBoxXZ bounds, double angleDeg)
           
static Camera cameraForTile(MapProjection mapProjection, TileNumber tile, double angleDeg)
           
static Camera cameraForTiles(MapProjection mapProjection, List<TileNumber> tiles, double angleDeg)
           
static Projection projectionForBounds(AxisAlignedBoundingBoxXZ bounds, double angleDeg)
           
static Projection projectionForTile(MapProjection mapProjection, TileNumber tile, double angleDeg)
           
static Projection projectionForTiles(MapProjection mapProjection, List<TileNumber> tiles, double angleDeg)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cameraForTile

public static final Camera cameraForTile(MapProjection mapProjection,
                                         TileNumber tile,
                                         double angleDeg)

cameraForTiles

public static final Camera cameraForTiles(MapProjection mapProjection,
                                          List<TileNumber> tiles,
                                          double angleDeg)

cameraForBounds

public static final Camera cameraForBounds(AxisAlignedBoundingBoxXZ bounds,
                                           double angleDeg)

projectionForTile

public static final Projection projectionForTile(MapProjection mapProjection,
                                                 TileNumber tile,
                                                 double angleDeg)

projectionForTiles

public static final Projection projectionForTiles(MapProjection mapProjection,
                                                  List<TileNumber> tiles,
                                                  double angleDeg)

projectionForBounds

public static final Projection projectionForBounds(AxisAlignedBoundingBoxXZ bounds,
                                                   double angleDeg)