Interface, ktorý musia spĺňať všetky kresliace algoritmi More...
Public Member Functions | |
Stack< Point > | draw (Graphics g, Graph graf, Point start, Point end, int fieldSize) |
More... | |
Stack< Point > | drawIntoPolygon (Graphics g, Graph graf, Point start, Point end, Stack< Point > Polygon) |
More... | |
Interface, ktorý musia spĺňať všetky kresliace algoritmi
Stack<Point> Diplo.DrawAlgorithms.DrawInterface.draw | ( | Graphics | g, |
Graph | graf, | ||
Point | start, | ||
Point | end, | ||
int | fieldSize | ||
) |
Nájdenie cesty z bodu START do bodu END
g | Grafický komponent |
graf | Inštancia grafu |
start | Štart bod |
end | Koncový bod |
fieldSize | Veľkosť plochy pre vrchol |
Implemented in Diplo.DrawAlgorithms.AStar, and Diplo.DrawAlgorithms.Lee.
Stack<Point> Diplo.DrawAlgorithms.DrawInterface.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)
g | Grafický komponent |
graf | Inštancia grafu |
start | Štart bod |
end | Koncový bod |
Polygon | Poligon - Koridor |
Implemented in Diplo.DrawAlgorithms.Lee, and Diplo.DrawAlgorithms.AStar.