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

IDVR.VolumeRenderer.SWVolumeRenderer.ShadingModels.ContourShadingModelSW Class Reference

#include <ContourShadingModelSW.h>

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

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. raysamples the lie on the contour of an object get a high, others a low value.

See also:
MipShadingModelSW - the mip shading model

PhongShadingModelSW - the phong shading model

ToneShadingModelSW - the tone shading model

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


Public Member Functions

 ContourShadingModelSW (void)
 Standard constructor.
 ContourShadingModelSW (unsigned short n_DensityScope, double n_GradientMagnitudeThreshold, double n_Exponent, Color n_Col)
 Constructor.
 ContourShadingModelSW (unsigned short n_DensityScope, double n_GradientMagnitudeThreshold, double n_Exponent, Color n_Col, float n_KTF, Transferfunction *n_TransferFunc)
 Constructor.
virtual RaySampledoShading (RaySample *n_RaySample)
 Calculates the Color value for a given raysample.
__property void set_ViewDirection (Vector3 *n_View)
 Sets the view direction.
__property double get_ContourGradientMagnitudeThreshold (void)
 Returns the gradient magnitude threshold.
__property double get_Exponent (void)
 Returns the exponent.
__property Color get_Col (void)
 Returns the current color as Color object.
__property float get_ContourKTF (void)
 Returns the ktf value.

Private Attributes

short m_DensityScope
 the scope of the density values of the dataset
double m_Exponent
 bigger exponent => thinner contour lines
double m_GradientMagnitudeThreshold
 a big gradient magnitude threshold indicates a surface
Vector3m_View
 the view vector of the image plane
float m_BaseColor __gc []
 the base color that the contour lines will have
float m_KTF
 ratio of the calculated color according to the transfer function
Transferfunctionm_TransferFunc
 the specified transfer function


Constructor & Destructor Documentation

ContourShadingModelSW::ContourShadingModelSW void   ) 
 

Standard constructor.

ContourShadingModelSW::ContourShadingModelSW unsigned short  n_DensityScope,
double  n_GradientMagnitudeThreshold,
double  n_Exponent,
Color  n_Col
 

Constructor.

Parameters:
n_DensityScope the scope of the density values of the dataset.
n_GradientMagnitudeThreshold the gradient magnitude threshold.
n_Exponent the exponent.
n_Col the color of the contour lines.

ContourShadingModelSW::ContourShadingModelSW unsigned short  n_DensityScope,
double  n_GradientMagnitudeThreshold,
double  n_Exponent,
Color  n_Col,
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_Exponent the exponent.
n_Col the color of the contour lines.
n_KTF the ration of the transfer function.
n_TransferFunc the transfer function.


Member Function Documentation

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

Calculates the Color value for a given raysample.

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

Color ContourShadingModelSW::get_Col void   ) 
 

Returns the current color as Color object.

Returns:
The current color as Color object.

double ContourShadingModelSW::get_ContourGradientMagnitudeThreshold void   ) 
 

Returns the gradient magnitude threshold.

Returns:
The gradient magnitude threshold.

E *float ContourShadingModelSW::get_ContourKTF void   ) 
 

Returns the ktf value.

Returns:
The ktf value.

double ContourShadingModelSW::get_Exponent void   ) 
 

Returns the exponent.

Returns:
The exponent.

void ContourShadingModelSW::set_ViewDirection Vector3 n_View  ) 
 

Sets the view direction.

Parameters:
n_View the view 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