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] | _texture3D | the 3D texture to render |
[in] | _transformStack | the active transform stack |
void VolumeSlicer::passViewProjectionMatrix |
( |
ngl::Matrix |
_modelView, |
|
|
ngl::Matrix |
_projection |
|
) |
| |
Passes the view and projection matrices to the class.
- Parameters:
-
[in] | _modelView | the model view matrix |
[in] | _projection | the projection matrix |
void VolumeSlicer::setOpacity |
( |
float |
_opacity | ) |
|
Sets the slice's plane opacity.
- Parameters:
-
[in] | _opacity | the new opacity |
void VolumeSlicer::setSlice |
( |
int |
_slice | ) |
|
Sets the slice to draw.
- Parameters:
-
[in] | _slice | the active slice |
The documentation for this class was generated from the following files: