#include <ToneShadingModelSW.h>
Inheritance diagram for IDVR.VolumeRenderer.SWVolumeRenderer.ShadingModels.ToneShadingModelSW:
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.
MipShadingModelSW - the mip shading model
PhongShadingModelSW - the phong shading model
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 RaySample * | doShading (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 | |
Vector3 * | m_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 | |
Transferfunction * | m_TransferFunc |
the transfer function |
|
Standard constructor.
|
|
Constructor.
|
|
Constructor.
|
|
Calculates the Color value for a given raysample.
|
|
Returns the the cold color as Color object.
|
|
Returns the gradient magnitude threshold.
|
|
Returns the ratio of the cold color.
|
|
Returns the ktf value.
|
|
Returns the ratio of the warm color.
|
|
Returns the the warm color as Color object.
|
|
Sets the current light direction.
|