#include <FirstHit.h>
Inheritance diagram for VolVis::VolumeRendering::FirstHit:
Public Member Functions | |
void | enablePhong (bool enable) |
FirstHit (Raycasting *raycasting) | |
void | render () |
void | setThreshold (float t) |
VolVis::VolumeRendering::FirstHit::FirstHit | ( | Raycasting * | raycasting | ) |
Constructor. Binds the raycasting object and loads the needed shaders.
raycasting | this implements the raycasting algorithm |
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.
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.
t | defines the visibility threshold. |