kaos.robots.naimtsimulator
Class ImageCapturer

java.lang.Object
  extended by kaos.robots.naimtsimulator.ImageCapturer

public class ImageCapturer
extends java.lang.Object

For now assumes that you want a graph around the origin.


Field Summary
static double BOT_SIZE
           
static java.lang.String imageSaveDirectory
           
static java.lang.String imageSaveFileName
           
static double imageScale
          In pixels per unit of simulated world.
static int imageSize
           
 
Constructor Summary
ImageCapturer()
           
 
Method Summary
static java.lang.String CaptureImage(Bot bot, Simulator sim)
           
static java.lang.String CaptureImage(Simulator sim)
           
static java.lang.String getImageSavePath()
           
static void main(java.lang.String[] args)
           
static void render(Bot bot, Simulator sim, java.awt.Graphics g)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

ImageCapturer

public ImageCapturer()
Method Detail

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