VHTK::StreamRibbons Class Reference
[Visualization Nodes]

Inheritance diagram for VHTK::StreamRibbons:

Inheritance graph
[legend]

List of all members.


Detailed Description

Creates stream ribbons from a vector volume.

From a set of seeds stream ribbons are rendered from vector data provided by a VectorVolume node. The ribbon colours are specified from vector magnitude through specified colour function.

Every field is routed to an update field and will upon change trigger an update of stream ribbons.

X3D Interface

 NameTypeDefault valueDescription
vectorVolume SFVectorVolume   null   The volume to visualize with this set of stream ribbons  
scalarVolume SFScalarVolume   (ScalarExtractorField)   This volume controls the color of the tubes. If not specified the vector magnitude is used.  
source MFVec3f   []   Seeds for stream ribbons in the local coordinate system  
step SFFloat   0.01   Integration step for the ribbon generation  
twoSided SFBool   TRUE   If true the ribbons will be generated in two direction from the seed  
maxLength SFFloat   1.0   The maximum length of the generated ribbons  
threshold SFFloat   0.0   If the vector magnitude is lower than this value the ribbon is terminated.  
colorFunction SFColorFunction   (0.0--1.0)   Color of the ribbons controlled by the vector magnitude  
width SFFloat   0.01   Width of the ribbon. A ribbon getting too wide (because of divergence) will be split into two  

Public Member Functions

void initialize ()
void traverseSG (H3D::TraverseInfo &ti)

Public Attributes

auto_ptr< SFVectorDataNodevectorVolume
auto_ptr< SFScalarDataNodescalarVolume
auto_ptr< H3D::MFVec3fsource
auto_ptr< SFColorFunctioncolorFunction
auto_ptr< H3D::SFFloatstep
auto_ptr< H3D::SFBooltwoSided
auto_ptr< H3D::SFFloatmaxLength
auto_ptr< H3D::SFFloatthreshold
auto_ptr< H3D::SFFloatwidth
auto_ptr< H3D::SFBooluseEuler

Static Public Attributes

static H3D::H3DNodeDatabase database

Protected Member Functions

void createRibbons ()
H3D::H3DFloat addRibbon (H3D::Vec3f p1, H3D::Vec3f p2, H3D::H3DFloat max_length, H3D::H3DFloat step, std::vector< H3D::Vec3f > &point, std::vector< H3D::Vec3f > &normal, std::vector< H3D::RGB > &rgb, std::vector< int > &index)

Protected Attributes

auto_ptr< Update > update

Friends

struct Update

Classes

struct  Update


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