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

IDVR.VolumeRenderer.SWVolumeRenderer.ShadingModels.ToneShadingModelSW Class Reference

#include <ToneShadingModelSW.h>

Inheritance diagram for IDVR.VolumeRenderer.SWVolumeRenderer.ShadingModels.ToneShadingModelSW:

IDVR.Interfaces.IShadingModel List of all members.

Detailed Description

Class for the contour shading model.

Namespace: IDVR.VolumeRenderer.SWVolumeRenderer.ShadingModels

Baseclass: IDVR.Interfaces.IShadingModel

This class calculates the color value of a given raysample. If the gradient of the raysample points to the light, the raysample gets a warm color, otherwise a cold one.

See also:
ContourShadingModelSW - the contour shading model

MipShadingModelSW - the mip shading model

PhongShadingModelSW - the phong shading model

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


Public Member Functions

 ToneShadingModelSW (void)
 Standard constructor.
 ToneShadingModelSW (unsigned short n_DensityScope, double n_GradientMagnitudeThreshold, double n_KWarm, Color n_CWarm, double n_KCold, Color n_CCold, Vector3 *n_LightDirection)
 Constructor.
 ToneShadingModelSW (unsigned short n_DensityScope, double n_GradientMagnitudeThreshold, double n_KWarm, Color n_CWarm, double n_KCold, Color n_CCold, Vector3 *n_LightDirection, float n_KTF, Transferfunction *n_TransferFunc)
 Constructor.
virtual RaySampledoShading (RaySample *n_RaySample)
 Calculates the Color value for a given raysample.
__property void set_LightDirection (Vector3 *n_Light)
 Sets the current light direction.
__property double get_ToneGradientMagnitudeThreshold (void)
 Returns the gradient magnitude threshold.
__property double get_ToneKWarm (void)
 Returns the ratio of the warm color.
__property double get_ToneKCold (void)
 Returns the ratio of the cold color.
__property Color get_ToneWarmColor (void)
 Returns the the warm color as Color object.
__property Color get_ToneColdColor (void)
 Returns the the cold color as Color object.
__property float get_ToneKTF (void)
 Returns the ktf value.

Private Attributes

unsigned short m_DensityScope
 the scope of the density values of the dataset
Vector3m_LightDirection
 the light direction
double m_GradientMagnitudeThreshold
 a big gradient magnitude threshold indicates a surface
double m_KWarm
 ratio of the chosen warm color
double m_KCold
 ratio of the chosen cold color
float m_WarmColor __gc []
 the warm color
float m_ColdColor __gc []
 the cold color
float m_KTF
 ratio of the calculated color according to the transfer function
Transferfunctionm_TransferFunc
 the transfer function


Constructor & Destructor Documentation

ToneShadingModelSW::ToneShadingModelSW void   ) 
 

Standard constructor.

ToneShadingModelSW::ToneShadingModelSW unsigned short  n_DensityScope,
double  n_GradientMagnitudeThreshold,
double  n_KWarm,
Color  n_CWarm,
double  n_KCold,
Color  n_CCold,
Vector3 n_LightDirection
 

Constructor.

Parameters:
n_DensityScope the scope of the density values of the dataset.
n_GradientMagnitudeThreshold the gradient magnitude threshold.
n_KWarm the ratio of the chosen warm color.
n_CWarm the warm color.
n_KCold the ratio of the chosen cold color.
n_CCold the cold color.
n_LightDirection the light direction.

ToneShadingModelSW::ToneShadingModelSW unsigned short  n_DensityScope,
double  n_GradientMagnitudeThreshold,
double  n_KWarm,
Color  n_CWarm,
double  n_KCold,
Color  n_CCold,
Vector3 n_LightDirection,
float  n_KTF,
Transferfunction n_TransferFunc
 

Constructor.

Parameters:
n_DensityScope the scope of the density values of the dataset.
n_GradientMagnitudeThreshold the gradient magnitude threshold.
n_KWarm the ratio of the chosen warm color.
n_CWarm the warm color.
n_KCold the ratio of the chosen cold color.
n_CCold the cold color.
n_LightDirection the light direction.
n_KTF the ration of the transfer function.
n_TransferFunc the transfer function.


Member Function Documentation

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

Calculates the Color value for a given raysample.

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

Color ToneShadingModelSW::get_ToneColdColor void   ) 
 

Returns the the cold color as Color object.

Returns:
The the cold color as Color object.

double ToneShadingModelSW::get_ToneGradientMagnitudeThreshold void   ) 
 

Returns the gradient magnitude threshold.

Returns:
The gradient magnitude threshold.

double ToneShadingModelSW::get_ToneKCold void   ) 
 

Returns the ratio of the cold color.

Returns:
The ratio of the cold color.

float ToneShadingModelSW::get_ToneKTF void   ) 
 

Returns the ktf value.

Returns:
The ktf value.

double ToneShadingModelSW::get_ToneKWarm void   ) 
 

Returns the ratio of the warm color.

Returns:
The ratio of the warm color.

Color ToneShadingModelSW::get_ToneWarmColor void   ) 
 

Returns the the warm color as Color object.

Returns:
The the warm color as Color object.

void ToneShadingModelSW::set_LightDirection Vector3 n_Light  ) 
 

Sets the current light direction.

Parameters:
n_Light the light direction.


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