AURobotServers  4
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
UGridBBoxes Class Reference

Public Member Functions

void clear ()
 clear box list More...
 
int filter (int minCellCnt, int maxDX, int maxDY, int maxZ, int minZ, int minX, int roofLimit, double minDens, int minDensCnt)
 filter boxes after size and hit-count More...
 
UGridBBoxgetBBox (int cluster)
 
int mergeOverlappingBBs (int maxdy, int allowedZdist)
 
void reduceToConvexFootprint ()
 
 UGridBBoxes ()
 constructor More...
 
 ~UGridBBoxes ()
 destructor More...
 

Public Attributes

UGridBBoxbb [MBB]
 box-list More...
 
int bbCnt
 number of boxes esatblished More...
 

Static Public Attributes

static const int MBB = 10000
 global variables More...
 

Detailed Description

list of bounding boxes

Constructor & Destructor Documentation

UGridBBoxes::UGridBBoxes ( )
inline

constructor

UGridBBoxes::~UGridBBoxes ( )
inline

destructor

Member Function Documentation

void UGridBBoxes::clear ( void  )
inline

clear box list

int UGridBBoxes::filter ( int  minCellCnt,
int  maxDX,
int  maxDY,
int  maxZ,
int  minZ,
int  minX,
int  roofLimit,
double  minDens,
int  minDensCnt 
)
inline

filter boxes after size and hit-count

References UGridBBox::filter(), and UGridBBox::valid.

UGridBBox* UGridBBoxes::getBBox ( int  cluster)
inline

find box based on this serial number

Parameters
clusterserial number
Returns
pointer to bounding box

References UGridBBox::clear(), and UGridBBox::serial.

int UGridBBoxes::mergeOverlappingBBs ( int  maxdy,
int  allowedZdist 
)
inline

make boxes larger by mergind boxes with overlap NB! not this merge should perhaps be repeated until no more reduce

References UGridBBox::hasOverlap().

void UGridBBoxes::reduceToConvexFootprint ( )
inline

reduce the footprint list of cell-points to a convex footprint, using the x,y coordinates only

References UGridBBox::reduceToConvexFootprint(), and UGridBBox::valid.

Member Data Documentation

UGridBBox* UGridBBoxes::bb[MBB]
int UGridBBoxes::bbCnt

number of boxes esatblished

Referenced by UResObj3d::do3dVoxels(), and UResObj3d::paintGndPlane().

const int UGridBBoxes::MBB = 10000
static

global variables


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