Main Page | Packages | Class Hierarchy | Class List | Directories | Class Members

IDVR.VolumeRenderer.SWVolumeRenderer.RendererSW Class Reference

#include <RendererSW.h>

Inheritance diagram for IDVR.VolumeRenderer.SWVolumeRenderer.RendererSW:

IDVR.Interfaces.IRenderer List of all members.

Detailed Description

Class for the renderer.

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.

See also:
IDVR.VolumeRenderer.SWVolumeRenderer.ClassificationModels.LinearClassificationModelSW - the linear classification model.

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

Author:
Christopher Thurnher
Version:
1.0
Date:
02-19-2005


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 RaySampledoClassification (RaySample *n_RaySample)
 Calculates the opacity value for a given raysample.
virtual RaySampledoShading (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 IClassificationModelgetClassificator (void)
 Returns the classification model.
virtual IShadingModelgetShader (void)
 Returns the shading model.
virtual ICompositingModelgetCompositor (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

IClassificationModelm_IClassificator
 the classification model
IShadingModelm_IShader
 the shading model
ICompositingModelm_ICompositor
 the composition model
char m_RenderMode
 the render mode


Constructor & Destructor Documentation

RendererSW::RendererSW void   ) 
 

Standard constructor.

RendererSW::RendererSW char  n_RenderMode,
IClassificationModel n_IClassificator,
IShadingModel n_IShader,
ICompositingModel n_ICompositor
 

Constructor.

Parameters:
n_RenderMode the render mode.
n_IClassificator the classification model.
n_IShader the shading model.
n_ICompositor the composition model.

RendererSW::~RendererSW void   ) 
 

Standard destructor.


Member Function Documentation

RaySample * RendererSW::doClassification RaySample n_RaySample  )  [virtual]
 

Calculates the opacity value for a given raysample.

Parameters:
n_RaySample the given raysample.
Returns:
The modified raysample.

void RendererSW::doCompositing RaySample n_RaySample  )  [virtual]
 

Blends the final intensity and opacity values of a given raysample.

Parameters:
n_RaySample the given raysample.

void RendererSW::doCompositingBackground float n_BackColor  __gc[]  )  [virtual]
 

Blends the final pixelcolor with the given background color.

Parameters:
n_BackColor the background color.

RaySample * RendererSW::doShading RaySample n_RaySample  )  [virtual]
 

Calculates the intensity value for a given raysample.

Parameters:
n_RaySample the given raysample.
Returns:
The modified raysample.

IClassificationModel * RendererSW::getClassificator void   )  [virtual]
 

Returns the classification model.

Returns:
The classification model.

ICompositingModel * RendererSW::getCompositor void   )  [virtual]
 

Returns the composition model.

Returns:
The composition model.

float RendererSW::getIntensity void   )  [virtual]
 

Returns the current intensity array.

Returns:
The current intensity array.

float RendererSW::getOpacity void   )  [virtual]
 

Returns the current opacity value.

Returns:
The current opacity value.

char RendererSW::getRenderMode void   )  [virtual]
 

Returns the render mode.

Returns:
The render mode.

IShadingModel * RendererSW::getShader void   )  [virtual]
 

Returns the shading model.

Returns:
The shading model.

bool RendererSW::need_GradientEstimation void   )  [virtual]
 

Returns true, if gradinet estimation is needed.

Returns:
True, if gradinet estimation is needed.

void RendererSW::reset_Compositor void   )  [virtual]
 

Resets the values of the composition model.

void RendererSW::setClassificator IClassificationModel n_IClassificator  )  [virtual]
 

Sets the classification model.

Parameters:
n_IClassificator the classification model.

void RendererSW::setCompositor ICompositingModel n_ICompositor  )  [virtual]
 

Sets the composition model.

Parameters:
n_ICompositor the composition model.

void RendererSW::setRenderMode char  n_RenderMode  )  [virtual]
 

Sets the render mode.

Parameters:
n_RenderMode the render mode.

void RendererSW::setShader IShadingModel n_IShader  )  [virtual]
 

Sets the shading model.

Parameters:
n_IShader the shading model.


The documentation for this class was generated from the following files:
Generated on Sat Apr 9 11:51:01 2005 for RayCaster wiht Importance Driven Volume Rendering (IDVR) by  doxygen 1.4.1