15#ifndef MIPSTAGE_H_6014714286
16#define MIPSTAGE_H_6014714286
70 const std::unique_ptr< Details > pimpl;
78 const static unsigned int ROLE_INTENSITIES = 0;
83 explicit MIPStage(
unsigned int geometryType,
unsigned int colorMapResolution = base::ColorMap::DEFAULT_RESOLUTION );
110 virtual const std::string&
uniformName(
unsigned int role )
const override;
Defines LibCarna::base::ColorMap.
Contains forward-declarations.
Defines LibCarna::presets::VolumeRenderingStage.
Represents a mapping of intensity values to RGBA colors, that can be queried in a shader.
Defines logic for rendering frames from given scenes.
Invokes the rendering stages of the frame renderer successively.
Represents a Geometry object that has been queued into a RenderQueue. The object's model-view transfo...
Maintains an OpenGL texture sampler object. This class realizes the RAII-idiom.
Maintains an OpenGL shader program. Realizes the RAII-idiom.
Defines a rendering viewport. The viewport is a property of the current OpenGL context.
Renders maximum intensity projections of volume geometries in the scene.
virtual void reshape(base::FrameRenderer &fr, unsigned int width, unsigned int height) override
Orders this stage to reshape its buffers according to the specified width and height.
virtual void renderPass(const base::math::Matrix4f &viewTransform, base::RenderTask &rt, const base::Viewport &vp) override
Triggers the volume rendering.
virtual const base::ShaderProgram & acquireShader() override
Acquires the shader from the base::ShaderManager, that is to be used for rendering the slices.
virtual unsigned int loadVideoResources() override
Loads video resources when rendering is triggered for the first time. Override this method if you nee...
virtual const std::string & uniformName(unsigned int role) const override
Tells the name of the uniform variable, that the role texture is to be bound to. Use configureShader ...
base::ColorMap colorMap
The color map used for the rendering.
virtual void createVolumeSamplers(const std::function< void(unsigned int, base::Sampler *) > ®isterSampler) override
Creates texture samplers for volume textures and uses registerSampler to assign them to the roles tha...
virtual void configureShader() override
Does nothing.
MIPStage(unsigned int geometryType, unsigned int colorMapResolution=base::ColorMap::DEFAULT_RESOLUTION)
Instantiates.
virtual void configureShader(const base::Renderable &) override
Does nothing.
virtual ~MIPStage()
Deletes.
Defines abstract base class for rendering stages that render volume geometries in the scene.
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > Matrix4f
Defines matrix.