Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

kerosin::RenderControl Class Reference

SimControlNode that renders the current scene and pumps the SDL event loop at the end of each simulation cycle, counting the total number of frames rendered. More...

#include <rendercontrol.h>

Inheritance diagram for kerosin::RenderControl:

Inheritance graph
[legend]
Collaboration diagram for kerosin::RenderControl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RenderControl ()
virtual ~RenderControl ()
int GetFramesRendered ()
 returns the total number of rendered frames
virtual void EndCycle ()
 renders the scene at the end of each simulation cycle

Protected Member Functions

virtual void OnLink ()
 This method is called, when the hierarchy object has been linked to a parent.
virtual void OnUnlink ()
 This rountine is called, before the hierarchy object is removed from the parent.
void RenderCustom ()

Protected Attributes

boost::shared_ptr< kerosin::RenderServermRenderServer
 cached reference to the RenderServer
boost::shared_ptr< kerosin::OpenGLServermOpenGLServer
 cached reference to the OpenGLServer
int mFramesRendered
 total frames rendered

Detailed Description

SimControlNode that renders the current scene and pumps the SDL event loop at the end of each simulation cycle, counting the total number of frames rendered.

Definition at line 34 of file rendercontrol.h.


Constructor & Destructor Documentation

RenderControl::RenderControl  ) 
 

Definition at line 32 of file rendercontrol.cpp.

References mFramesRendered.

RenderControl::~RenderControl  )  [virtual]
 

Definition at line 37 of file rendercontrol.cpp.


Member Function Documentation

void RenderControl::EndCycle  )  [virtual]
 

renders the scene at the end of each simulation cycle

Reimplemented from oxygen::SimControlNode.

Definition at line 85 of file rendercontrol.cpp.

References mFramesRendered, mOpenGLServer, mRenderServer, and RenderCustom().

Here is the call graph for this function:

int RenderControl::GetFramesRendered  ) 
 

returns the total number of rendered frames

Definition at line 96 of file rendercontrol.cpp.

References mFramesRendered.

void RenderControl::OnLink  )  [protected, virtual]
 

This method is called, when the hierarchy object has been linked to a parent.

At that point, traversal can commence. It can be overridden to support custom 'link' behavior.

Reimplemented from zeitgeist::Leaf.

Definition at line 41 of file rendercontrol.cpp.

References zeitgeist::Object::GetCore(), zeitgeist::Object::GetLog(), mOpenGLServer, and mRenderServer.

Here is the call graph for this function:

void RenderControl::OnUnlink  )  [protected, virtual]
 

This rountine is called, before the hierarchy object is removed from the parent.

It can be overridden to support custom 'unlink' behavior.

Reimplemented from zeitgeist::Leaf.

Definition at line 62 of file rendercontrol.cpp.

References mOpenGLServer, and mRenderServer.

void RenderControl::RenderCustom  )  [protected]
 

Definition at line 68 of file rendercontrol.cpp.

Referenced by EndCycle().


Member Data Documentation

int kerosin::RenderControl::mFramesRendered [protected]
 

total frames rendered

Definition at line 60 of file rendercontrol.h.

Referenced by EndCycle(), GetFramesRendered(), and RenderControl().

boost::shared_ptr<kerosin::OpenGLServer> kerosin::RenderControl::mOpenGLServer [protected]
 

cached reference to the OpenGLServer

Definition at line 57 of file rendercontrol.h.

Referenced by EndCycle(), OnLink(), and OnUnlink().

boost::shared_ptr<kerosin::RenderServer> kerosin::RenderControl::mRenderServer [protected]
 

cached reference to the RenderServer

Definition at line 54 of file rendercontrol.h.

Referenced by EndCycle(), OnLink(), and OnUnlink().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:43:22 2006 for rcssserver3d by  doxygen 1.4.4