java.io.Serializablepublic class VacuumMap
extends java.lang.Object
implements java.io.Serializable
| Constructor | Description |
|---|---|
VacuumMap(java.io.BufferedReader image,
java.io.BufferedReader slam,
int overSample) |
Create a vacuum map object.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.awt.Rectangle |
getBoundingBox() |
|
java.awt.image.BufferedImage |
getMap() |
|
java.awt.image.BufferedImage |
getMapWithPath() |
|
java.awt.image.BufferedImage |
getMapWithPath(java.awt.Color startColor,
java.awt.Color pathColor) |
|
java.awt.image.BufferedImage |
getMapWithPathInBounds() |
|
java.awt.image.BufferedImage |
getMapWithPathInBounds(java.awt.Color startColor,
java.awt.Color pathColor) |
|
int |
getOverSample() |
|
java.util.List<java.awt.geom.Point2D.Float> |
getPath() |
|
int |
hashCode() |
|
int[] |
mapPointScale(java.awt.Point p) |
Get coordinates from a point in this map.
|
int[] |
mapRectangleScale(java.awt.Rectangle rec) |
Get coordinates from a rectangle in this map.
|
void |
setOverSample(int overSample) |
|
java.lang.String |
toString() |
public VacuumMap(java.io.BufferedReader image,
java.io.BufferedReader slam,
int overSample)
image - The reader the map image should be read from.slam - The reader the slam log should be read from.overSample - The oversampling that should be applied to the map.public java.awt.image.BufferedImage getMap()
public java.util.List<java.awt.geom.Point2D.Float> getPath()
public java.awt.Rectangle getBoundingBox()
public int getOverSample()
public void setOverSample(int overSample)
public int[] mapPointScale(java.awt.Point p)
p - The point to convert.public int[] mapRectangleScale(java.awt.Rectangle rec)
rec - The rectangle to convert.public java.awt.image.BufferedImage getMapWithPathInBounds()
public java.awt.image.BufferedImage getMapWithPathInBounds(java.awt.Color startColor,
java.awt.Color pathColor)
startColor - The color the start point should be drawn with. If null is provided this will fall back to green.pathColor - The color the path should be drawn with. If null is provided this will fall back to blue.public java.awt.image.BufferedImage getMapWithPath()
public java.awt.image.BufferedImage getMapWithPath(java.awt.Color startColor,
java.awt.Color pathColor)
startColor - The color the start point should be drawn with. If null is provided this will fall back to green.pathColor - The color the path should be drawn with. If null is provided this will fall back to blue.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018. All rights reserved.