Diplo
 All Classes Namespaces Functions Variables Properties
Public Member Functions | Public Attributes | List of all members
Diplo.Draw.Lee Class Reference

Lee argoritmus (nedkonceny, nepracuje spravne) More...

Inheritance diagram for Diplo.Draw.Lee:
Diplo.Draw.DrawInterface

Public Member Functions

Stack< Point > draw (Graphics g, Graph graf, Point start, Point end, int fieldSize)
  More...
 
void constructPath (int x, int y, int finishX, int finishY, Random r)
 Lee-Algoritmus (rekurizvne) hlada cestu. More...
 
bool nodeDetected (Graphics g, int x, int y)
 
Stack< Point > findPath (int x, int y, int finishX, int finishY)
 
Stack< Point > drawIntoPolygon (Graphics g, Graph graf, Point start, Point end, Stack< Point > Polygon)
  More...
 

Public Attributes

Stack< Point > path = new Stack<Point>()
 

Detailed Description

Lee argoritmus (nedkonceny, nepracuje spravne)

Member Function Documentation

void Diplo.Draw.Lee.constructPath ( int  x,
int  y,
int  finishX,
int  finishY,
Random  r 
)

Lee-Algoritmus (rekurizvne) hlada cestu.

Parameters
gGraficky komponent
xStartovný vrchol - súradnica X
yStartovný vrchol - súradnica Y
finishXStartovný vrchol - súradnica X
finishYStartovný vrchol - súradnica Y
Stack<Point> Diplo.Draw.Lee.draw ( Graphics  g,
Graph  graf,
Point  start,
Point  end,
int  fieldSize 
)

Nájdenie cesty z bodu START do bodu END

Parameters
gGrafický komponent
grafInštancia grafu
startŠtart bod
endKoncový bod
fieldSizeVeľkosť plochy pre vrchol
Returns
Cesta, množina bodov

Implements Diplo.Draw.DrawInterface.

Stack<Point> Diplo.Draw.Lee.drawIntoPolygon ( Graphics  g,
Graph  graf,
Point  start,
Point  end,
Stack< Point >  Polygon 
)

Nájdenie cesty z bodu START do bodu END. Pri hľadaní, cesta nemôže výjsť z poligónu (oblasti)

Parameters
gGrafický komponent
grafInštancia grafu
startŠtart bod
endKoncový bod
PolygonPoligon - Koridor
Returns
Cesta, množina bodov

Implements Diplo.Draw.DrawInterface.


The documentation for this class was generated from the following file: