GLBVRender Class Reference

#include <GLBVRender.h>

Inheritance diagram for GLBVRender:

GLRender Render GRAObject List of all members.

Public Member Functions

 GLBVRender (int *stopFlag, bool useDisplayList=true, bool showSubBVs=false, bool showObjects=false, const Vector3 bvColor=Vector3(1.0, 1.0, 1.0), float bvTransp=0.5)
 ~GLBVRender ()
void setDepth (unsigned d)
void setShowSubVolumes (bool s=true)
void setShowObjects (bool s=true)
void setVolumesColor (const Vector3 &c)
void setVolumesAlpha (float a)
unsigned getDepth () const
bool getShowSubVolumes () const
bool getShowObjects () const
const Vector3 & getVolumesColor () const
float getVolumesAlpha () const
virtual void useDisplayList (bool use)
void clearBVDisplayList (void)
virtual void clearDisplayList (void)
virtual bool displayListUsed (void) const
virtual void renderScene (Shader &shader, FrameBuffer &fb, Camera &camera, Scene &scene)

Protected Member Functions

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

Protected Attributes

unsigned _depth
bool _showSubBVs
bool _showObjects
GLint _bvDisplayList
Diffuse _bvColor
Transparency _bvTransp
GLuint _displayList
bool _useDisplayList
int * _pStopFlag

Detailed Description

Render based on the OpenGL render. It searches the scene and renders bounding volumes transparently instead of or in addition to the original scene objects.

Definition at line 21 of file GLBVRender.h.


Constructor & Destructor Documentation

GLBVRender int *  stopFlag,
bool  useDisplayList = true,
bool  showSubBVs = false,
bool  showObjects = false,
const Vector3  bvColor = Vector3(1.0, 1.0, 1.0),
float  bvTransp = 0.5
[inline]
 

Constructor

Parameters:
stopFlag pointer to stop flag
useDisplayList whether to use display lists
showSubBV whether to show sub-volumes
showObjects whether to show scene objects
bvColor color of bounding volumes
bvTransp transparency of bounding volumes

Definition at line 53 of file GLBVRender.h.

~GLBVRender  )  [inline]
 

Destructor

Definition at line 70 of file GLBVRender.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 8 of file GLBVRender.cc.

References GLBVRender::_bvColor, GLBVRender::_bvDisplayList, GLBVRender::_bvTransp, GLBVRender::_depth, GLRender::_render(), GLBVRender::_showObjects, GLRender::_useDisplayList, Scene::root(), and Shader::setRenderedShape().

void clearBVDisplayList void   )  [inline]
 

Definition at line 130 of file GLBVRender.h.

virtual void clearDisplayList void   )  [inline, virtual]
 

Clear internal display list.

Reimplemented from GLRender.

Definition at line 136 of file GLBVRender.h.

References GLRender::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.

unsigned getDepth  )  const [inline]
 

Definition at line 119 of file GLBVRender.h.

bool getShowObjects  )  const [inline]
 

Definition at line 121 of file GLBVRender.h.

bool getShowSubVolumes  )  const [inline]
 

Definition at line 120 of file GLBVRender.h.

float getVolumesAlpha  )  const [inline]
 

Definition at line 123 of file GLBVRender.h.

const Vector3& getVolumesColor  )  const [inline]
 

Definition at line 122 of file GLBVRender.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().

void setDepth unsigned  d  )  [inline]
 

Sets depth level of the scene graph for BVs visualization

Parameters:
d depth

Definition at line 77 of file GLBVRender.h.

void setShowObjects bool  s = true  )  [inline]
 

Sets/unsets visualization of scene objects

Parameters:
s switch

Definition at line 97 of file GLBVRender.h.

void setShowSubVolumes bool  s = true  )  [inline]
 

Sets/unsets visualization of sub-volumes

Parameters:
s switch

Definition at line 87 of file GLBVRender.h.

void setVolumesAlpha float  a  )  [inline]
 

Sets BVs transarency

Parameters:
a transoarency [0, 1]

Definition at line 114 of file GLBVRender.h.

void setVolumesColor const Vector3 &  c  )  [inline]
 

Sets color of BVs

Parameters:
c color

Definition at line 104 of file GLBVRender.h.

virtual void useDisplayList bool  use  )  [inline, virtual]
 

Sets/unsets the usage of display list

Reimplemented from GLRender.

Definition at line 125 of file GLBVRender.h.

References GLRender::useDisplayList().


Member Data Documentation

Diffuse _bvColor [protected]
 

Definition at line 27 of file GLBVRender.h.

Referenced by GLBVRender::_render().

GLint _bvDisplayList [protected]
 

Definition at line 26 of file GLBVRender.h.

Referenced by GLBVRender::_render().

Transparency _bvTransp [protected]
 

Definition at line 28 of file GLBVRender.h.

Referenced by GLBVRender::_render().

unsigned _depth [protected]
 

Definition at line 23 of file GLBVRender.h.

Referenced by GLBVRender::_render().

GLuint _displayList [protected, inherited]
 

Definition at line 35 of file GLRender.h.

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

int* _pStopFlag [protected, inherited]
 

Definition at line 27 of file Render.h.

Referenced by RTRender::_render().

bool _showObjects [protected]
 

Definition at line 25 of file GLBVRender.h.

Referenced by GLBVRender::_render().

bool _showSubBVs [protected]
 

Definition at line 24 of file GLBVRender.h.

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().


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