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

#include <uclientcams.h>

Public Member Functions

UClientCamDatagetCam (int idx)
 
UClientCamDatagetCamData (int device, bool mayCreate)
 
int getCamsCnt ()
 
int getCamsCntMax ()
 
 UClientCams ()
 
 ~UClientCams ()
 

Protected Attributes

UClientCamDatacams [MAX_CLIENT_CAMS]
 
int camsCnt
 

Detailed Description

Holds client information on camera status - like position and image size etc.

Author
Christian Andersen

Constructor & Destructor Documentation

UClientCams::UClientCams ( )

Constructor

References MAX_CLIENT_CAMS.

UClientCams::~UClientCams ( )

Destructor

Member Function Documentation

UClientCamData* UClientCams::getCam ( int  idx)
inline

Get cam mera device info with this index. NB! index range is not tested

Referenced by UResCamIfCam::gotNewData(), UNavPaint::paintCams(), and UResCamIfCam::snprint().

UClientCamData * UClientCams::getCamData ( int  device,
bool  mayCreate 
)

Get data structure with camera data. Returns NULL if device is not found (and not 'mayCreate) or if no more space for new devices.

References UClientCamData::device, MAX_CLIENT_CAMS, and UClientCamData::UClientCamData().

Referenced by UResCamIfCam::gotNewData(), and UClientFuncCam::handleCamGet().

int UClientCams::getCamsCnt ( )
inline

Currently available camera device count

Referenced by UNavPaint::paintCams(), and UResCamIfCam::snprint().

int UClientCams::getCamsCntMax ( )
inline

Get maximum number of camera devices

Member Data Documentation

UClientCamData* UClientCams::cams[MAX_CLIENT_CAMS]
protected

Camera data

int UClientCams::camsCnt
protected

Number of camera structures used


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