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

#include <ucambase.h>

Inheritance diagram for UCamBase:
Inheritance graph

Public Member Functions

virtual void createVars ()
 
const char * getCamName ()
 
UCamDevBasegetDev ()
 
int getDevNum ()
 
virtual void gotNewImage (UImage *)
 
virtual void imageSizeChanged (double)
 
virtual void imgUpdated ()
 
virtual bool needNewPushData ()
 
void setTypeName (const char *newName)
 
void setVarPool (UVarPool *vpd)
 
 UCamBase (UCamDevBase *device)
 
virtual ~UCamBase ()
 

Protected Attributes

UCamDevBasedev
 
UVarPoolvars
 

Detailed Description

This class holds the camera device pointer and possibly related cameras that are to be synchronized with this camera.

    @author Christian Andersen <jca@oersted.dtu.dk>

Constructor & Destructor Documentation

UCamBase::UCamBase ( UCamDevBase device)

Constructor - and set the device driver

References dev, device, and UCamDevBase::setCam().

UCamBase::~UCamBase ( )
virtual

Destructor

Member Function Documentation

virtual void UCamBase::createVars ( )
inlinevirtual

Create locally maintained variables - if any

Reimplemented in UCamMounted, UCamRad, and UCamPush.

References setTypeName().

Referenced by UCamRad::createVars(), and setVarPool().

const char* UCamBase::getCamName ( )
inline

Set camera type name

References dev, and UCamDevBase::getCameraName().

UCamDevBase* UCamBase::getDev ( )
inline
int UCamBase::getDevNum ( )
inline

Get device number (as known by cam pool) for camera

References dev, and UCamDevBase::getDeviceNumber().

Referenced by UFunctionCamBase::getImage(), and UFuncPiCam::run().

virtual void UCamBase::gotNewImage ( UImage )
inlinevirtual

Got this new image.

NB! This function is called by the image read thread and should not do anything but copy the image to another buffer as needed, and no other major processing.

Reimplemented in UCamPush.

Referenced by UCamDevBase::gotNewImage().

virtual void UCamBase::imageSizeChanged ( double  )
inlinevirtual

Set the parameters derived from resolution, i.e. conversion matrix, radial error valeues etc. but at this level just the resolution factor.

Reimplemented in UCamRad.

Referenced by UCamDevBase::imageSizeChanged().

virtual void UCamBase::imgUpdated ( )
inlinevirtual

Image is updated now, note this in client handler

Reimplemented in UCamPush.

Referenced by UCamDevBase::imgUpdated().

virtual bool UCamBase::needNewPushData ( )
inlinevirtual

Request to test push commands for need of new data. If new data is needed then 'gotNewImage()' should be called.

Returns
true if data is needed.

Reimplemented in UCamPush.

Referenced by UCamDevBase::needNewPushData().

void UCamBase::setTypeName ( const char *  newName)

Set camera type name

References dev, and UCamDevBase::setTypeName().

Referenced by createVars(), UFuncPiCam::run(), and UFuncKinect::run().

void UCamBase::setVarPool ( UVarPool vpd)
inline

Set pointer to established var-pool structure for locally maintained variables

References createVars(), getDev(), UCamDevBase::setVarPool(), and vars.

Referenced by UCamPool::findDevices(), and UCamPool::makeDevice().

Member Data Documentation

UCamDevBase* UCamBase::dev
protected
UVarPool* UCamBase::vars
protected

Maximum number of related cameras to this device - mainly for stereo processing Related devices Number of available related cams Var pool structure for the globally available variables for this camera - i.e. position focallength etc.

Referenced by UCamPush::createVars(), UCamRad::createVars(), UCamMounted::createVars(), and setVarPool().


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