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

Kresliaci algoritmus A* More...

Inheritance diagram for Diplo.DrawAlgorithms.AStar:
Diplo.DrawAlgorithms.DrawInterface

Public Member Functions

Stack< Point > drawIntoPolygon (Graphics g, Graph graf, Point start, Point end, Stack< Point > Polygon)
  More...
 
Stack< Point > draw (Graphics g, Graph graf, Point start, Point end, int fieldSize)
  More...
 

Public Attributes

int granul = 5
  More...
 

Detailed Description

Kresliaci algoritmus A*

Member Function Documentation

Stack<Point> Diplo.DrawAlgorithms.AStar.draw ( Graphics  g,
Graph  graf,
Point  start,
Point  end,
int  fieldSize 
)

Hľadanie cesty pomocou A*, cesta nemôže výjsť z poligónu (oblasti)

Parameters
gGrafický komponent
grafInštancia grafu
startŠtart bod
endKoncový bod
fieldSizeVeľkost
Returns
Cesta, množina bodov

Implements Diplo.DrawAlgorithms.DrawInterface.

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

Hľadanie cesty pomocou A*

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

Implements Diplo.DrawAlgorithms.DrawInterface.

Member Data Documentation

int Diplo.DrawAlgorithms.AStar.granul = 5

Určuje granularitu pri hľadaní možných susedov. Čím je parameter menší, tým je cesta kvalitnejšia (hladšia) ale zároveň sa vyžaduje viac výpočtov pri hľadaní cesty.


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