#include <RaycastRendering.h>
Inheritance diagram for VolVis::VolumeRendering::RaycastRendering:
Public Member Functions | |
virtual void | prepareForRender (bool viewChanged) |
RaycastRendering (const std::string &name, Raycasting *raycasting) | |
void | setStepSize (double stepSize) |
Protected Attributes | |
Raycasting * | m_pRaycasting |
Shader::ShaderObject * | m_pRaycastShader |
VolVis::VolumeRendering::RaycastRendering::RaycastRendering | ( | const std::string & | name, | |
Raycasting * | raycasting | |||
) | [inline] |
Constructor. Sets up the parameters and default values.
name | Name of the render mode. Usually defined in subclasses. | |
raycasting |
virtual void VolVis::VolumeRendering::RaycastRendering::prepareForRender | ( | bool | viewChanged | ) | [inline, virtual] |
Uses the raycasting object for creating the direction cubes (if they need to be updated).
viewChanged | if true, the direction cubes are updated in any case. |
Reimplemented from VolVis::VolumeRendering::Rendering.
void VolVis::VolumeRendering::RaycastRendering::setStepSize | ( | double | stepSize | ) | [inline] |
Defines the step size of the raycasting. In which intervals is the volume sampled by a casted ray.
stepSize | interval for sampling in raycasting |
The raycasting object contains data and code which is the same for all render modes. The same object can be bound to all raycasting render modes.
This shader object renders the direction cubes.