
X3D Interface | ||||
| Name | Type | Default value | Description | |
![]() | viscosity | SFTransferFunction | null | The volume viscosity |
![]() | velocityIndependent | SFBool | true | If true the viscosity feedback is not dependent on the velocity, i e the viscosity is expressed in pure Newton as opposed to Newton per meters per seconds. |
![]() | snapdrag | SFBool | false | Use the snapdrag effect. |
| Derived from VHTKScalarModeNode | ||||
![]() | scalarVolume | SFScalarVolume | null | The volume to specify the material properties from |
| Derived from VHTKHapticModeNode | ||||
![]() | active | SFBool | TRUE | Specifies if this haptic mode should be active or not |
Public Member Functions | |
| ScalarViscosityMode () | |
| Initializes the internal data. | |
| void | getPrimitives (primitives_t &r, const state &s) |
| System function. | |
| void | initialize () |
| Initializes node functionality. | |
Public Attributes | |
| auto_ptr < H3D::ThreadSafeRefSField < SFTransferFunction > > | viscosity |
| The viscosity to generate. | |
| auto_ptr < H3D::ThreadSafeSField < H3D::SFBool > > | velocityIndependent |
| If true the viscosity feedback is not dependent on the velocity, i e the viscosity is expressed in pure Newton as opposed to Newton per meters per seconds. | |
| auto_ptr < H3D::ThreadSafeSField < H3D::SFBool > > | snapdrag |
| Use snapdrag effect. | |
Static Public Attributes | |
| static H3D::H3DNodeDatabase | database |
| X3D interface function. | |
| VHTK::ScalarViscosityMode::ScalarViscosityMode | ( | ) |
Initializes the internal data.
| void VHTK::ScalarViscosityMode::getPrimitives | ( | primitives_t & | r, | |
| const state & | s | |||
| ) | [virtual] |
| void VHTK::ScalarViscosityMode::initialize | ( | ) | [virtual] |
The viscosity to generate.
If true the viscosity feedback is not dependent on the velocity, i e the viscosity is expressed in pure Newton as opposed to Newton per meters per seconds.
| auto_ptr< H3D::ThreadSafeSField< H3D::SFBool > > VHTK::ScalarViscosityMode::snapdrag |
Use snapdrag effect.
Observe that the snap-drag effect is undefined for velocity dependent viscosity.
1.5.6