|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mars_sim.msp.mapdata.SurfaceMapData
public class SurfaceMapData
Surface map data.
| Field Summary | |
|---|---|
static double |
HALF_MAP_ANGLE
|
static int |
MAP_HEIGHT
|
static int |
MAP_WIDTH
|
static double |
PIXEL_RHO
|
| Constructor Summary | |
|---|---|
SurfaceMapData()
Constructor |
|
| Method Summary | |
|---|---|
Point |
findRectPosition(double oldPhi,
double oldTheta,
double newPhi,
double newTheta,
double rho,
int half_map,
int low_edge)
Converts spherical coordinates to rectangular coordinates. |
Image |
getMapImage(double centerPhi,
double centerTheta)
Generates and returns a map image with the given parameters. |
Color |
getRGBColor(double phi,
double theta)
Gets the RGB map color at a given location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double HALF_MAP_ANGLE
public static final int MAP_HEIGHT
public static final int MAP_WIDTH
public static final double PIXEL_RHO
| Constructor Detail |
|---|
public SurfaceMapData()
| Method Detail |
|---|
public Image getMapImage(double centerPhi,
double centerTheta)
MapData
getMapImage in interface MapDatacenterPhi - the phi center location of the map.centerTheta - the theta center location of the map.
public Color getRGBColor(double phi,
double theta)
MapData
getRGBColor in interface MapDataphi - the phi location.theta - the theta location.
public Point findRectPosition(double oldPhi,
double oldTheta,
double newPhi,
double newTheta,
double rho,
int half_map,
int low_edge)
newPhi - the new phi coordinatenewTheta - the new theta coordinaterho - diameter of planet (in km)half_map - half the map's width (in pixels)low_edge - lower edge of map (in pixels)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||