Documentation


animal::World Class Reference

#include <world.h>

List of all members.


Detailed Description

Abstract base class to represent the world of a 3D scene.

From this class, we can get the state of some elements of the world (for example, the camera's position and orientation). The class animal::Engine has a static pointer of the unique instance of the class animal::World. A non-pure virtual function will be added each time an animal::Engine needs an external information. A class inherited from animal::World will implement this function in a given architecture. See MainController (the GUI based on X3DTK, Qt and QGLViewer) which defines the unique animal::World as a X3DTK::Qt::QGLViewerWorld.

Definition at line 18 of file world.h.

Public Member Functions

 World ()
virtual ~World ()
virtual void getCameraPosition (float &, float &, float &)
 The parameters are the float x, y and z of the camera position.

virtual void getCameraOrientation (float &, float &, float &, float &)
 The parameters are the float x, y, z and angle of the camera axis and angle.


Constructor & Destructor Documentation

animal::World::World  )  [inline]
 

Definition at line 21 of file world.h.

virtual animal::World::~World  )  [inline, virtual]
 

Definition at line 22 of file world.h.


Member Function Documentation

virtual void animal::World::getCameraOrientation float &  ,
float &  ,
float &  ,
float & 
[inline, virtual]
 

The parameters are the float x, y, z and angle of the camera axis and angle.

Definition at line 27 of file world.h.

virtual void animal::World::getCameraPosition float &  ,
float &  ,
float & 
[inline, virtual]
 

The parameters are the float x, y and z of the camera position.

Definition at line 25 of file world.h.


The documentation for this class was generated from the following file:
Generated on Thu Dec 23 13:52:31 2004 by doxygen 1.3.6