12 #ifndef DRRSTAGE_H_6014714286
13 #define DRRSTAGE_H_6014714286
16 #include <Carna/Carna.h>
109 const std::unique_ptr< Details > pimpl;
124 const static unsigned int ROLE_HU_VOLUME = 0;
130 DRRStage(
unsigned int geometryType );
139 virtual void reshape(
base::FrameRenderer& fr,
unsigned int width,
unsigned int height )
override;
145 virtual void renderPass
154 float waterAttenuation()
const;
159 float baseIntensity()
const;
177 float upperMultiplier()
const;
183 bool isRenderingInverse()
const;
189 void setWaterAttenuation(
float muWater );
195 void setBaseIntensity(
float baseIntensity );
201 void setLowerThreshold(
base::HUV lower );
207 void setUpperThreshold(
base::HUV upper );
213 void setUpperMultiplier(
float multiplier );
226 void setRenderingInverse(
bool inverse );
230 virtual unsigned int loadVideoResources()
override;
232 virtual void createVolumeSamplers(
const std::function<
void(
unsigned int,
base::Sampler* ) >& registerSampler )
override;
242 virtual const std::string& uniformName(
unsigned int role )
const override;
247 virtual void configureShader()
override;
262 #endif // DRRSTAGE_H_6014714286
Renders digital radiograph reconstructs of volume geometries in the scene.
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.
signed short HUV
Represents values in .
static const float DEFAULT_BASE_INTENSITY
Holds default value for .
static const float DEFAULT_UPPER_MULTIPLIER
Holds default value for .
Defines Carna::presets::VolumeRenderingStage.