Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes | Private Types
jafar::lgl::PositionManager Class Reference

Class that take care position management its algorithms reason over position instead of raster cells or clusters. More...


Detailed Description

Class that take care position management its algorithms reason over position instead of raster cells or clusters.

Definition at line 40 of file PositionManager.hpp.

#include <PositionManager.hpp>

List of all members.

Public Member Functions

 PositionManager (GeoData *_geodata, jafar::lgl::Quadtree< double, GeoData > *_qtree)
 Constructor for the position Manager.
bool isAtCenter (const NavLocation &loc) const
bool isAtEdge (const NavLocation &loc) const
bool isAtBorder (const NavLocation &loc) const
bool getGEnterPos (const NavLocation &loc, std::vector< NavLocation > &enterLocs) const
 Get the enter positions to the nav graph of a given position inside the position map with the decomposition decomp.
bool getAdjRasterCells (const NavLocation &loc, std::vector< RasterCellIndex > &cells) const
bool getAdjClusters (const NavLocation &loc, std::vector< RasterCellIndex > &clusters) const
bool getTopLeftRasterCell (const NavLocation &loc, RasterCellIndex &cell)
bool getTopLeftCluster (const NavLocation &loc, RasterCellIndex &cell)
bool inSameCluster (const NavLocation &loc1, const NavLocation &loc2, RasterCellIndex &clusterRoot)
bool getCluster (const NavLocation &loc1, const NavLocation &loc2, RasterRect &cluster)
 Return the cluster in which lays the edge between loc1 and loc2.
bool getCluster (const NavLocation &loc1, const NavLocation &loc2, DecompCluster **cluster)
 Return the decomp cluster in which lays the edge between loc1 and loc2.
bool getCluster (const RasterCellIndex &clusterRoot, DecompCluster **cluster)
bool getClusterUnordered (const NavLocation &loc, DecompCluster **cluster)
 Returns the decomposition cluster for one location.

Protected Attributes

RasterRect rect
 Main map borders, main global rectangle, everything-container in terms of position indexes.
PosMap pos
GeoDatageodata
Quadtree< double, GeoData > * quadtree

Private Types

typedef FlexGrid< PosFeaturePosMap

Constructor & Destructor Documentation

Constructor for the position Manager.


Member Function Documentation

bool jafar::lgl::PositionManager::getCluster ( const NavLocation loc1,
const NavLocation loc2,
RasterRect cluster 
)

Return the cluster in which lays the edge between loc1 and loc2.

This cluster is represented by a rectangle zone on which borders lay the two locations.

Parameters:
loc1Source position of the edge we are looking for
loc2Target position of the edge we are looking for
clusteroutput of this function, the corresponding raster rectangle
bool jafar::lgl::PositionManager::getCluster ( const NavLocation loc1,
const NavLocation loc2,
DecompCluster **  cluster 
)

Return the decomp cluster in which lays the edge between loc1 and loc2.

This cluster is a leaf of the quadtree decomposition structure. Data can be updated directly inside.

Parameters:
loc1Source position of the edge we are looking for
loc2Target position of the edge we are looking for
clusteroutput of this function, the pointer to the corresponding DecompCluster

Returns the decomposition cluster for one location.

This function should not be used to try to build edges. It is only intended for information pulling. In the returned decomposition cluster the user can find the associated terrain state but it is not garanteed on which side of the location the information is pulled as it depends on how the land decomposition

bool jafar::lgl::PositionManager::getGEnterPos ( const NavLocation loc,
std::vector< NavLocation > &  enterLocs 
) const

Get the enter positions to the nav graph of a given position inside the position map with the decomposition decomp.

if this position is already inside the graph then do nothing


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:41 for Jafar by doxygen 1.7.6.1
LAAS-CNRS