Public Types | Public Member Functions | Protected Attributes
GridMap Class Reference

#include <GridMap.h>

Inheritance diagram for GridMap:
Inheritance graph
[legend]

List of all members.

Public Types

typedef NodeGridCell Cell
typedef std::vector< int > NodeIndices
typedef OcTree::NodePointers NodePointers
typedef std::vector< NodePointersNodePointersVec
typedef std::vector< int > PointIndices
typedef std::vector< unsigned int > uints

Public Member Functions

void blindPopulate (Vec3 pos)
template<typename PointCloudType >
void blindPopulate (const PointIndices &pointIndices, const PointCloudType &pointCloud)
void calculateStartPos ()
void checkNodesAgainstGridConnection (NodeIndices &outNodeIndices, const NodePointers &inNodeCandidates, float newCellSize, unsigned int minNodesCount) const
bool checkPointConnection (const Vec3 &p, const int &connectionNeighbors) const
void clear ()
void clearIndices ()
void gatherNodesInCC (NodePointers &outputNodes, const ConnectedComponent &conComp, const NodePointers &octreeNodes) const
void gatherNodesInCC (NodeIndices &outputIndices, const ConnectedComponent &conComp) const
void getConnectedComponentsAndNotConnectedNodes (NodePointersVec &nodesInCC, const NodePointers &inputOctreeNodes, float cellSize, unsigned int minPlaneNodes, unsigned int minCCNodes, NodePointers *notConnectedNodesOutput=NULL)
void getNewExtremes (float &xMinOut, float &xMaxOut, float &yMinOut, float &yMaxOut, unsigned int &xOff, unsigned int &xAdd, unsigned int &yOff, unsigned int &yAdd, float xMinIn, float xMaxIn, float yMinIn, float yMaxIn, float stepsize) const
const IndicesgetStartPos () const
 GridMap ()
 GridMap (const Plane3D &plane, float xMin, float xMax, float yMin, float yMax, float cellSize)
 GridMap (const GridMap &gridMap, float xMin, float xMax, float yMin, float yMax, unsigned int xOff, unsigned int xAdd, unsigned int yOff, unsigned int yAdd, float cellSize)
bool isPopulated (Vec3 pos)
void populate (const unsigned int &index, Vec3 pos)
template<typename PointCloudType >
void populate (const PointIndices &pointIndices, const PointCloudType &pointCloud)
void populate (const NodePointers &nodePointers)
void print () const
void print (const std::pair< unsigned int, unsigned int > &coords) const
void pushPopulatedUnvisitedNeighbors (std::queue< std::pair< unsigned int, unsigned int > > &neighbors, const unsigned int &width, const unsigned int &height) const
void startConnectedComponentAt (ConnectedComponent &ccc, const Indices &startPos)

Protected Attributes

Indices mGridCCStartPos

Detailed Description

Definition at line 47 of file GridMap.h.


Member Typedef Documentation

Definition at line 49 of file GridMap.h.

typedef std::vector<int> GridMap::NodeIndices

Definition at line 53 of file GridMap.h.

Definition at line 51 of file GridMap.h.

typedef std::vector<NodePointers> GridMap::NodePointersVec

Definition at line 52 of file GridMap.h.

typedef std::vector<int> GridMap::PointIndices

Definition at line 50 of file GridMap.h.

typedef std::vector<unsigned int> GridMap::uints

Definition at line 54 of file GridMap.h.


Constructor & Destructor Documentation

GridMap::GridMap ( ) [inline]

Definition at line 57 of file GridMap.h.

GridMap::GridMap ( const Plane3D plane,
float  xMin,
float  xMax,
float  yMin,
float  yMax,
float  cellSize 
) [inline]

Definition at line 59 of file GridMap.h.

GridMap::GridMap ( const GridMap gridMap,
float  xMin,
float  xMax,
float  yMin,
float  yMax,
unsigned int  xOff,
unsigned int  xAdd,
unsigned int  yOff,
unsigned int  yAdd,
float  cellSize 
)

Definition at line 41 of file GridMap.cpp.


Member Function Documentation

void GridMap::blindPopulate ( Vec3  pos) [inline]

Definition at line 84 of file GridMap.h.

template<typename PointCloudType >
void GridMap::blindPopulate ( const PointIndices pointIndices,
const PointCloudType &  pointCloud 
)

Definition at line 139 of file GridMap.h.

Definition at line 331 of file GridMap.cpp.

void GridMap::checkNodesAgainstGridConnection ( NodeIndices outNodeIndices,
const NodePointers inNodeCandidates,
float  newCellSize,
unsigned int  minNodesCount 
) const

Definition at line 199 of file GridMap.cpp.

bool GridMap::checkPointConnection ( const Vec3 p,
const int &  connectionNeighbors 
) const [inline]

Definition at line 163 of file GridMap.h.

void GridMap::clear ( ) [inline]

Definition at line 155 of file GridMap.h.

void GridMap::clearIndices ( ) [inline]

Definition at line 147 of file GridMap.h.

void GridMap::gatherNodesInCC ( NodePointers outputNodes,
const ConnectedComponent conComp,
const NodePointers octreeNodes 
) const

Definition at line 231 of file GridMap.cpp.

void GridMap::gatherNodesInCC ( NodeIndices outputIndices,
const ConnectedComponent conComp 
) const

Definition at line 244 of file GridMap.cpp.

void GridMap::getConnectedComponentsAndNotConnectedNodes ( NodePointersVec nodesInCC,
const NodePointers inputOctreeNodes,
float  cellSize,
unsigned int  minPlaneNodes,
unsigned int  minCCNodes,
NodePointers notConnectedNodesOutput = NULL 
)

Definition at line 256 of file GridMap.cpp.

void GridMap::getNewExtremes ( float &  xMinOut,
float &  xMaxOut,
float &  yMinOut,
float &  yMaxOut,
unsigned int &  xOff,
unsigned int &  xAdd,
unsigned int &  yOff,
unsigned int &  yAdd,
float  xMinIn,
float  xMaxIn,
float  yMinIn,
float  yMaxIn,
float  stepsize 
) const

Definition at line 294 of file GridMap.cpp.

const Indices& GridMap::getStartPos ( ) const [inline]

Definition at line 71 of file GridMap.h.

bool GridMap::isPopulated ( Vec3  pos) [inline]

Definition at line 68 of file GridMap.h.

void GridMap::populate ( const unsigned int &  index,
Vec3  pos 
) [inline]

Definition at line 77 of file GridMap.h.

template<typename PointCloudType >
void GridMap::populate ( const PointIndices pointIndices,
const PointCloudType &  pointCloud 
)

Definition at line 122 of file GridMap.h.

void GridMap::populate ( const NodePointers nodePointers) [inline]

Definition at line 130 of file GridMap.h.

void GridMap::print ( ) const

Definition at line 142 of file GridMap.cpp.

void GridMap::print ( const std::pair< unsigned int, unsigned int > &  coords) const

Definition at line 154 of file GridMap.cpp.

void GridMap::pushPopulatedUnvisitedNeighbors ( std::queue< std::pair< unsigned int, unsigned int > > &  neighbors,
const unsigned int &  width,
const unsigned int &  height 
) const

Definition at line 86 of file GridMap.cpp.

void GridMap::startConnectedComponentAt ( ConnectedComponent ccc,
const Indices startPos 
)

Definition at line 174 of file GridMap.cpp.


Member Data Documentation

Definition at line 116 of file GridMap.h.


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


structure_coloring_fkie
Author(s): Bastian Gaspers
autogenerated on Sun Jan 5 2014 11:38:09