VIS2 SS2013 CVD DVR
 All Classes Namespaces Functions Enumerations Properties
Public Member Functions | Public Attributes | Properties | List of all members
visLU.Effects.VolumeShader Class Reference

Represents the connection between the program and the shader. Holds every EffectParameter for the shader. More...

Inheritance diagram for visLU.Effects.VolumeShader:

Public Member Functions

 VolumeShader (GraphicsDevice _device, Effect _effect, bool CVDon)
 Constructor More...
 
void SetEffectParameter (Matrix _worldViewProjection, Matrix _world)
 Passes Matrices to the shader. More...
 
void SetEffectParameter (Vector3 _cameraPosition)
 Passes camera position to the shader. More...
 
void SetEffectParameter_CVD (Texture3D _volumeTexture, Texture3D _gradientTexture, Vector3 _stepSize, int _iterations, Vector4 _scaleFactor, Vector2 _texSize, Matrix _rotateToLMS, Matrix _rotateFromLMS)
 
void SetEffectParameter (Texture3D _volumeTexture, Texture3D _gradientTexture, Vector3 _stepSize, int _iterations, int _side, Vector4 _scaleFactor, float _slice)
 Passes various parameters to the shader. More...
 
void SetEffectParameter (Texture3D _volumeTexture, Texture3D _gradientTexture, Vector3 _directLightPosition, Vector3 _stepSize, float _baseSampleDist, float _sampleDist, int _iterations, int _side, Vector4 _scaleFactor, Vector2 _texSize, float _slice)
 Passes various parameters to the shader: Extended More...
 

Public Attributes

EffectParameter world
 
EffectParameter cameraPosition
 

Properties

Texture3D VolumeTexture [get, set]
 Texture3D for volume data More...
 
Texture3D GradientTexture [get, set]
 Texture3D for gradients More...
 
Texture2D FrontFacesTexture [get, set]
 Texture2D for FrontFaces More...
 
Texture2D BackFacesTexture [get, set]
 Texture2D for BackFaces More...
 
Texture2D TransferTexture [get, set]
 Texture2D for Transferfunction More...
 
Texture2D TransferTextureAlpha [get, set]
 Texture2D for Transferfunction (alpha values) More...
 
Texture2D CVDTransferTexture [get, set]
 Texture2D for the CVD Transferfunction More...
 

Detailed Description

Represents the connection between the program and the shader. Holds every EffectParameter for the shader.

Definition at line 16 of file VolumeShader.cs.

Constructor & Destructor Documentation

visLU.Effects.VolumeShader.VolumeShader ( GraphicsDevice  _device,
Effect  _effect,
bool  CVDon 
)

Constructor

Parameters
_game
_deviceGraphicsDevice
_effectEffect, loaded from file

Definition at line 145 of file VolumeShader.cs.

Member Function Documentation

void visLU.Effects.VolumeShader.SetEffectParameter ( Matrix  _worldViewProjection,
Matrix  _world 
)

Passes Matrices to the shader.

Parameters
_worldViewProjection
_world

Definition at line 328 of file VolumeShader.cs.

void visLU.Effects.VolumeShader.SetEffectParameter ( Vector3  _cameraPosition)

Passes camera position to the shader.

Parameters
_cameraPosition

Definition at line 338 of file VolumeShader.cs.

void visLU.Effects.VolumeShader.SetEffectParameter ( Texture3D  _volumeTexture,
Texture3D  _gradientTexture,
Vector3  _stepSize,
int  _iterations,
int  _side,
Vector4  _scaleFactor,
float  _slice 
)

Passes various parameters to the shader.

Parameters
_volumeTextureTexture3D, holds volume data
_stepSizeratio of the largest component(dimension of volume): max(sizeX, sizeY, sizeZ)
_iterationsegals number of steps in max dimension of the volume
_sidespecifies view (3d, front, top or side)
_scaleFactorused to scale cube to volume dimensions
_slicecurrent slice to be drawn (not used in 3D view)

Definition at line 403 of file VolumeShader.cs.

void visLU.Effects.VolumeShader.SetEffectParameter ( Texture3D  _volumeTexture,
Texture3D  _gradientTexture,
Vector3  _directLightPosition,
Vector3  _stepSize,
float  _baseSampleDist,
float  _sampleDist,
int  _iterations,
int  _side,
Vector4  _scaleFactor,
Vector2  _texSize,
float  _slice 
)

Passes various parameters to the shader: Extended

Parameters
_volumeTextureTexture3D, holds volume data
_gradientTextureTexture3D, hold gradient data
directLightPositionDirect light vector position for the shading
_stepSizeratio of the largest component(dimension of volume): max(sizeX, sizeY, sizeZ)
baseSampleDistSample distance of the dataset
sampleDistCurrent sample distnace tha we use
_iterationsegals number of steps in max dimension of the volume
_sidespecifies view (3d, front, top or side)
_scaleFactorused to scale cube to volume dimensions
texSizeTexture size for correcting the texture mapping
_slicecurrent slice to be drawn (not used in 3D view)

Definition at line 461 of file VolumeShader.cs.

Property Documentation

Texture2D visLU.Effects.VolumeShader.BackFacesTexture
getset

Texture2D for BackFaces

Definition at line 104 of file VolumeShader.cs.

Texture2D visLU.Effects.VolumeShader.CVDTransferTexture
getset

Texture2D for the CVD Transferfunction

Definition at line 131 of file VolumeShader.cs.

Texture2D visLU.Effects.VolumeShader.FrontFacesTexture
getset

Texture2D for FrontFaces

Definition at line 95 of file VolumeShader.cs.

Texture3D visLU.Effects.VolumeShader.GradientTexture
getset

Texture3D for gradients

Definition at line 86 of file VolumeShader.cs.

Texture2D visLU.Effects.VolumeShader.TransferTexture
getset

Texture2D for Transferfunction

Definition at line 113 of file VolumeShader.cs.

Texture2D visLU.Effects.VolumeShader.TransferTextureAlpha
getset

Texture2D for Transferfunction (alpha values)

Definition at line 122 of file VolumeShader.cs.

Texture3D visLU.Effects.VolumeShader.VolumeTexture
getset

Texture3D for volume data

Definition at line 77 of file VolumeShader.cs.


The documentation for this class was generated from the following file: