cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.drawing
Class NavMeshDraw

Package class diagram package NavMeshDraw
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.drawing.UT2004Draw
      extended by cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.drawing.NavMeshDraw

public class NavMeshDraw
extends UT2004Draw


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.drawing.UT2004Draw
defaultColor, log, origin, scale, serverProvider
 
Constructor Summary
NavMeshDraw(NavMesh navMesh, Logger log, IUT2004ServerProvider serverProvider)
           
 
Method Summary
 void draw()
          Draws navmesh in game
 void draw(String lines, Location color)
          Draws given lines
 void drawOnePolygon(int i)
          Draws one polygon with default color (yellow)
 void drawOnePolygon(int i, Location color)
          Draws one polygon with the color set in color
 void drawOnlyBiggestLeaf()
          Debug method: Draws only the polygons in the biggeswt leaf so that we can see whe they could not have been split any further
 void drawPath(IPathFuture<ILocated> path, Location color)
          Draws the given path
 void drawPolygonPath(List<INavMeshAtom> polygonPath, Location location)
          Draws entire list of polygons
 String polygonToDebugString(int polygonNumber)
          Restricted alternative to toDebugString() - returns only one polygon as string
 String toDebugString()
          Returns all lines in one long string.
 void unDraw()
          Undraws all currently drawn lines
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.drawing.UT2004Draw
clearAll, drawLine, drawLine, drawPolygon, drawPolygon, drawPolyLine, drawPolyLine, getColor, getOrigin, getScale, getServer, init, setColor, setOrigin, setScale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavMeshDraw

public NavMeshDraw(NavMesh navMesh,
                   Logger log,
                   IUT2004ServerProvider serverProvider)
Method Detail

draw

public void draw()
Draws navmesh in game


draw

public void draw(String lines,
                 Location color)
Draws given lines

Parameters:
lines -

unDraw

public void unDraw()
Undraws all currently drawn lines


drawOnePolygon

public void drawOnePolygon(int i,
                           Location color)
Draws one polygon with the color set in color


drawOnePolygon

public void drawOnePolygon(int i)
Draws one polygon with default color (yellow)


drawPolygonPath

public void drawPolygonPath(List<INavMeshAtom> polygonPath,
                            Location location)
Draws entire list of polygons

Parameters:
polygonPath -

drawPath

public void drawPath(IPathFuture<ILocated> path,
                     Location color)
Draws the given path

Parameters:
path -

drawOnlyBiggestLeaf

public void drawOnlyBiggestLeaf()
Debug method: Draws only the polygons in the biggeswt leaf so that we can see whe they could not have been split any further


toDebugString

public String toDebugString()
Returns all lines in one long string.


polygonToDebugString

public String polygonToDebugString(int polygonNumber)
Restricted alternative to toDebugString() - returns only one polygon as string



Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.