
Implement your vector field as a function field. Then route the position field of this node as input to that field and route the result to the value field of this node. As request for values are comming to the value extractor function of this node, the routing will be activated to define that value.
X3D Interface | ||||
| Name | Type | Default value | Description | |
![]() | position | SFVec3f | (0,0,0) | This field states the requested value. |
![]() | value | SFVec3f | 0 | This field should set the requested value of the specified position. |
| Derived from VHTKVectorFieldNode | ||||
![]() | size | SFVec3f | (2,2,2) | The size of this volume. |
Public Member Functions | |
| VectorRoutedField (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< H3D::ThreadSafeSField< H3D::SFVec3f > > _position=0, H3D::Inst< H3D::ThreadSafeSField< H3D::SFVec3f > > _value=0) | |
| Constructor. | |
| virtual H3D::Vec3f | getVector (const H3D::Matrix4f &T, const H3D::Vec3f &x) |
| Get the vector value at a given position in space. | |
| virtual H3D::Vec3f | getCurl (const H3D::Matrix4f &T, const H3D::Vec3f &x) |
| Get the curl of the vector field at a given position in space. | |
| virtual H3D::H3DFloat | getDivergence (const H3D::Matrix4f &T, const H3D::Vec3f &x) |
| Get the divergent at a given position in space. | |
Public Attributes | |
| auto_ptr < H3D::ThreadSafeSField < H3D::SFVec3f > > | position |
| This field states the position of the requested value. | |
| auto_ptr < H3D::ThreadSafeSField < H3D::SFVec3f > > | value |
| This field should set the requested value of the specified position. | |
Static Public Attributes | |
| static H3D::H3DNodeDatabase | database |
| The H3DNodeDatabase for this node. | |
| VHTK::VectorRoutedField::VectorRoutedField | ( | 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< H3D::ThreadSafeSField< H3D::SFVec3f > > | _position = 0, |
|||
| H3D::Inst< H3D::ThreadSafeSField< H3D::SFVec3f > > | _value = 0 | |||
| ) |
Constructor.
| virtual H3D::Vec3f VHTK::VectorRoutedField::getVector | ( | const H3D::Matrix4f & | T, | |
| const H3D::Vec3f & | x | |||
| ) | [virtual] |
Get the vector value at a given position in space.
| T | is the transforation matrix from local space to the space the volume data is specified in. | |
| x | is the local position in space. |
Implements VHTK::VHTKVectorDataNode.
| virtual H3D::Vec3f VHTK::VectorRoutedField::getCurl | ( | const H3D::Matrix4f & | T, | |
| const H3D::Vec3f & | x | |||
| ) | [virtual] |
Get the curl of the vector field at a given position in space.
| T | is the transforation matrix from local space to the space the volume data is specified in. | |
| x | is the local position in space. |
Reimplemented from VHTK::VHTKVectorFieldNode.
| virtual H3D::H3DFloat VHTK::VectorRoutedField::getDivergence | ( | const H3D::Matrix4f & | T, | |
| const H3D::Vec3f & | x | |||
| ) | [virtual] |
Get the divergent at a given position in space.
| T | is the transforation matrix from local space to the space the volume data is specified in. | |
| x | is the local position in space. |
Reimplemented from VHTK::VHTKVectorFieldNode.
| auto_ptr< H3D::ThreadSafeSField< H3D::SFVec3f > > VHTK::VectorRoutedField::position |
This field states the position of the requested value.
| auto_ptr< H3D::ThreadSafeSField< H3D::SFVec3f > > VHTK::VectorRoutedField::value |
This field should set the requested value of the specified position.
1.5.6