PathPlan
Class MapFile
java.lang.Object
PathPlan.MapFile
public class MapFile
- extends java.lang.Object
Constructor Summary |
MapFile(java.lang.String file)
|
Method Summary |
float[][] |
convertImage(float subsample)
|
float[][] |
convertImage(java.awt.Image im,
float subsample,
float floor)
|
void |
draw(java.awt.Graphics g,
int x,
int y,
int w,
int h)
|
void |
loadMap(java.lang.String file)
|
static double[] |
stack(float[][] im,
double scale)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mapImage
public java.awt.Image mapImage
width
public int width
height
public int height
MapFile
public MapFile(java.lang.String file)
convertImage
public float[][] convertImage(java.awt.Image im,
float subsample,
float floor)
convertImage
public float[][] convertImage(float subsample)
stack
public static double[] stack(float[][] im,
double scale)
loadMap
public void loadMap(java.lang.String file)
draw
public void draw(java.awt.Graphics g,
int x,
int y,
int w,
int h)