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

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

Inheritance diagram for visLU.Effects.TFWeightsShader:

Public Member Functions

 TFWeightsShader (GraphicsDevice _device, Effect _effect)
 Constructor More...
 
void SetEffectParameter (Matrix _worldViewProjection, Matrix _world)
 Passes Matrixes to the shader. More...
 
void SetEffectParameter (Vector3 _cameraPosition)
 Passes camera position to the shader. More...
 
void SetEffectParameter (float _currControlPoint, float _prevControlPoint, float _nextControlPoint)
 Passes the current control point to the shader. More...
 
void SetEffectParameter (Texture2D _selectedPos)
 Passes the selected positions to the shader. More...
 
void SetEffectParameter (Texture3D _volumeTexture, Vector3 _directLightPosition, Vector3 _stepSize, float _baseSampleDist, float _sampleDist, int _iterations, int _side, Vector4 _scaleFactor, Vector2 _texSize, float _slice)
 Passes various parameters to the shader. More...
 

Public Attributes

EffectParameter world
 
EffectParameter cameraPosition
 

Properties

Texture3D VolumeTexture [get, set]
 Texture3D for volume data 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...
 

Detailed Description

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

Definition at line 18 of file TFWeightsShader.cs.

Constructor & Destructor Documentation

visLU.Effects.TFWeightsShader.TFWeightsShader ( GraphicsDevice  _device,
Effect  _effect 
)

Constructor

Parameters
_game
_deviceGraphicsDevice
_effectEffect, loaded from file

Definition at line 65 of file TFWeightsShader.cs.

Member Function Documentation

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

Passes Matrixes to the shader.

Parameters
_worldViewProjection
_world

Definition at line 198 of file TFWeightsShader.cs.

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

Passes camera position to the shader.

Parameters
_cameraPosition

Definition at line 208 of file TFWeightsShader.cs.

void visLU.Effects.TFWeightsShader.SetEffectParameter ( float  _currControlPoint,
float  _prevControlPoint,
float  _nextControlPoint 
)

Passes the current control point to the shader.

Parameters
_cameraPosition

Definition at line 217 of file TFWeightsShader.cs.

void visLU.Effects.TFWeightsShader.SetEffectParameter ( Texture2D  _selectedPos)

Passes the selected positions to the shader.

Parameters
_cameraPosition

Definition at line 228 of file TFWeightsShader.cs.

void visLU.Effects.TFWeightsShader.SetEffectParameter ( Texture3D  _volumeTexture,
Vector3  _directLightPosition,
Vector3  _stepSize,
float  _baseSampleDist,
float  _sampleDist,
int  _iterations,
int  _side,
Vector4  _scaleFactor,
Vector2  _texSize,
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 243 of file TFWeightsShader.cs.

Property Documentation

Texture2D visLU.Effects.TFWeightsShader.BackFacesTexture
getset

Texture2D for BackFaces

Definition at line 168 of file TFWeightsShader.cs.

Texture2D visLU.Effects.TFWeightsShader.FrontFacesTexture
getset

Texture2D for FrontFaces

Definition at line 155 of file TFWeightsShader.cs.

Texture2D visLU.Effects.TFWeightsShader.TransferTexture
getset

Texture2D for Transferfunction

Definition at line 177 of file TFWeightsShader.cs.

Texture2D visLU.Effects.TFWeightsShader.TransferTextureAlpha
getset

Texture2D for Transferfunction (alpha values)

Definition at line 186 of file TFWeightsShader.cs.

Texture3D visLU.Effects.TFWeightsShader.VolumeTexture
getset

Texture3D for volume data

Definition at line 146 of file TFWeightsShader.cs.


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