#include <SbotCam.h>
Inheritance diagram for Enki::SbotCam:

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. | |
1.4.2