HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SIM_ForceResolverGeneric Class Reference

#include <SIM_Force.h>

+ Inheritance diagram for SIM_ForceResolverGeneric:

Public Member Functions

 SIM_ForceResolverGeneric (const SIM_Force *force, const SIM_Object *object)
 
virtual SIM_ForceResolvercopy () const
 
virtual bool threadsafe () const
 
virtual void getForce (const UT_Vector3 &position, const UT_Vector3 &velocity, const UT_Vector3 &angvel, const fpreal mass, UT_Vector3 &force, UT_Vector3 &torque)
 
virtual bool hasJacobian () const
 
virtual void getForceJacobian (const UT_Vector3 &position, const UT_Vector3 &velocity, const UT_Vector3 &angvel, const fpreal mass, UT_Matrix &dFdX, UT_Matrix &dFdV)
 
- Public Member Functions inherited from SIM_ForceResolver
 SIM_ForceResolver ()
 
 SIM_ForceResolver (const SIM_Force *force, const SIM_Object *obj)
 
 SIM_ForceResolver (const SIM_ForceResolver &src)
 
virtual ~SIM_ForceResolver ()
 
SIM_ForceResolveroperator= (const SIM_ForceResolver &src)
 
void applyNoise (const UT_Vector3 &pos, UT_Vector3 &forceortorque)
 
void applyNoise (const UT_Vector3 &pos, UT_Vector3 &force, UT_Vector3 &torque)
 
void applyNoiseJacobian (const UT_Vector3 &pos, UT_Matrix &dFdX, UT_Matrix &dFdV)
 

Protected Attributes

const SIM_ForcemyForce
 
const SIM_ObjectmyObject
 
- Protected Attributes inherited from SIM_ForceResolver
UT_ValArray
< SIM_PropertyResolver * > 
myNoiseResolvers
 

Detailed Description

Definition at line 297 of file SIM_Force.h.

Constructor & Destructor Documentation

SIM_ForceResolverGeneric::SIM_ForceResolverGeneric ( const SIM_Force force,
const SIM_Object object 
)
inline

Definition at line 300 of file SIM_Force.h.

Member Function Documentation

virtual SIM_ForceResolver* SIM_ForceResolverGeneric::copy ( void  ) const
inlinevirtual

Implements SIM_ForceResolver.

Definition at line 307 of file SIM_Force.h.

virtual void SIM_ForceResolverGeneric::getForce ( const UT_Vector3 position,
const UT_Vector3 velocity,
const UT_Vector3 angvel,
const fpreal  mass,
UT_Vector3 force,
UT_Vector3 torque 
)
inlinevirtual

Implements SIM_ForceResolver.

Definition at line 314 of file SIM_Force.h.

virtual void SIM_ForceResolverGeneric::getForceJacobian ( const UT_Vector3 position,
const UT_Vector3 velocity,
const UT_Vector3 angvel,
const fpreal  mass,
UT_Matrix dFdX,
UT_Matrix dFdV 
)
inlinevirtual

Reimplemented from SIM_ForceResolver.

Definition at line 325 of file SIM_Force.h.

virtual bool SIM_ForceResolverGeneric::hasJacobian ( ) const
inlinevirtual

Whether the getForceJacobian returns non-zero values. The default implementation is to always return a 0 jacobian, hence hasJacobian of false.

Reimplemented from SIM_ForceResolver.

Definition at line 324 of file SIM_Force.h.

virtual bool SIM_ForceResolverGeneric::threadsafe ( ) const
inlinevirtual

Defaults to the resolver being threadsafe provided all of the noise resolvers are threadsafe.

Reimplemented from SIM_ForceResolver.

Definition at line 312 of file SIM_Force.h.

Member Data Documentation

const SIM_Force* SIM_ForceResolverGeneric::myForce
protected

Definition at line 338 of file SIM_Force.h.

const SIM_Object* SIM_ForceResolverGeneric::myObject
protected

Definition at line 339 of file SIM_Force.h.


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