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

#include <uobstgrp.h>

Inheritance diagram for UObstHist:
Inheritance graph

Public Member Functions

UObstacleGroupgetGroup (int idx)
 
int getGrpsCnt ()
 
int getGrpsMaxCnt ()
 
UObstacleGroupgetNewGrp ()
 
void setGroupsCnt (int value)
 
 UObstHist ()
 
 ~UObstHist ()
 
- Public Member Functions inherited from UOnEvent
bool addEventHandler (UCallBack *object, Method methodToCall)
 
bool event (const char *interface, const char *dataType, void *dataPtr)
 
 UOnEvent ()
 
 ~UOnEvent ()
 

Static Public Attributes

static const int MAX_OBST_GRPS = 200
 

Protected Attributes

UObstacleGroupgrps [MAX_OBST_GRPS]
 
int grpsCnt
 
- Protected Attributes inherited from UOnEvent
Method method [MAX_CALL_BACKS]
 
UCallBackobj [MAX_CALL_BACKS]
 
int objCnt
 

Additional Inherited Members

- Public Types inherited from UOnEvent
typedef bool(UCallBack::* Method) (const char *interface, const char *dataType, void *data)
 
- Static Protected Attributes inherited from UOnEvent
static const int MAX_CALL_BACKS = 20
 

Detailed Description

Group of obstacles (just an array, not the full story as used in mmrd)

Author
Christian Andersen

Constructor & Destructor Documentation

UObstHist::UObstHist ( )

constructor

References grps, grpsCnt, and MAX_OBST_GRPS.

UObstHist::~UObstHist ( )

destructor

References grps, grpsCnt, and MAX_OBST_GRPS.

Member Function Documentation

UObstacleGroup* UObstHist::getGroup ( int  idx)
inline

Get one group

References grps.

Referenced by UClientFuncLaserGui::doRepaint(), and UClientFuncLaserGui::onEvent().

int UObstHist::getGrpsCnt ( )
inline

Get count of obst groups in hist

References grpsCnt.

Referenced by UClientFuncLaserGui::doRepaint(), and UClientFuncLaserGui::onEvent().

int UObstHist::getGrpsMaxCnt ( )
inline

Get maximum count of group buffers

References getNewGrp(), and MAX_OBST_GRPS.

UObstacleGroup * UObstHist::getNewGrp ( )

Get next obstacle group, and create if not created already

References grps, grpsCnt, and MAX_OBST_GRPS.

Referenced by getGrpsMaxCnt(), and UClientFuncObstGrp::handleObst().

void UObstHist::setGroupsCnt ( int  value)
inline

Get actual group count

References grpsCnt.

Referenced by UClientFuncObstGrp::handleObst().

Member Data Documentation

UObstacleGroup* UObstHist::grps[MAX_OBST_GRPS]
protected

Group of obstacles, i.e. set of polygons

Referenced by getGroup(), getNewGrp(), UObstHist(), and ~UObstHist().

int UObstHist::grpsCnt
protected

Number of groups loaded into obstGrps array

Referenced by getGrpsCnt(), getNewGrp(), setGroupsCnt(), UObstHist(), and ~UObstHist().

const int UObstHist::MAX_OBST_GRPS = 200
static

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