HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HDK_Sample::SIM_HairForceCallback Class Reference
+ Inheritance diagram for HDK_Sample::SIM_HairForceCallback:

Public Member Functions

 SIM_HairForceCallback (GU_Detail &gdp, const SIM_Object &object, const UT_DMatrix4 &xform, fpreal timestep, const GA_RWHandleF &masshandle, const GA_RWHandleV3 &velhandle)
 
virtual ~SIM_HairForceCallback ()
 
virtual void callbackConst (const SIM_Data *data, const char *name)
 
virtual void forceCallbackOffset (GA_Offset ptoff, const UT_Vector3 &force, const UT_Vector3 &torque)
 
- Public Member Functions inherited from SIM_PointForceCallback
 SIM_PointForceCallback ()
 
virtual ~SIM_PointForceCallback ()
 
- Public Member Functions inherited from SIM_EachDataCallback
 SIM_EachDataCallback ()
 
virtual ~SIM_EachDataCallback ()
 
virtual bool callbackNeedsName () const
 
virtual void callback (SIM_Data *data, const char *name)
 

Detailed Description

Examples:
SIM/SIM_SolverHair.C.

Definition at line 50 of file SIM_SolverHair.C.

Constructor & Destructor Documentation

SIM_HairForceCallback::SIM_HairForceCallback ( GU_Detail gdp,
const SIM_Object object,
const UT_DMatrix4 xform,
fpreal  timestep,
const GA_RWHandleF masshandle,
const GA_RWHandleV3 velhandle 
)
Examples:
SIM/SIM_SolverHair.C.

Definition at line 88 of file SIM_SolverHair.C.

SIM_HairForceCallback::~SIM_HairForceCallback ( )
virtual
Examples:
SIM/SIM_SolverHair.C.

Definition at line 103 of file SIM_SolverHair.C.

Member Function Documentation

void SIM_HairForceCallback::callbackConst ( const SIM_Data data,
const char *  name 
)
virtual

This is the callback function that is called for each data found by SIM_Data::forEachConstSubData(). The name parameter is the relative path to the data item from the starting data item for the search (the startfrom parameter to SIM_Data::forEachConstSubData()).

Implements SIM_EachDataCallback.

Examples:
SIM/SIM_SolverHair.C.

Definition at line 108 of file SIM_SolverHair.C.

void SIM_HairForceCallback::forceCallbackOffset ( GA_Offset  ptoff,
const UT_Vector3 force,
const UT_Vector3 torque 
)
virtual

This callback is called for each point in a geometry. This callback is executed by SIM_Force::getPointForces(). The returned force and torque are in either geometry space or world space depnding on the value of the forcesinworldspace flag passed to the getPointForces function.

Implements SIM_PointForceCallback.

Examples:
SIM/SIM_SolverHair.C.

Definition at line 118 of file SIM_SolverHair.C.


The documentation for this class was generated from the following file: