GLPhotonMapRender Class Reference

#include <GLPhotonMapRender.h>

Inheritance diagram for GLPhotonMapRender:

GLRender Render GRAObject List of all members.

Public Member Functions

 GLPhotonMapRender (int *stopFlag, int mode)
virtual void clearDisplayList (void)
virtual void useDisplayList (bool use)
virtual bool displayListUsed (void) const
virtual void renderScene (Shader &shader, FrameBuffer &fb, Camera &camera, Scene &scene)

Static Public Attributes

static const int GLOBAL_PHOTONS
static const int CAUSTIC_PHOTONS

Protected Member Functions

virtual void _render (Shader &shader, FrameBuffer &fb, Camera &camera, Scene &scene)

Protected Attributes

int _mode
GLuint _displayList
bool _useDisplayList
int * _pStopFlag

Detailed Description

Renderer for photon map visualization. It finds photon maps in scene and shows each individual photons as points in OpenGL.

Definition at line 17 of file GLPhotonMapRender.h.


Constructor & Destructor Documentation

GLPhotonMapRender int *  stopFlag,
int  mode
[inline]
 

Constructor

Parameters:
stopFlag pointer to stop flag
mode which photon maps show

Definition at line 44 of file GLPhotonMapRender.h.


Member Function Documentation

void _render Shader shader,
FrameBuffer fb,
Camera camera,
Scene scene
[protected, virtual]
 

Parameters:
shader shader
fb frame-buffer
camera camera
scene rendered scene

Reimplemented from GLRender.

Definition at line 15 of file GLPhotonMapRender.cc.

References GLRender::_displayList, GLPhotonMapRender::_mode, GLRender::_useDisplayList, GLPhotonMapRender::CAUSTIC_PHOTONS, GLPhotonMapRender::GLOBAL_PHOTONS, and Scene::root().

virtual void clearDisplayList void   )  [inline, virtual, inherited]
 

Clear internal display list.

Reimplemented in GLBVRender.

Definition at line 71 of file GLRender.h.

Referenced by GLBVRender::clearDisplayList().

virtual bool displayListUsed void   )  const [inline, virtual, inherited]
 

Returns:
true if display list is used, false otherwise

Definition at line 88 of file GLRender.h.

virtual void renderScene Shader shader,
FrameBuffer fb,
Camera camera,
Scene scene
[inline, virtual, inherited]
 

To re-implement the rendering method in derived classes use protected function _render() unless you know what you do.

Parameters:
shader shader
fb frame-buffer
camera camera
scene rendered scene

Definition at line 66 of file Render.h.

References Scene::root().

Referenced by GLIrradCacheRender::_render().

virtual void useDisplayList bool  use  )  [inline, virtual, inherited]
 

Sets/unsets the usage of display list

Reimplemented in GLBVRender.

Definition at line 80 of file GLRender.h.

Referenced by GLBVRender::useDisplayList().


Member Data Documentation

GLuint _displayList [protected, inherited]
 

Definition at line 35 of file GLRender.h.

Referenced by GLRender::_render(), GLPhotonMapRender::_render(), GLIrradCacheRender::_render(), and GLEnergyRender::_render().

int _mode [protected]
 

Definition at line 23 of file GLPhotonMapRender.h.

Referenced by GLPhotonMapRender::_render().

int* _pStopFlag [protected, inherited]
 

Definition at line 27 of file Render.h.

Referenced by RTRender::_render().

bool _useDisplayList [protected, inherited]
 

Definition at line 36 of file GLRender.h.

Referenced by GLRender::_render(), GLPhotonMapRender::_render(), GLIrradCacheRender::_render(), GLEnergyRender::_render(), and GLBVRender::_render().

const int CAUSTIC_PHOTONS [static]
 

Definition at line 20 of file GLPhotonMapRender.h.

Referenced by GLPhotonMapRender::_render().

const int GLOBAL_PHOTONS [static]
 

Definition at line 19 of file GLPhotonMapRender.h.

Referenced by GLPhotonMapRender::_render().


The documentation for this class was generated from the following files:
Generated on Tue Nov 21 15:11:43 2006 for gra by  doxygen 1.4.6