public class MapTileRendererCalculator
extends java.lang.Object
StateRenderer2D in order to
be able to calculate positions. It is useful for in thread use.| Constructor and Description |
|---|
MapTileRendererCalculator(StateRenderer2D renderer) |
| Modifier and Type | Method and Description |
|---|---|
LocationType |
getCenter() |
double |
getHeight() |
int |
getLevelOfDetail() |
LocationType |
getRealWorldLocation(java.awt.geom.Point2D screenCoordinates) |
static LocationType |
getRealWorldLocationHelper(java.awt.geom.Point2D screenCoordinates,
java.awt.geom.Point2D worldPixelXY,
java.awt.Dimension size,
int levelOfDetail,
double rotationRads) |
double |
getRotation() |
java.awt.geom.Point2D |
getScreenPosition(LocationType lt) |
static java.awt.geom.Point2D |
getScreenPositionHelper(LocationType lt,
java.awt.geom.Point2D worldPixelXY,
java.awt.Dimension size,
int levelOfDetail,
double rotationRads) |
java.awt.Dimension |
getSize() |
double |
getWidth() |
float |
getZoom() |
public MapTileRendererCalculator(StateRenderer2D renderer)
public LocationType getCenter()
public double getRotation()
public java.awt.Dimension getSize()
public double getWidth()
public double getHeight()
public float getZoom()
public int getLevelOfDetail()
public java.awt.geom.Point2D getScreenPosition(LocationType lt)
lt - public static java.awt.geom.Point2D getScreenPositionHelper(LocationType lt, java.awt.geom.Point2D worldPixelXY, java.awt.Dimension size, int levelOfDetail, double rotationRads)
lt - worldPixelXY - size - levelOfDetail - rotationRads - public LocationType getRealWorldLocation(java.awt.geom.Point2D screenCoordinates)
screenCoordinates - public static LocationType getRealWorldLocationHelper(java.awt.geom.Point2D screenCoordinates, java.awt.geom.Point2D worldPixelXY, java.awt.Dimension size, int levelOfDetail, double rotationRads)
screenCoordinates - worldPixelXY - size - levelOfDetail - rotationRads - Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.