|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.drawing.UT2004Draw cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.drawing.NavMeshDraw
public class NavMeshDraw
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 |
---|
public NavMeshDraw(NavMesh navMesh, Logger log, IUT2004ServerProvider serverProvider)
Method Detail |
---|
public void draw()
public void draw(String lines, Location color)
lines
- public void unDraw()
public void drawOnePolygon(int i, Location color)
public void drawOnePolygon(int i)
public void drawPolygonPath(List<INavMeshAtom> polygonPath, Location location)
polygonPath
- public void drawPath(IPathFuture<ILocated> path, Location color)
path
- public void drawOnlyBiggestLeaf()
public String toDebugString()
public String polygonToDebugString(int polygonNumber)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |