Go to the documentation of this file.
40 #ifndef MINIMALSECTORABSTRACTION_H
41 #define MINIMALSECTORABSTRACTION_H
100 unsigned int &x,
unsigned int &y)
const;
101 void GetNeighbors(
unsigned int sector,
unsigned int region,
102 std::vector<tempEdgeData> &edges)
const;
112 int xSector,
int ySector,
113 std::vector<tempEdgeData> &edges);
116 int startIndex,
int startOffset,
117 std::vector<int> &targetRegion,
118 int tarGetIndex,
int targetOffset,
119 std::vector<tempEdgeData> &edges,
125 int x,
int y,
int label);
128 std::vector<int> &area,
129 std::vector<tempEdgeData> &edges);
133 std::vector<int> &parents,
134 int mapXOffset,
int mapYOffset);
136 int sx,
int sy,
double limit);
146 std::vector<std::vector<int> >
areas;
int GetSector(int x, int y)
MinimalSectorAbstraction::GetSector()
std::vector< std::vector< double > > regionError
void ComputePotentialMemorySavings()
MinimalSectorAbstraction::ComputePotentialMemorySavings()
bool operator==(const tempEdgeData &x, const tempEdgeData &y)
void OpenGLDraw()
MinimalSectorAbstraction::OpenGLDraw()
void StoreSectorInMemory(sectorInfo &si, std::vector< int > &area, std::vector< tempEdgeData > &edges)
MinimalSectorAbstraction::StoreSectorInMemory()
MinimalSectorAbstraction.
void GetEdges(std::vector< std::vector< int > > &areas, int xSector, int ySector, std::vector< tempEdgeData > &edges)
MinimalSectorAbstraction::GetEdges()
uint8_t GetAbstractLocation(std::vector< int > area, int value)
MinimalSectorAbstraction::GetAbstractLocation()
void InitializeOptimization()
MinimalSectorAbstraction::InitializeOptimization()
void GetEdgeHelper(std::vector< int > &startRegion, int startIndex, int startOffset, std::vector< int > &targetRegion, int tarGetIndex, int targetOffset, std::vector< tempEdgeData > &edges, int direction)
MinimalSectorAbstraction::GetEdgeHelper()
int GetAbstractionBytesUsed()
MinimalSectorAbstraction(Map *map, int sectorSize)
MinimalSectorAbstraction::MinimalSectorAbstraction()
int FindParentRegion(int startLoc, std::vector< int > &parents, int mapXOffset, int mapYOffset)
MinimalSectorAbstraction::FindParentRegion()
void GetXYLocation(unsigned int sector, unsigned int region, unsigned int &x, unsigned int &y) const
MinimalSectorAbstraction::GetXYLocation()
bool PerformOneOptimizationStep()
MinimalSectorAbstraction::PerformOneOptimizationStep()
int GetRegion(int x, int y)
MinimalSectorAbstraction::GetRegion()
void LabelRegion(std::vector< int > &area, int x, int y, int label)
MinimalSectorAbstraction::LabelRegion()
std::vector< std::vector< int > > areas
void MoveRegionCenter(int sector, int region)
MinimalSectorAbstraction::MoveRegionCenter()
int GetSectorRegions(std::vector< int > &area, int absXSector, int absYSector)
MinimalSectorAbstraction::GetSectorRegions()
std::vector< sectorInfo > sectors
void OptimizeRegionLocations()
MinimalSectorAbstraction::OptimizeRegionLocations()
std::vector< uint8_t > memory
const int sectorOffsetBits
extern int sectorSize;
void Draw(Graphics::Display &display) const
uint8_t GetAbstractEdge(tempEdgeData &data)
MinimalSectorAbstraction::GetAbstractEdge()
int GetAdjacentSector(unsigned int sector, int direction)
MinimalSectorAbstraction::GetAdjacentSector()
double GetRegionError(int fromSector, int fromRegion, int sx, int sy, double limit)
MinimalSectorAbstraction::GetRegionError()
void ResetAbstractCenter(int sector, int region)
MinimalSectorAbstraction::ResetAbstractCenter()
void GetNeighbors(unsigned int sector, unsigned int region, std::vector< tempEdgeData > &edges) const
MinimalSectorAbstraction::GetNeighbors()
void BuildAbstraction()
MinimalSectorAbstraction::BuildAbstraction()
A tile-based representation of the world.