29 #ifndef __HAPTICTEXTURESSURFACE_H__
30 #define __HAPTICTEXTURESSURFACE_H__
36 #include <HAPI/HapticTexturesSurface.h>
61 FieldRef< H3DImageObject,
62 H3DImageObject::SFImage,
63 &H3DImageObject::image >,
73 virtual void onAdd(
Node *n );
76 virtual void onRemove(
Node *n );
79 HAPI::HapticTexturesSurface::ParameterType parameter_type;
88 TypedField< SFBool, H3DImageObject::SFImage,
89 AnyNumber< H3DImageObject::SFImage > > > {
91 HAPI::HapticTexturesSurface::ParameterType parameter_type;
93 virtual void update();
99 public AutoUpdate< OnValueChangeSField< SFFloat > > {
101 HAPI::HapticTexturesSurface::ParameterType parameter_type;
104 virtual void onValueChange(
const H3DFloat &v );
109 Inst< UpdateStiffness > _stiffness = 0,
110 Inst< UpdateDamping > _damping = 0,
111 Inst< UpdateStaticFriction > _staticFriction = 0,
112 Inst< UpdateDynamicFriction > _dynamicFriction = 0,
113 Inst< SFBool > _useRelativeValues = 0,
114 Inst< SFImageObjectNode > _stiffnessMap = 0,
115 Inst< UpdateMinMaxParamValue > _maxStiffness = 0,
116 Inst< UpdateMinMaxParamValue > _minStiffness = 0,
117 Inst< SFImageObjectNode > _dampingMap = 0,
118 Inst< UpdateMinMaxParamValue > _maxDamping = 0,
119 Inst< UpdateMinMaxParamValue > _minDamping = 0,
120 Inst< SFImageObjectNode > _staticFrictionMap = 0,
121 Inst< UpdateMinMaxParamValue > _maxStaticFriction = 0,
122 Inst< UpdateMinMaxParamValue > _minStaticFriction = 0,
123 Inst< SFImageObjectNode > _dynamicFrictionMap = 0,
124 Inst< UpdateMinMaxParamValue > _maxDynamicFriction = 0,
125 Inst< UpdateMinMaxParamValue > _minDynamicFriction = 0 );
245 H3DUniquePtr< SetImagePtr > setStiffnessPtr;
249 H3DUniquePtr< SetImagePtr > setDampingPtr;
253 H3DUniquePtr< SetImagePtr > setStaticFrictionPtr;
257 H3DUniquePtr< SetImagePtr > setDynamicFrictionPtr;
Contains the DependentSFNode and DependentMFNode template classes.
Header file for H3DFrictionalSurfaceNode.
Header file for H3DImageObject, X3D abstract texture scene-graph node.
DependentSFNodeObject is similar to DependentSFNode but uses TypedSFNodeObject instead of TypedSFNode...
Definition: DependentNodeFields.h:377
Class used for specifying a field member of a node in a DependentSFNode or DependentMFNode specificat...
Definition: DependentNodeFields.h:48
Base class for surfaces with friction.
Definition: H3DFrictionalSurfaceNode.h:40
The SFImage field is a field containing an Image pointer.
Definition: H3DImageObject.h:50
This abstract interface is inherited by all nodes that contains an SFImage object with an Image conta...
Definition: H3DImageObject.h:45
H3DUniquePtr< SFImage > image
Field containing the Image to use as a texture.
Definition: H3DImageObject.h:191
An SFNode where we make sure the type of the nodes contained is a subclass of H3DImageObject.
Definition: HapticTexturesSurface.h:64
Field class used to transfer the routed image to the HAPISurfaceObject.
Definition: HapticTexturesSurface.h:89
Field class used to set the min and max values of the different parameters in the HAPISurfaceObject.
Definition: HapticTexturesSurface.h:99
Surface in which textures can be used to control the values of the parameters stiffness,...
Definition: HapticTexturesSurface.h:55
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: HapticTexturesSurface.h:240
H3DUniquePtr< UpdateMinMaxParamValue > maxStiffness
The maximum allowed value of the stiffness.
Definition: HapticTexturesSurface.h:167
H3DUniquePtr< UpdateMinMaxParamValue > maxDynamicFriction
The maximum allowed value of the dynamic friction.
Definition: HapticTexturesSurface.h:197
H3DUniquePtr< UpdateMinMaxParamValue > minDynamicFriction
The minimum allowed value of the dynamic friction.
Definition: HapticTexturesSurface.h:237
H3DUniquePtr< UpdateMinMaxParamValue > minStiffness
The minimum allowed value of the stiffness.
Definition: HapticTexturesSurface.h:207
H3DUniquePtr< SFImageObjectNode > stiffnessMap
The texture used to map stiffness values.
Definition: HapticTexturesSurface.h:136
H3DUniquePtr< UpdateMinMaxParamValue > minDamping
The minimum allowed value of the damping.
Definition: HapticTexturesSurface.h:217
H3DUniquePtr< SFImageObjectNode > staticFrictionMap
The texture used to map static friction values.
Definition: HapticTexturesSurface.h:150
H3DUniquePtr< SFImageObjectNode > dynamicFrictionMap
The texture used to map dynamic friction values.
Definition: HapticTexturesSurface.h:157
H3DUniquePtr< UpdateMinMaxParamValue > minStaticFriction
The minimum allowed value of the static friction.
Definition: HapticTexturesSurface.h:227
H3DUniquePtr< UpdateMinMaxParamValue > maxStaticFriction
The maximum allowed value of the static friction.
Definition: HapticTexturesSurface.h:187
H3DUniquePtr< UpdateMinMaxParamValue > maxDamping
The maximum allowed value of the damping.
Definition: HapticTexturesSurface.h:177
H3DUniquePtr< SFImageObjectNode > dampingMap
The texture used to map damping values.
Definition: HapticTexturesSurface.h:143
Node is the base class for all classes that can be part of the H3D scene-graph.
Definition: Node.h:46
H3D API namespace.
Definition: Anchor.h:38
The AutoUpdate field is a template to force the BaseField to update itself as soon as an event is rec...
Definition: FieldTemplates.h:130
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194