Kinetic Visualization
 All Classes Functions Variables Pages
Public Member Functions | Public Attributes
RayCasting Class Reference

List of all members.

Public Member Functions

 RayCasting ()
 ~RayCasting ()
void init ()
void resize (int width, int height)
void render (float elapsedTime)
void setVolumeTextureHandle (GLuint tex)
void setTransferTextureHandle (GLuint tex)
void setTransferTexture2DHandle (GLuint tex)
void setTransferTextureParticleHandle (GLuint tex)
void setTransferFunction (bool active)
void setVolumeSize (float width, float height, float depth)
void setTextureLoaded (bool loaded)
void setLight (bool active)
void setPhong (bool active)
void setMip (bool active)
void setAverage (bool active)
void setCompositing (bool active)
void setAdaptive (bool active)
void setStepSize (double step)
void setXClipping (float x)
void setYClipping (float y)
void setZClipping (float z)
void setPCDTextureHandle (GLuint tex)
void SetIsoValue (float val)
void initPixelBuffer ()
void renderCuda ()
void display ()
void AfterLoadingOfVolume (int width, int height, int depth)

Public Attributes

Viewm_volumeBricks_front
Viewm_volumeBricks_back
VertexGeometrym_plane_tmp
int m_type
float invViewMatrix [12]
int width
int height
GLuint pbo
GLuint tex
struct cudaGraphicsResource * cuda_pbo_resource
CudaTexture< float4, 3 > * m_volumen
CudaTexture< float4, 2 > * m_texture
CudaTexture< float4, 2 > * m_hg
CudaTexture< float4, 2 > * m_hg_dev
CudaTexture< float4, 3 > * m_pcd

Constructor & Destructor Documentation

RayCasting::RayCasting ( )

The constructor.

RayCasting::~RayCasting ( )

The destructor.


Member Function Documentation

void RayCasting::init ( )

Initialize the shaders an textures.

void RayCasting::render ( float  elapsedTime)

Renders the scene.

void RayCasting::resize ( int  width,
int  height 
)

Sets the new window size, calculates the vertices from the quad and regenerates the textures for the give parameters.

Parameters:
widthThe new width of the window, measured in pixel.
heightThe new height of the window, measured in pixel.
void RayCasting::setAdaptive ( bool  active)

Activates or deactivates adaptive - Stepsize according to the given parameter.

Parameters:
activeTrue to activate adaptive Stepsize otherwise false.
void RayCasting::setAverage ( bool  active)

Activates or deactivates X-Ray (averaging) according to the given parameter.

Parameters:
activeTrue to activates X-Ray (averaging) otherwise false.
void RayCasting::setCompositing ( bool  active)

Activates or deactivates compositing according to the given parameter.

Parameters:
activeTrue to activates compositing otherwise false.
void RayCasting::SetIsoValue ( float  val)

Change ISO Value

Parameters:
valnew iso value
void RayCasting::setLight ( bool  active)

Activates or deactivates the light according to the given parameter.

Parameters:
activeTrue to activates the light otherwise false.
void RayCasting::setMip ( bool  active)

Activates or deactivates the maximum intensity projection according to the given parameter.

Parameters:
activeTrue to activates the maximum intensity projection otherwise false.
void RayCasting::setPCDTextureHandle ( GLuint  tex)

Sets the texturehandle for preprocessed PCD

Parameters:
texThe texture 3D.
void RayCasting::setPhong ( bool  active)

Activates or deactivates the specular light according to the given parameter.

Parameters:
activeTrue to activates the specular light otherwise false.
void RayCasting::setStepSize ( double  step)

Sets the StepSize to the given parameter

void RayCasting::setTextureLoaded ( bool  loaded)

Sets the value of the textureLoaded property.

Parameters:
loadedTrue if the texture of the volume is loaded, false otherwise.
void RayCasting::setTransferFunction ( bool  active)

Activates or deactivates the transfer function according to the given parameter.

Parameters:
activeTrue to activates the transfer function otherwise false.
void RayCasting::setTransferTexture2DHandle ( GLuint  tex)

Sets the texturehandle for the 2D tranfer texture.

Parameters:
texThe transfer texture 2D.
void RayCasting::setTransferTextureHandle ( GLuint  tex)

Sets the texturehandle for the tranfer texture.

Parameters:
texThe texture ID.
void RayCasting::setTransferTextureParticleHandle ( GLuint  tex)

Sets the texturehandle for the tranfer texture for particles.

Parameters:
texThe texture ID.
void RayCasting::setVolumeSize ( float  width,
float  height,
float  depth 
)

Sets the width, height and depth for the current volume.

Parameters:
widthThe widht of the volume.
heightThe height of the volume.
depthThe depth of the volume.
void RayCasting::setVolumeTextureHandle ( GLuint  tex)

Sets the texturehandle for the volume texture.

Parameters:
texThe texture ID.
void RayCasting::setXClipping ( float  x)

Sets the x-coordinate for clipping.

Parameters:
xThe x-coordinate.
void RayCasting::setYClipping ( float  y)

Sets the y-coordinate for clipping.

Parameters:
yThe y-coordinate.
void RayCasting::setZClipping ( float  z)

Sets the z coordinate for clipping.

Parameters:
zThe z-coordinate.

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