29 #ifndef __COORDINATEDEFORMER_H__
30 #define __COORDINATEDEFORMER_H__
64 Inst< SFFloat > _plasticity = 0,
65 Inst< SFString > _deviceAlgorithm = 0 ):
66 distanceToDepth( _distanceToDepth ),
67 plasticity( _plasticity ),
68 deviceAlgorithm( _deviceAlgorithm ),
69 touched_last_time( false ) {
71 type_name =
"CoordinateDeformer";
72 database.initFields(
this );
74 plasticity->setValue( 0 );
75 deviceAlgorithm->addValidValue(
"MAX" );
76 deviceAlgorithm->addValidValue(
"AVG" );
77 deviceAlgorithm->setValue(
"MAX" );
82 virtual void deformPoints(
const vector< bool > &is_touched,
83 const vector< Vec3f > &touch_point,
84 const vector< Vec3f > &touch_normal,
85 const vector< Vec3f > &touch_force,
86 const vector< Vec3f > &penetration_points,
87 const vector< Vec3f > &orig_points,
88 const vector< Vec3f > &resting_points,
89 const vector< Vec3f > &deformed__points,
90 vector< Vec3f > &new_resting_points,
91 vector< Vec3f > &new_deformed_points );
126 bool touched_last_time;
Header file for H3DFunctionNode.
Contains the MFBool field class.
Contains the SFFloat field class.
Contains the SFString field class.
Template to make sure that the Node that is set in a SFNode is of a specified Node type.
Definition: SFNode.h:97
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194