
From a set of seeds stream tubes are rendered from vector data provided by a VectorVolume node. The tube colours are specified from vector magnitude through specified colour functions.
Every field is routed to an update field and will upon change trigger an update of stream tubes.
X3D Interface | ||||
| Name | Type | Default value | Description | |
![]() | vectorVolume | SFVectorVolume | null | The volume to visualize with this set of stream tubes |
![]() | scalarVolume | SFScalarVolume | (ScalarExtractorField) | This volume controls the color of the tubes. If not specified the vector magnitude is used. |
![]() | radiusVolume | SFScalarVolume | null | It present this volume determines the radius of the tubes. |
![]() | source | MFVec3f | [] | Seeds for stream tubes in the local coordinate system |
![]() | step | SFFloat | 0.01 | Integration step for the tube generation |
![]() | twoSided | SFBool | TRUE | If true the tubes will be generated in two direction from the seed |
![]() | maxLength | SFFloat | 0.1 | The maximum length of the generated tubes |
![]() | maxRadius | SFFloat | -1 | The maximum radius of the generated tube. If the radius specified through an external volume becomes too large the tube is terminated. |
![]() | threshold | SFFloat | 0.0 | If the vector magnitude is lower than this value the tube is terminated |
![]() | colorFunction | SFColorFunction | (0.0--1.0) | Color of the tubes controlled by scalarVolume |
![]() | radius | SFFloat | 0.01 | Radius of the tube, if not specified through the radiusVolume field. |
Public Member Functions | |
| void | initialize () |
| void | traverseSG (H3D::TraverseInfo &ti) |
Public Attributes | |
| auto_ptr< SFVectorDataNode > | vectorVolume |
| auto_ptr< SFScalarDataNode > | scalarVolume |
| auto_ptr< SFScalarDataNode > | radiusVolume |
| auto_ptr< H3D::MFVec3f > | source |
| auto_ptr< SFColorFunction > | colorFunction |
| auto_ptr< H3D::SFFloat > | step |
| auto_ptr< H3D::SFBool > | twoSided |
| auto_ptr< H3D::SFFloat > | maxLength |
| auto_ptr< H3D::SFFloat > | maxRadius |
| auto_ptr< H3D::SFFloat > | threshold |
| auto_ptr< H3D::SFFloat > | radius |
| auto_ptr< H3D::SFInt32 > | subdivision |
| auto_ptr< H3D::SFBool > | useEuler |
Static Public Attributes | |
| static H3D::H3DNodeDatabase | database |
Protected Member Functions | |
| void | createTubes () |
| H3D::H3DFloat | addTube (H3D::Vec3f p, 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 |
1.5.6