15#ifndef CUTTINGPLANESSTAGE_H_6014714286
16#define CUTTINGPLANESSTAGE_H_6014714286
64 const std::unique_ptr< Details > pimpl;
66 struct VideoResources;
67 std::unique_ptr< VideoResources > vr;
87 CuttingPlanesStage(
unsigned int volumeGeometryType,
unsigned int planeGeometryType,
unsigned int colorMapResolution = base::ColorMap::DEFAULT_RESOLUTION );
Defines LibCarna::base::ColorMap.
Defines LibCarna::base::GeometryStage.
Contains forward-declarations.
Defines LibCarna::base::Renderable.
Represents a mapping of intensity values to RGBA colors, that can be queried in a shader.
Partially implements a rendering stage that uses at least one render queue for rendering geometry fro...
Defines the inner node of a scene graph. Implements a spatial scene element that is allowed to have c...
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...
Defines a rendering viewport. The viewport is a property of the current OpenGL context.
Renders cutting planes of volume geometries in the scene.
static const float DEFAULT_WINDOWING_WIDTH
Holds the default value for setWindowingWidth.
float windowingWidth() const
Tells the windowing width.
const unsigned int volumeGeometryType
Renders such volume geometries whose type equals this.
float windowingLevel() const
Tells the windowing level intensity.
void setWindowingWidth(float windowingWidth)
Sets windowing level to windowingWidth.
virtual void rewindRenderQueues() override
Rewinds the rendering queues of this stage.
static const unsigned int ROLE_INTENSITIES
Holds the role that intensity volume data is expected to take when attached to base::Geometry nodes.
CuttingPlanesStage(unsigned int volumeGeometryType, unsigned int planeGeometryType, unsigned int colorMapResolution=base::ColorMap::DEFAULT_RESOLUTION)
Instantiates.
virtual void updateRenderQueues(const base::math::Matrix4f &viewTransform) override
Recomputes the model-view transforms of the renderables enqueued by this stage.
base::ColorMap colorMap
The color map used for the rendering.
virtual void render(const base::Renderable &) override
Renders the renderable.
const unsigned int planeGeometryType
Renders such plane geometries whose type equals this.
void setWindowingWidth(unsigned int windowingWidth)
virtual void renderPass(const base::math::Matrix4f &viewTransform, base::RenderTask &rt, const base::Viewport &vp) override
Called once per pass.
void setWindowingLevel(float windowingLevel)
Sets windowing level to windowingLevel.
virtual ~CuttingPlanesStage()
Deletes.
virtual void buildRenderQueues(base::Node &root, const base::math::Matrix4f &viewTransform) override
Builds the rendering queues of this stage.
static const float DEFAULT_WINDOWING_LEVEL
Holds the default value for setWindowingLevel.
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > Matrix4f
Defines matrix.