Class Visuals
raft.kilavuz.util.jpct
java.lang.Object
  raft.kilavuz.util.jpct.Visuals

public class Visuals
extends Object
provides static methods to visualize pathfinding information.

Method Summary
static Object3D
createBox(float minX, float maxX, float minY, float maxY, float minZ, float maxZ)
creates a new Object3D of box shape of given bounds.
static Object3D
createBox(float[] bounds)
creates a new Object3D of box shape of given bounds.
static List<Object3D>
visualizeCells(Grid grid, World world, java.awt.Color cellColor)
creates visual representations of cells in a grid and adds them to given world.
static List<Object3D>
visualizeSectors(Grid grid, World world)
creates visual representations of sectors and adds them to given world.
static List<Object3D>
visualizeSectors(Land land, World world)
creates visual representations of sectors and adds them to given world.
Method Detail
createBox
public static Object3D createBox(float[] bounds)
creates a new Object3D of box shape of given bounds. order of bounds is minX, maxX, minY, maxY, minZ, maxZ
Returns:
a new cretaed box shaped Object3D

createBox
public static Object3D createBox(float minX,
                                 float maxX,
                                 float minY,
                                 float maxY,
                                 float minZ,
                                 float maxZ)
creates a new Object3D of box shape of given bounds. the returned Object3D is not build yet.
Returns:
a new cretaed box shaped Object3D

visualizeCells
public static List<Object3DvisualizeCells(Grid grid,
                                            World world,
                                            java.awt.Color cellColor)
creates visual representations of cells in a grid and adds them to given world. note created cells will be slightly less wide than cellWidth to be distinguisable
Parameters:
grid - the Grid which holds the cells
world - World instance to add objects into
Returns:
created objects for further processing

visualizeSectors
public static List<Object3DvisualizeSectors(Grid grid,
                                              World world)
creates visual representations of sectors and adds them to given world. the created objects are build, transparent and assigned random colors (a max of 32)
Parameters:
grid - the Grid which holds the sectors
world - World instance to add objects into
Returns:
created objects for further processing

visualizeSectors
public static List<Object3DvisualizeSectors(Land land,
                                              World world)
creates visual representations of sectors and adds them to given world. the created objects are build, transparent and assigned random colors (a max of 32)
Parameters:
land - the Land which holds the sectors
world - World instance to add objects into
Returns:
created objects for further processing
Java API documentation generated with DocFlex/Doclet v1.5.2
DocFlex/Doclet is both a multi-format Javadoc doclet and a free edition of DocFlex/Javadoc. If you need to customize your Javadoc without writing a full-blown doclet from scratch, DocFlex/Javadoc may be the only tool able to help you! Find out more at www.docflex.com