VHTK::VectorExtractorField Class Reference
[Volumetric Data Nodes]

Inheritance diagram for VHTK::VectorExtractorField:

Inheritance graph
[legend]

List of all members.


Detailed Description

This is a vector volume that represents a vector property in another volume.

The gradient vector of a scalar volume is extracted if a scalar volume is provided. If a vector volume is provided the vector is extracted if not otherwise specified.

X3D Interface

 NameTypeDefault valueDescription
scalarVolume VHTKScalarDataNode   null   Contains a VHTKScalarDataNode with gradient data which will be used as vector data.  
vectorVolume VHTKVectorDataNode   null   Contains a VHTKVectorDataNode with vector data which will be used as vector data.  
property SFString   ""   The property that should be extracted. One of GRADIENT, VECTOR, CURL or VORTICITY  

Public Member Functions

 VectorExtractorField (H3D::Inst< H3D::SFNode > _metadata=0, H3D::Inst< H3D::Field > _dataChanged=0, H3D::Inst< H3D::SFBool > _scaleVectors=0, H3D::Inst< H3D::SFVec3f > _size=0, H3D::Inst< SFScalarDataNode > _scalarVolume=0, H3D::Inst< SFVectorDataNode > _vectorVolume=0, H3D::Inst< H3D::SFString > _property=0)
virtual H3D::Vec3f getVolumeSize ()
 Get the size of the volume in metres.
H3D::Vec3f getVector (const H3D::Matrix4f &T, const H3D::Vec3f &x)
 Get the vector value at a given position in space.

Public Attributes

auto_ptr< SFScalarDataNodescalarVolume
 Contains a VHTKScalarDataNode with gradient data which will be used as vector data.
auto_ptr< SFVectorDataNodevectorVolume
 Contains a VHTKVectorDataNode with vector data which will be used as vector data.
auto_ptr< H3D::SFStringproperty
 The property that should be used.

Static Public Attributes

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

Protected Attributes

GradientKernel kernel


Member Function Documentation

virtual H3D::Vec3f VHTK::VectorExtractorField::getVolumeSize (  )  [virtual]

Get the size of the volume in metres.

Reimplemented from VHTK::VHTKVectorFieldNode.

H3D::Vec3f VHTK::VectorExtractorField::getVector ( const H3D::Matrix4f &  T,
const H3D::Vec3f &  x 
) [virtual]

Get the vector value at a given position in space.

Implements VHTK::VHTKVectorDataNode.


Member Data Documentation

Contains a VHTKScalarDataNode with gradient data which will be used as vector data.

Contains a VHTKVectorDataNode with vector data which will be used as vector data.

The property that should be used.

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

Valid values are

  • GRADIENT - scalar field gradient magnitude
  • VECTOR - vector magnitude of the vector volume
  • CURL - vector curl of the vector volume
  • VORTICITY - vector curl cross the vector field

The H3DNodeDatabase for this node.

Reimplemented from VHTK::VHTKVectorFieldNode.


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