Eulerian Smoke Simulation on the GPU
VolumeSlicer Class Reference

A class that renders a one slice of a 3D texture as a unit plane. More...

#include <VolumeSlicer.h>

List of all members.

Public Member Functions

 VolumeSlicer ()
 Constructor.
 ~VolumeSlicer ()
 Destructor.
void init ()
 Initialization function.
void passViewProjectionMatrix (ngl::Matrix _modelView, ngl::Matrix _projection)
 Passes the view and projection matrices to the class.
void drawSlice (Texture3D *_texture3D, ngl::TransformStack &_transformStack)
 Draws a volume (3D texture) as a 2D plane.
void setSlice (int _slice)
 Sets the slice to draw.
void setOpacity (float _opacity)
 Sets the slice's plane opacity.

Detailed Description

A class that renders a one slice of a 3D texture as a unit plane.

Author:
Nikolaos Verigakis
Version:
1.0
Date:
01/07/11 Revision History : Initial Version 01/07/11

Member Function Documentation

void VolumeSlicer::drawSlice ( Texture3D _texture3D,
ngl::TransformStack &  _transformStack 
)

Draws a volume (3D texture) as a 2D plane.

Parameters:
[in]_texture3Dthe 3D texture to render
[in]_transformStackthe active transform stack
void VolumeSlicer::passViewProjectionMatrix ( ngl::Matrix  _modelView,
ngl::Matrix  _projection 
)

Passes the view and projection matrices to the class.

Parameters:
[in]_modelViewthe model view matrix
[in]_projectionthe projection matrix
void VolumeSlicer::setOpacity ( float  _opacity)

Sets the slice's plane opacity.

Parameters:
[in]_opacitythe new opacity
void VolumeSlicer::setSlice ( int  _slice)

Sets the slice to draw.

Parameters:
[in]_slicethe active slice

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables