GpuThesis::VolumeRenderer Class Reference

#include <VolumeRenderer.h>

Inheritance diagram for GpuThesis::VolumeRenderer:

GpuThesis::RayMarcher GpuThesis::SimpleVolumeRenderer List of all members.

Public Member Functions

 VolumeRenderer (const Math::BoundingBox &box)
void render ()
virtual OpenGL::IoTextureSetgetTextureSet ()=0
void setBoundingBox (Math::BoundingBox box)
Math::BoundingBox getBoundingBox () const
void setDrawBoundingBox (bool drawBoundingBox)
bool getDrawBoundingBox () const
virtual void setStepSize (float stepSize)=0
virtual float getStepSize () const =0
virtual void compute ()

Detailed Description

Base class for volume renderers.


Constructor & Destructor Documentation

GpuThesis::VolumeRenderer::VolumeRenderer const Math::BoundingBox &  box  ) 
 

Initialize the volume renderer with the given bounding box.

Parameters:
box the bounding box.


Member Function Documentation

virtual void GpuThesis::VolumeRenderer::compute  )  [inline, virtual]
 

Perform per-frame computations.

Reimplemented in GpuThesis::RayMarcher.

Math::BoundingBox GpuThesis::VolumeRenderer::getBoundingBox  )  const
 

Get the bounding box.

Returns:
the bounding box.

bool GpuThesis::VolumeRenderer::getDrawBoundingBox  )  const
 

Check whether bounding box drawing is active.

Returns:
whether to draw the bounding box.

virtual float GpuThesis::VolumeRenderer::getStepSize  )  const [pure virtual]
 

Get the step size of the volume renderer.

Returns:
the step size.

Implemented in GpuThesis::RayMarcher, and GpuThesis::SimpleVolumeRenderer.

virtual OpenGL::IoTextureSet* GpuThesis::VolumeRenderer::getTextureSet  )  [pure virtual]
 

Get the internal texture set (for debugging).

Returns:
the internal texture set.

Implemented in GpuThesis::RayMarcher, and GpuThesis::SimpleVolumeRenderer.

void GpuThesis::VolumeRenderer::render  ) 
 

Perform the volume rendering.

void GpuThesis::VolumeRenderer::setBoundingBox Math::BoundingBox  box  ) 
 

Set the bounding box.

Parameters:
box the new bounding box.

void GpuThesis::VolumeRenderer::setDrawBoundingBox bool  drawBoundingBox  ) 
 

Set whether to draw the bounding box.

Parameters:
drawBoundingBox whether to draw the bounding box.

virtual void GpuThesis::VolumeRenderer::setStepSize float  stepSize  )  [pure virtual]
 

Set the step size of the volume renderer. Smaller step size gives more accurate results.

Parameters:
stepSize the new step size.

Implemented in GpuThesis::RayMarcher, and GpuThesis::SimpleVolumeRenderer.


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 08:42:51 2006 for GPU Thesis by  doxygen 1.4.6-NO