#include <RendererSW.h>
Inheritance diagram for IDVR.VolumeRenderer.SWVolumeRenderer.RendererSW:
namespace: IDVR.VolumeRenderer.SWVolumeRenderer
Baseclass: IDVR.Interfaces.IRenderer
This class provides methods to render the scene. Each renderer consists of three parts. the first one is a classification model. It assigns calculates an opacity value for a given raysample. The second one is a shading model which calculates a color value for a given raysample. At last, the compositing model calculates the final color and opacity values by blending the new color and opacity of a raysample with the already calcultaed ones.
IDVR.VolumeRenderer.SWVolumeRenderer.ClassificationModels.TFClassificationModelSW - the transfer function classification model.
IDVR.VolumeRenderer.SWVolumeRenderer.ShadingModels.ContourShadingModelSW - the contour shading model
IDVR.VolumeRenderer.SWVolumeRenderer.ShadingModels.MipShadingModelSW - the mip shading model
IDVR.VolumeRenderer.SWVolumeRenderer.ShadingModels.PhongShadingModelSW - the phong shading model
IDVR.VolumeRenderer.SWVolumeRenderer.ShadingModels.ToneShadingModelSW - the tone shading model
IDVR.VolumeRenderer.SWVolumeRenderer.CompositingModels.DvrCompositingModelSW - the dvr compositing model
IDVR.VolumeRenderer.SWVolumeRenderer.CompositingModels.LMipCompositingModelSW - the LMip compositing model
Public Member Functions | |
RendererSW (void) | |
Standard constructor. | |
RendererSW (char n_RenderMode, IClassificationModel *n_IClassificator, IShadingModel *n_IShader, ICompositingModel *n_ICompositor) | |
Constructor. | |
~RendererSW (void) | |
Standard destructor. | |
virtual RaySample * | doClassification (RaySample *n_RaySample) |
Calculates the opacity value for a given raysample. | |
virtual RaySample * | doShading (RaySample *n_RaySample) |
Calculates the intensity value for a given raysample. | |
virtual void | doCompositing (RaySample *n_RaySample) |
Blends the final intensity and opacity values of a given raysample. | |
virtual void | doCompositingBackground (float n_BackColor __gc[]) |
Blends the final pixelcolor with the given background color. | |
virtual void | setClassificator (IClassificationModel *n_IClassificator) |
Sets the classification model. | |
virtual void | setShader (IShadingModel *n_IShader) |
Sets the shading model. | |
virtual void | setCompositor (ICompositingModel *n_ICompositor) |
Sets the composition model. | |
virtual IClassificationModel * | getClassificator (void) |
Returns the classification model. | |
virtual IShadingModel * | getShader (void) |
Returns the shading model. | |
virtual ICompositingModel * | getCompositor (void) |
Returns the composition model. | |
virtual bool | need_GradientEstimation (void) |
Returns true, if gradinet estimation is needed. | |
virtual void | reset_Compositor (void) |
Resets the values of the composition model. | |
virtual float | getIntensity (void) __gc[] |
Returns the current intensity array. | |
virtual float | getOpacity (void) |
Returns the current opacity value. | |
virtual void | setRenderMode (char n_RenderMode) |
Sets the render mode. | |
virtual char | getRenderMode (void) |
Returns the render mode. | |
Static Public Attributes | |
static const char | TF_PHONG_DVR = 0 |
classification: transfer function, shading: phong, copmpositing: dvr | |
static const char | LIN_MIP_LMIP = 1 |
classification: linear, shading: mip, copmpositing: LMip | |
static const char | TF_CONTOUR_DVR = 2 |
classification: transfer function, shading: contour, copmpositing: dvr | |
static const char | LIN_CONTOUR_LMIP = 3 |
classification: linear, shading: contour, copmpositing: LMip | |
static const char | TF_TONE_DVR = 4 |
classification: transfer function, shading: tone, copmpositing: dvr | |
static const char | LIN_TONE_LMIP = 5 |
classification: linear, shading: tone, copmpositing: LMip | |
static const char | TF_MIP_LMIP = 6 |
classification: transfer function, shading: mip, copmpositing: LMip | |
Private Attributes | |
IClassificationModel * | m_IClassificator |
the classification model | |
IShadingModel * | m_IShader |
the shading model | |
ICompositingModel * | m_ICompositor |
the composition model | |
char | m_RenderMode |
the render mode |
|
Standard constructor.
|
|
Constructor.
|
|
Standard destructor.
|
|
Calculates the opacity value for a given raysample.
|
|
Blends the final intensity and opacity values of a given raysample.
|
|
Blends the final pixelcolor with the given background color.
|
|
Calculates the intensity value for a given raysample.
|
|
Returns the classification model.
|
|
Returns the composition model.
|
|
Returns the current intensity array.
|
|
Returns the current opacity value.
|
|
Returns the render mode.
|
|
Returns the shading model.
|
|
Returns true, if gradinet estimation is needed.
|
|
Resets the values of the composition model.
|
|
Sets the classification model.
|
|
Sets the composition model.
|
|
Sets the render mode.
|
|
Sets the shading model.
|