VolVis::VolumeRendering::FirstHit Class Reference

#include <FirstHit.h>

Inheritance diagram for VolVis::VolumeRendering::FirstHit:

VolVis::VolumeRendering::RaycastRendering VolVis::VolumeRendering::Rendering

Detailed Description

This render mode implements the first hit algorithm. The first voxel higher than a specific threhold is taken.


Public Member Functions

void enablePhong (bool enable)
 FirstHit (Raycasting *raycasting)
void render ()
void setThreshold (float t)


Constructor & Destructor Documentation

VolVis::VolumeRendering::FirstHit::FirstHit ( Raycasting raycasting  ) 

Constructor. Binds the raycasting object and loads the needed shaders.

Parameters:
raycasting this implements the raycasting algorithm


Member Function Documentation

void VolVis::VolumeRendering::FirstHit::enablePhong ( bool  enable  ) 

Enables or disables the phong reflection model. If enabled, the reflection is calculated according to the reflection parameters and the light source defined in the Raycasting object.

Parameters:
enable if true, the phong reflection model is enabled.

void VolVis::VolumeRendering::FirstHit::render (  )  [virtual]

Updates shader parameters and renders an image plane. Raycasting is done within a shader.

Implements VolVis::VolumeRendering::Rendering.

void VolVis::VolumeRendering::FirstHit::setThreshold ( float  t  ) 

Defines the threshold for the voxels which should be visible. The first voxel in front-to-back-order which has a higher value than this threshold is selected.

Parameters:
t defines the visibility threshold.


The documentation for this class was generated from the following file:
Generated on Wed Dec 5 12:27:31 2007 for VolVis by  doxygen 1.5.1-p1