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

ONE::scene::CameraManager Class Reference

Inheritance diagram for ONE::scene::CameraManager:

Inheritance graph
[legend]
List of all members.

Public Types

enum  {
  SIMPLECHASECAM = 436356, SIMPLEFLYCAM, CHASECAM, FLYCAM,
  FREELOOKCHASECAM
}
enum  { FORWARD = 0, BACKWARD, LEFT, RIGHT }
typedef ControlDispatcher Controller
 defines the Controller class
typedef ControllerCP
 pointer to Controller

Public Member Functions

void addController (const CP &)
 adds a controller
void calculateTargetPos (Vector3 &pos, float dist)
 CameraManager ()
void clearControllers ()
 registers this from all controllers.
GCamera * getActiveCamera ()
virtual void * getAddress ()
virtual int getRegTypeID ()
ModelEntitygetTarget ()
virtual void onCollision (dContact contacts[ONE::physic::ODEWorld::MAX_CONTACTS], int &numContacts)
 collision callback for physics system gets called on collision. -> collision response
void processControlEvent (ControlEvent &e)
void removeController (const CP &)
 removes a controller
void renderDebug (RenderDevice *rd)
void resetCamera ()
void setActiveCamera (GCamera *c)
void setCamera (Vector3 pos, Vector3 target)
void setMode (int i)
void setTarget (ModelEntity *m)
void shareControllers (Controlled *peer)
 shares the Controller s controlling this object with peer
void transferControllers (Controlled *peer)
 transfers the Controller s controlling this object to peer
void update (float dt)
void updateByMode (float dt, CoordinateFrame &coordFrame)

Static Public Member Functions

static void destroyInstance ()
 may be used to manually destroy the singleton instance
static CameraManagergetInstance ()
 accesses the singleton instance
static int getMaxInterpenetrationIndex (dContact contacts[ONE::physic::ODEWorld::MAX_CONTACTS], int numContacts)
static int getStaticRegTypeID ()
static bool isActive ()
 checks if the singleton is active
static bool isDestroyed ()
 checks if the singleton is destroyed
static bool isVirgin ()
 checks if the singleton has not been initialized
static void setPriority (unsigned short)
 sets this singleton's shutdown priority
static void setStaticRegTypeID (int id)

Public Attributes

float NEARPLANE

Protected Types

typedef util::OrderedAutomatic<
CameraManager
Friendly

Protected Member Functions

 Singleton ()

Static Protected Member Functions

static void destroyedError ()
static void initInstance ()

Static Protected Attributes

static int typeID

Member Typedef Documentation

typedef ControlDispatcher ONE::util::Controlled::Controller [inherited]
 

defines the Controller class

typedef Controller* ONE::util::Controlled::CP [inherited]
 

pointer to Controller

typedef util::OrderedAutomatic <CameraManager > ONE::util::Singleton< CameraManager , util::OrderedAutomatic >::Friendly [protected, inherited]
 

subclasses should declare this type their friend in order to allow access to ctor and dtor, as those should generally be made private.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
SIMPLECHASECAM 
SIMPLEFLYCAM 
CHASECAM 
FLYCAM 
FREELOOKCHASECAM 

anonymous enum
 

Enumerator:
FORWARD 
BACKWARD 
LEFT 
RIGHT 


Constructor & Destructor Documentation

ONE::scene::CameraManager::CameraManager  ) 
 


Member Function Documentation

void ONE::util::Controlled::addController const CP  )  [inherited]
 

adds a controller

This object is automatically registered with the controller.

void ONE::scene::CameraManager::calculateTargetPos Vector3 &  pos,
float  dist
 

void ONE::util::Controlled::clearControllers  )  [inherited]
 

registers this from all controllers.

static void ONE::util::OrderedAutomatic< CameraManager >::destroyedError  )  [static, protected, inherited]
 

static void ONE::util::OrderedAutomatic< CameraManager >::destroyInstance  )  [static, inherited]
 

may be used to manually destroy the singleton instance

If this function is not called, the instance is destroyed automatically during shutdown.

GCamera* ONE::scene::CameraManager::getActiveCamera  ) 
 

virtual void* ONE::physic::Collideable::getAddress  )  [virtual, inherited]
 

Reimplemented in ONE::scene::SolidEntity.

static CameraManager * ONE::util::Singleton< CameraManager , util::OrderedAutomatic >::getInstance  )  [static, inherited]
 

accesses the singleton instance

The exact operation executed by calling this function is determined by the singleton policies.

Returns:
a pointer to the singleton instance

static int ONE::physic::Collideable::getMaxInterpenetrationIndex dContact  contacts[ONE::physic::ODEWorld::MAX_CONTACTS],
int  numContacts
[static, inherited]
 

virtual int ONE::physic::Collideable::getRegTypeID  )  [inline, virtual, inherited]
 

Implements ONE::util::RegisterableType< Collideable >.

Reimplemented in ONE::physic::Body, ONE::physic::ODEGeom, ONE::physic::SimpleODEBody, ONE::scene::ActorEntity, and ONE::scene::SolidEntity.

static int ONE::physic::Collideable::getStaticRegTypeID  )  [inline, static, inherited]
 

Reimplemented in ONE::physic::Body, ONE::physic::ODEGeom, ONE::physic::SimpleODEBody, ONE::scene::ActorEntity, and ONE::scene::SolidEntity.

ModelEntity* ONE::scene::CameraManager::getTarget  ) 
 

static void ONE::util::OrderedAutomatic< CameraManager >::initInstance  )  [static, protected, inherited]
 

static bool ONE::util::Singleton< CameraManager , util::OrderedAutomatic >::isActive  )  [static, inherited]
 

checks if the singleton is active

Returns:
if the singleton is instantiated

static bool ONE::util::Singleton< CameraManager , util::OrderedAutomatic >::isDestroyed  )  [static, inherited]
 

checks if the singleton is destroyed

This function returns true if an instance existed and was destroyed. Note that in some cases it is possible to revive a singleton.

Returns:
if the singleton is destroyed

static bool ONE::util::Singleton< CameraManager , util::OrderedAutomatic >::isVirgin  )  [static, inherited]
 

checks if the singleton has not been initialized

A singleton is not initialized if no instance exists and no instance has been destroyed.

Returns:
if the singleton is untouched

virtual void ONE::scene::CameraManager::onCollision dContact  contacts[ONE::physic::ODEWorld::MAX_CONTACTS],
int &  numContacts
[virtual]
 

collision callback for physics system gets called on collision. -> collision response

Reimplemented from ONE::physic::Collideable.

void ONE::scene::CameraManager::processControlEvent ControlEvent e  )  [virtual]
 

Implements ONE::util::ControlListener.

void ONE::util::Controlled::removeController const CP  )  [inherited]
 

removes a controller

Tis object is automatically de-registered from the controller.

void ONE::scene::CameraManager::renderDebug RenderDevice *  rd  ) 
 

void ONE::scene::CameraManager::resetCamera  ) 
 

void ONE::scene::CameraManager::setActiveCamera GCamera *  c  ) 
 

void ONE::scene::CameraManager::setCamera Vector3  pos,
Vector3  target
 

void ONE::scene::CameraManager::setMode int  i  ) 
 

static void ONE::util::OrderedAutomatic< CameraManager >::setPriority unsigned  short  )  [static, inherited]
 

sets this singleton's shutdown priority

The higher the priority, the earlier the instance will be destroyed during shutdown. If the priority is changed, the highest given priority will be used.

static void ONE::physic::Collideable::setStaticRegTypeID int  id  )  [inline, static, inherited]
 

Reimplemented in ONE::physic::Body, ONE::physic::ODEGeom, ONE::physic::SimpleODEBody, ONE::scene::ActorEntity, and ONE::scene::SolidEntity.

void ONE::scene::CameraManager::setTarget ModelEntity m  ) 
 

void ONE::util::Controlled::shareControllers Controlled peer  )  [inherited]
 

shares the Controller s controlling this object with peer

The controllers stay in control of this object.

ONE::util::Singleton< CameraManager , util::OrderedAutomatic >::Singleton  )  [protected, inherited]
 

void ONE::util::Controlled::transferControllers Controlled peer  )  [inherited]
 

transfers the Controller s controlling this object to peer

The controllers no longer control this object.

void ONE::scene::CameraManager::update float  dt  ) 
 

void ONE::scene::CameraManager::updateByMode float  dt,
CoordinateFrame &  coordFrame
 


Member Data Documentation

float ONE::scene::CameraManager::NEARPLANE
 

int ONE::util::RegisterableType< Collideable >::typeID [static, protected, inherited]
 


Generated on Wed Sep 7 19:03:28 2005 for ONEngine by  doxygen 1.4.3