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