Kinetic Visualization
 All Classes Functions Variables Pages
Public Member Functions
Slicing Class Reference

List of all members.

Public Member Functions

 Slicing ()
 ~Slicing ()
void init ()
void resize (int width, int height)
void render ()
void setSlicingTextureHandle (GLuint tex)
void setTransferTextureHandle (GLuint tex)
void setTransferFunction (bool active)
void setVolumeSize (float width, float height, float depth)
void setTextureLoaded (bool loaded)
void setXSlice (float x)
void setYSlice (float y)
void setZSlice (float z)

Constructor & Destructor Documentation

Slicing::Slicing ( )

The constructor.

Slicing::~Slicing ( )

The destructor.


Member Function Documentation

void Slicing::init ( )

Initialize the shaders an slicing parameter.

void Slicing::render ( )

Renders the scene.

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

Sets the new window size and calculates the vertices from the quad.

Parameters:
widthThe new width of the window, measured in pixel.
heightThe new height of the window, measured in pixel.
void Slicing::setSlicingTextureHandle ( GLuint  tex)

Sets the texturehandle for the slicing texture.

Parameters:
texThe texture ID.
void Slicing::setTextureLoaded ( bool  loaded)

Sets the value of the textureLoaded property.

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

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

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

Sets the texturehandle for the tranfer texture.

Parameters:
texThe texture ID.
void Slicing::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 Slicing::setXSlice ( float  x)

Sets the x-coordinate for the slice. The value must be in the intervall [0,1].

Parameters:
xThe x-coordinate of the slice.
void Slicing::setYSlice ( float  y)

Sets the y-coordinate for the slice. The value must be in the intervall [0,1].

Parameters:
yThe y-coordinate of the slice.
void Slicing::setZSlice ( float  z)

Sets the z-coordinate for the slice. The value must be in the intervall [0,1].

Parameters:
zThe z-coordinate of the slice.

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