GpuThesis::RayMarcher Class Reference

#include <RayMarcher.h>

Inheritance diagram for GpuThesis::RayMarcher:

GpuThesis::VolumeRenderer List of all members.

Public Member Functions

 RayMarcher (OpenGL::Flat3dTextureSet *textureSet, unsigned int dataVolume, bool slice, Math::BoundingBox box)
OpenGL::IoTextureSetgetTextureSet ()
void setStepSize (float stepSize)
float getStepSize () const
void compute ()

Detailed Description

Specialization of VolumeRenderer which uses ray marching on the GPU.


Constructor & Destructor Documentation

GpuThesis::RayMarcher::RayMarcher OpenGL::Flat3dTextureSet textureSet,
unsigned int  dataVolume,
bool  slice,
Math::BoundingBox  box
 

Initializes the RayMarcher.

Parameters:
textureSet the texture set which contains the data to render.
dataVolume the identifier of the flat 3d texture containing the data.
slice whether the data is stored as cylindrical slices (as opposed to 3d).
box the bounding box of the interesting data.


Member Function Documentation

void GpuThesis::RayMarcher::compute  )  [virtual]
 

Perform per-frame computations.

Reimplemented from GpuThesis::VolumeRenderer.

float GpuThesis::RayMarcher::getStepSize  )  const [virtual]
 

Get the current step size.

See also:
setStepSize
Returns:
the step size.

Implements GpuThesis::VolumeRenderer.

OpenGL::IoTextureSet * GpuThesis::RayMarcher::getTextureSet  )  [virtual]
 

Get the texture set used internally by the RayMarcher. The texture set contains ray entry points and ray directions.

Returns:
the texture set.

Implements GpuThesis::VolumeRenderer.

void GpuThesis::RayMarcher::setStepSize float  stepSize  )  [virtual]
 

Set the step size to use when stepping through the volume. Larger step size is faster but less accurate.

Parameters:
stepSize the step size to use.

Implements GpuThesis::VolumeRenderer.


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