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)
 
SIM_ForceResolvercopy () const override
 
bool threadsafe () const override
 
void getForce (const UT_Vector3 &position, const UT_Vector3 &velocity, const UT_Vector3 &angvel, const fpreal mass, UT_Vector3 &force, UT_Vector3 &torque) override
 
bool hasJacobian () const override
 
void getForceJacobian (const UT_Vector3 &position, const UT_Vector3 &velocity, const UT_Vector3 &angvel, const fpreal mass, UT_Matrix &dFdX, UT_Matrix &dFdV) override
 
- 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

SIM_ForceResolver* SIM_ForceResolverGeneric::copy ( ) const
inlineoverridevirtual

Implements SIM_ForceResolver.

Definition at line 307 of file SIM_Force.h.

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 
)
inlineoverridevirtual

Implements SIM_ForceResolver.

Definition at line 314 of file SIM_Force.h.

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 
)
inlineoverridevirtual

Reimplemented from SIM_ForceResolver.

Definition at line 325 of file SIM_Force.h.

bool SIM_ForceResolverGeneric::hasJacobian ( ) const
inlineoverridevirtual

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.

bool SIM_ForceResolverGeneric::threadsafe ( ) const
inlineoverridevirtual

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: