12 #ifndef DVRSTAGE_H_6014714286 13 #define DVRSTAGE_H_6014714286 16 #include <Carna/Carna.h> 105 const std::unique_ptr< Details > pimpl;
113 const static unsigned int ROLE_INTENSITIES = 0;
119 const static unsigned int ROLE_NORMALS = 1;
140 explicit DVRStage(
unsigned int geometryType,
unsigned int colorMapResolution = ( 1 << 12 ) );
149 virtual void reshape(
base::FrameRenderer& fr,
unsigned int width,
unsigned int height )
override;
151 virtual void renderPass
160 void clearColorMap();
178 void writeColorMap(
float intensityFirst,
float intensityLast,
const base::Color& colorFirst,
const base::Color& colorLast );
183 void setTranslucence(
float translucence );
188 float translucence()
const;
199 void setDiffuseLight(
float diffuseLight );
205 float diffuseLight()
const;
211 bool isLightingUsed()
const;
215 virtual unsigned int loadVideoResources()
override;
217 virtual void createVolumeSamplers(
const std::function<
void(
unsigned int,
base::Sampler* ) >& registerSampler )
override;
227 virtual const std::string& uniformName(
unsigned int role )
const override;
229 virtual void configureShader()
override;
244 #endif // DVRSTAGE_H_6014714286 static const float DEFAULT_DIFFUSE_LIGHT
Holds the default diffuse light amount. The ambient light amount is always one minus the diffuse ligh...
static const float DEFAULT_TRANSLUCENCE
Holds the default translucence.
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.
Defines abstract base class for rendering stages that render volume geometries in the scene...
Represents a color. Objects from this class are copyable and assignable.
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > Matrix4f
Defines matrix.
Defines a rendering viewport. The viewport is a property of the current OpenGL context.
Represents a Geometry object that has been queued into a RenderQueue. The object's model-view transfo...
Performs direct volume renderings of the volume geometries in the scene.
Defines Carna::presets::VolumeRenderingStage.