orxonox::Camera Class Reference

#include <src/orxonox/objects/worldentities/Camera.h>

Inheritance diagram for orxonox::Camera:

orxonox::StaticEntity orxonox::Tickable orxonox::WorldEntity orxonox::OrxonoxClass orxonox::BaseObject orxonox::Synchronisable orxonox::OrxonoxClass orxonox::OrxonoxClass

List of all members.

Public Member Functions

 Camera (BaseObject *creator)
bool getDrag () const
bool hasFocus ()
void releaseFocus ()
void requestFocus ()
void setConfigValues ()
 Function to collect the SetConfigValue-macro calls.
void setDrag (bool bDrag)
virtual void tick (float dt)
 Gets called every frame.
virtual ~Camera ()

Private Member Functions

void configvaluecallback_changedNearClipDistance ()
void removeFocus ()
void setFocus ()

Private Attributes

bool bDrag_
bool bHasFocus_
Ogre::Camera * camera_
Ogre::SceneNode * cameraNode_
float nearClipDistance_

Friends

class CameraManager


Constructor & Destructor Documentation

orxonox::Camera::Camera ( BaseObject creator  ) 

orxonox::Camera::~Camera (  )  [virtual]


Member Function Documentation

void orxonox::Camera::configvaluecallback_changedNearClipDistance (  )  [private]

References camera_, and nearClipDistance_.

Referenced by Camera(), and setConfigValues().

bool orxonox::Camera::getDrag (  )  const [inline]

bool orxonox::Camera::hasFocus (  )  [inline]

void orxonox::Camera::releaseFocus (  ) 

void orxonox::Camera::removeFocus (  )  [private]

what to do when camera loses focus (do not request focus in this function!!) this is called by the CameraManager singleton class to notify the camera

References bHasFocus_.

Referenced by orxonox::CameraManager::releaseFocus().

void orxonox::Camera::requestFocus (  ) 

void orxonox::Camera::setConfigValues (  ) 

Function to collect the SetConfigValue-macro calls.

Reimplemented from orxonox::OrxonoxClass.

References configvaluecallback_changedNearClipDistance(), nearClipDistance_, and SetConfigValue.

Referenced by Camera().

void orxonox::Camera::setDrag ( bool  bDrag  ) 

void orxonox::Camera::setFocus (  )  [private]

void orxonox::Camera::tick ( float  dt  )  [virtual]

Gets called every frame.

Parameters:
dt The time since the last frame in seconds

Implements orxonox::Tickable.

References bDrag_, cameraNode_, orxonox::WorldEntity::getWorldOrientation(), orxonox::WorldEntity::getWorldPosition(), SUPER, and orxonox::MT_Type::Vector3.


Friends And Related Function Documentation

friend class CameraManager [friend]


Member Data Documentation

bool orxonox::Camera::bDrag_ [private]

Referenced by Camera(), setDrag(), tick(), and ~Camera().

Referenced by Camera(), removeFocus(), and setFocus().

Ogre::Camera* orxonox::Camera::camera_ [private]

Ogre::SceneNode* orxonox::Camera::cameraNode_ [private]

Referenced by Camera(), setDrag(), tick(), and ~Camera().


The documentation for this class was generated from the following files:

Generated on Tue Jul 28 16:22:22 2009 for Orxonox by  doxygen 1.5.6