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

EnkiViewer Class Reference

#include <EnkiViewer.h>

Inheritance diagram for EnkiViewer:

Viewer VisionEnkiViewer List of all members.

Detailed Description

A viewer that draw Enki worlds Warning: not very clean hack.


Public Member Functions

 EnkiViewer (const Enki::World *w, bool recVideo=false, int sideBarWidth=0)
 Constructor, use world w.
virtual ~EnkiViewer ()
 Destructor, do not touch world.

Protected Member Functions

virtual void displayViewer (int w, int h)
 Draw everything.
virtual void displayWorld (int x, int y, int w, int h)
 Draw the world content.
virtual void displaySideBar (int x, int y, int w, int h)
 Draw the side bar content, by default do nothing.
void drawIRSensors (int bottom, const Enki::Alice *owner, int which)
 Draw Alice's IR sensors.
void drawCameraRays (int bottom, const Enki::Alice *owner)
 Draw Alice's camera.

Protected Attributes

const Enki::World * world
 pointer to world in Enki
Ishtar::Variable< double > scale
 scaling factor of the world (pixel per cm in Enki)
int sideBarWidth
 width of the sidebar (used by subclasses to draw additional informations)


The documentation for this class was generated from the following files:
Generated on Mon Oct 24 17:38:26 2005 for Teem by  doxygen 1.4.2