kaos.robots.naimtsimulator
Class ImageCapturer
java.lang.Object
kaos.robots.naimtsimulator.ImageCapturer
public class ImageCapturer
- extends java.lang.Object
For now assumes that you want a graph around the origin.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
imageSaveDirectory
public static java.lang.String imageSaveDirectory
imageSaveFileName
public static java.lang.String imageSaveFileName
imageSize
public static int imageSize
BOT_SIZE
public static double BOT_SIZE
imageScale
public static double imageScale
- In pixels per unit of simulated world.
ImageCapturer
public ImageCapturer()
getImageSavePath
public static java.lang.String getImageSavePath()
CaptureImage
public static java.lang.String CaptureImage(Simulator sim)
throws java.lang.Exception
- Throws:
java.lang.Exception
CaptureImage
public static java.lang.String CaptureImage(Bot bot,
Simulator sim)
throws java.lang.Exception
- Parameters:
bot
- If null, then takes the picture around the origin.
- Returns:
- The path where the Image was saved.
- Throws:
java.lang.Exception
render
public static void render(Bot bot,
Simulator sim,
java.awt.Graphics g)
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception