Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Enki::SbotCam Class Reference
[Interaction classes]

#include <SbotCam.h>

Inheritance diagram for Enki::SbotCam:

Enki::LocalInteraction List of all members.

Detailed Description

1D 360 circular camera for the Sbot, based on 2 180 CircularCam


Public Member Functions

 SbotCam (Sbot *owner, unsigned halfPixelCount)
 Constructor, r is the vision radius and owner is the Sbot the camera belongs to.
virtual ~SbotCam ()
 Destructor.
virtual void init ()
 Init at each step.
virtual void objectStep (double dt, PhysicalObject *po, World *w)
 Interact with object.
virtual void wallsStep (World *w)
 Interact with walls.
virtual void finalize (double dt)
 Finalize at each step.
void setFogConditions (bool useFog, double density=0.0, An::Color threshold=An::Color::black)
 Change the fog condition for this camera. If useFog is true, an exponential fog with density will be used. Additionally, a threshold can be applied on the resulting color.
void setRange (double range)
 Change the sight range of this interaction.
void setPixelOperationFunctor (PixelOperationFunctor *pixelOperationFunctor)
 Change the pixel operation functor.

Public Attributes

std::valarray< double > zbuffer
 zbuffer (array of size pixelCount of double)
std::valarray< An::Color > image
 Image (array of size pixelCount of Color).

Protected Attributes

CircularCam cam0
 Cameras doing the real job, first part.
CircularCam cam1
 Cameras doing the real job, second part.


The documentation for this class was generated from the following files:
Generated on Mon Oct 24 17:33:58 2005 for Enki by  doxygen 1.4.2