PathPlan
Class MapFile

java.lang.Object
  extended by PathPlan.MapFile

public class MapFile
extends java.lang.Object


Field Summary
 int height
           
 java.awt.Image mapImage
           
 int width
           
 
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
 

Field Detail

mapImage

public java.awt.Image mapImage

width

public int width

height

public int height
Constructor Detail

MapFile

public MapFile(java.lang.String file)
Method Detail

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)