12 #ifndef DRRSTAGE_H_6014714286 13 #define DRRSTAGE_H_6014714286 16 #include <Carna/Carna.h> 110 const std::unique_ptr< Details > pimpl;
125 const static unsigned int ROLE_INTENSITIES = 0;
131 explicit DRRStage(
unsigned int geometryType );
140 virtual void reshape(
base::FrameRenderer& fr,
unsigned int width,
unsigned int height )
override;
146 virtual void renderPass
155 float waterAttenuation()
const;
160 float baseIntensity()
const;
178 float upperMultiplier()
const;
184 bool isRenderingInverse()
const;
190 void setWaterAttenuation(
float muWater );
196 void setBaseIntensity(
float baseIntensity );
202 void setLowerThreshold(
base::HUV lower );
208 void setUpperThreshold(
base::HUV upper );
214 void setUpperMultiplier(
float multiplier );
227 void setRenderingInverse(
bool inverse );
231 virtual unsigned int loadVideoResources()
override;
233 virtual void createVolumeSamplers(
const std::function<
void(
unsigned int,
base::Sampler* ) >& registerSampler )
override;
243 virtual const std::string& uniformName(
unsigned int role )
const override;
248 virtual void configureShader()
override;
263 #endif // DRRSTAGE_H_6014714286 Renders digital radiograph reconstructs of volume geometries in the scene.
Defines Carna::base::HUV.
static const base::HUV DEFAULT_LOWER_THRESHOLD
Holds default value for .
Defines logic for rendering frames from given scenes.
Maintains an OpenGL shader program. Realizes the RAII-idiom.
Invokes the rendering stages of the frame renderer successively.
Maintains an OpenGL texture sampler object. This class realizes the RAII-idiom.
static const float DEFAULT_WATER_ATTENUATION
Holds default value for .
Defines abstract base class for rendering stages that render volume geometries in the scene...
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > Matrix4f
Defines matrix.
Defines a rendering viewport. The viewport is a property of the current OpenGL context.
static const base::HUV DEFAULT_UPPER_THRESHOLD
Holds default value for .
Represents a Geometry object that has been queued into a RenderQueue. The object's model-view transfo...
static const bool DEFAULT_RENDER_INVERSE
Holds default value for inverse rendering.
static const float DEFAULT_BASE_INTENSITY
Holds default value for .
static const float DEFAULT_UPPER_MULTIPLIER
Holds default value for .
Defines Carna::presets::VolumeRenderingStage.