VHTK::VolumeRenderer Class Reference
[Visualization Nodes]

Inheritance diagram for VHTK::VolumeRenderer:

Inheritance graph
[legend]

List of all members.


Detailed Description

The volume renderer node visually renders a 3D texture.

A specified number of view aligned planes are rendered textured by the texture. A fragment shader is used to convert the scalar value of the texture to a color, using the specified transfer functions for colour and opacity. The transfer functions are applied after interpolation (post interpolation classification).

The size of the rendered data is specified by the pixel size of the texture that is being rendered.

X3D Interface

 NameTypeDefault valueDescription
texture TypedSFNode< X3DTexture3DNode >   null   The volume to visualize as a 3D texture.  
colorFunction SFColorFunction   (0)   The color function that defines the RGB colour components from the scalar value of the 3D texture.  
alphaFunction SFTransferFunction   (0)   The transfer function that defines the opacity from the scalar value of the 3D texture.  
planes SFFloat   80   The number of planes to use.  
blendMode SFString   "OVER"   The blending function to use. One of NONE, OVER, ATTENUATE and MIP.  

Public Types

typedef H3D::DependentSFNode
< H3D::X3DTexture3DNode,
H3D::FieldRef
< H3D::H3DDisplayListObject,
H3D::H3DDisplayListObject::DisplayList,&H3D::H3DDisplayListObject::displayList >
, true > 
SFTexture3DNode

Public Member Functions

virtual void traverseSG (H3D::TraverseInfo &ti)
virtual void render ()

Public Attributes

auto_ptr< SFTexture3DNodetexture
 The volume to visualize as a 3D texture.
auto_ptr< SFColorFunctioncolorFunction
 The transfer function that defines the RGB colour components from the scalar value of the 3D texture.
auto_ptr< SFTransferFunctionalphaFunction
 The transfer function that defines the opacity from the scalar value of the 3D texture.
auto_ptr< H3D::SFFloatplanes
 The number of planes to use.
auto_ptr< H3D::SFStringblendMode
 The blending function to use.

Static Public Attributes

static H3D::H3DNodeDatabase database

Protected Member Functions

void setup_shaders ()
virtual void update_lut ()

Protected Attributes

auto_ptr< UpdateLUT > updateLUT
auto_ptr< H3D::SFMatrix4ftransform
GLuint lut_texid
bool broken

Friends

struct UpdateLUT

Classes

struct  SFBound
struct  UpdateLUT


Member Data Documentation

The volume to visualize as a 3D texture.

The transfer function that defines the RGB colour components from the scalar value of the 3D texture.

The transfer function that defines the opacity from the scalar value of the 3D texture.

The number of planes to use.

The blending function to use.

One of NONE, OVER, ATTENUATE and MIP.


Generated on Thu Mar 5 08:46:58 2009 for Volume Haptics Toolkit by  doxygen 1.5.6