VHTK::Texture3DVolume Class Reference
[Volumetric Data Nodes]

Inheritance diagram for VHTK::Texture3DVolume:

Inheritance graph
[legend]

List of all members.


Detailed Description

Samples a scalar property of an unsampled data node into a 3D texture that can be used with the volume renderer.

X3D Interface

 NameTypeDefault valueDescription
scalarVolume SFScalarDataNode   null   Data to use as source.  
vectorVolume SFVectorDataNode   null   Data to use as source.  
width SFInt32   32   X-resolution  
height SFInt32   32   Y-resolution  
depth SFInt32   32   Z-resolution  
transferFunction SFTransferFunction   (s'=s)    
property SFString   ""   The property that should be sampled to the texture. Valid values are \p SCALAR, \p GRADIENT, \p VECTOR, \p CURL and \p DIV  

Public Member Functions

 Texture3DVolume (H3D::Inst< DisplayList > _displayList=0, H3D::Inst< H3D::SFNode > _metadata=0, H3D::Inst< H3D::SFBool > _repeatS=0, H3D::Inst< H3D::SFBool > _repeatT=0, H3D::Inst< H3D::SFBool > _repeatR=0, H3D::Inst< H3D::SFBool > _scaleToP2=0, H3D::Inst< SFImage > _image=0, H3D::Inst< SFTextureProperties > _textureProperties=0, H3D::Inst< H3D::SFInt32 > _width=0, H3D::Inst< H3D::SFInt32 > _height=0, H3D::Inst< H3D::SFInt32 > _depth=0, H3D::Inst< SFTransferFunction > _tf=0, H3D::Inst< H3D::SFString > _prop=0, H3D::Inst< SFScalarDataNode > _s_data=0, H3D::Inst< SFVectorDataNode > _v_data=0)
 Constructor.

Public Attributes

auto_ptr< H3D::SFInt32width
 The width of the texture.
auto_ptr< H3D::SFInt32height
 The height of the texture.
auto_ptr< H3D::SFInt32depth
 The depth of the texture.
auto_ptr< SFTransferFunctiontransferFunction
 Mapping between volumetric data and texture values.
auto_ptr< H3D::SFStringproperty
 The property that should be sampled to the texture.
auto_ptr< SFScalarDataNodescalarVolume
 Data to sample.
auto_ptr< SFVectorDataNodevectorVolume
 Data to sample.

Static Public Attributes

static H3D::H3DNodeDatabase database
 The H3DNodeDatabase for this node.

Classes

class  SFImage
 The image of this texture. More...


Constructor & Destructor Documentation

VHTK::Texture3DVolume::Texture3DVolume ( H3D::Inst< DisplayList _displayList = 0,
H3D::Inst< H3D::SFNode _metadata = 0,
H3D::Inst< H3D::SFBool _repeatS = 0,
H3D::Inst< H3D::SFBool _repeatT = 0,
H3D::Inst< H3D::SFBool _repeatR = 0,
H3D::Inst< H3D::SFBool _scaleToP2 = 0,
H3D::Inst< SFImage _image = 0,
H3D::Inst< SFTextureProperties _textureProperties = 0,
H3D::Inst< H3D::SFInt32 _width = 0,
H3D::Inst< H3D::SFInt32 _height = 0,
H3D::Inst< H3D::SFInt32 _depth = 0,
H3D::Inst< SFTransferFunction _tf = 0,
H3D::Inst< H3D::SFString _prop = 0,
H3D::Inst< SFScalarDataNode _s_data = 0,
H3D::Inst< SFVectorDataNode _v_data = 0 
)

Constructor.


Member Data Documentation

The width of the texture.

The height of the texture.

The depth of the texture.

Mapping between volumetric data and texture values.

The texture scalars are regarded as normalized to the range 0--1 and not 0--255.

The property that should be sampled to the texture.

If this field is not set, the scalar value of the scalar volume is sampled if present. If the scalar volume is not present, the vector magnitude of the vector volume is sampled.

Valid values are

  • SCALAR - scalar value of the scalar volume
  • GRADIENT - scalar field gradient magnitude
  • VECTOR - vector magnitude of the vector volume
  • CURL - vector curl of the vector volume
  • DIV - vector divergent of the vector volume

Data to sample.

Data to sample.

The H3DNodeDatabase for this node.

Reimplemented from H3D::X3DTexture3DNode.


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