Blender V5.0
btDeformableMousePickingForce Class Reference

#include <btDeformableMousePickingForce.h>

Inherits btDeformableLagrangianForce.

Public Types

typedef btAlignedObjectArray< btVector3TVStack
Public Types inherited from btDeformableLagrangianForce
typedef btAlignedObjectArray< btVector3TVStack

Public Member Functions

 btDeformableMousePickingForce (btScalar k, btScalar d, const btSoftBody::Face &face, btVector3 mouse_pos, btScalar maxForce=0.3)
virtual void addScaledForces (btScalar scale, TVStack &force)
virtual void addScaledExplicitForce (btScalar scale, TVStack &force)
virtual void addScaledDampingForce (btScalar scale, TVStack &force)
virtual void addScaledElasticForce (btScalar scale, TVStack &force)
virtual void addScaledDampingForceDifferential (btScalar scale, const TVStack &dv, TVStack &df)
virtual void buildDampingForceDifferentialDiagonal (btScalar scale, TVStack &diagA)
virtual double totalElasticEnergy (btScalar dt)
virtual double totalDampingEnergy (btScalar dt)
virtual void addScaledElasticForceDifferential (btScalar scale, const TVStack &dx, TVStack &df)
void setMousePos (const btVector3 &p)
virtual btDeformableLagrangianForceType getForceType ()
Public Member Functions inherited from btDeformableLagrangianForce
 btDeformableLagrangianForce ()
virtual ~btDeformableLagrangianForce ()
virtual void addScaledHessian (btScalar scale)
virtual void reinitialize (bool nodeUpdated)
virtual int getNumNodes ()
virtual void addSoftBody (btSoftBody *psb)
virtual void removeSoftBody (btSoftBody *psb)
virtual void setIndices (const btAlignedObjectArray< btSoftBody::Node * > *nodes)
virtual btMatrix3x3 Ds (int id0, int id1, int id2, int id3, const TVStack &dx)
virtual btMatrix3x3 DsFromVelocity (const btSoftBody::Node *n0, const btSoftBody::Node *n1, const btSoftBody::Node *n2, const btSoftBody::Node *n3)
virtual void testDerivative ()
virtual void testHessian ()
virtual double totalEnergy (btScalar dt)

Additional Inherited Members

Public Attributes inherited from btDeformableLagrangianForce
btAlignedObjectArray< btSoftBody * > m_softBodies
const btAlignedObjectArray< btSoftBody::Node * > * m_nodes

Detailed Description

Definition at line 21 of file btDeformableMousePickingForce.h.

Member Typedef Documentation

◆ TVStack

Constructor & Destructor Documentation

◆ btDeformableMousePickingForce()

btDeformableMousePickingForce::btDeformableMousePickingForce ( btScalar k,
btScalar d,
const btSoftBody::Face & face,
btVector3 mouse_pos,
btScalar maxForce = 0.3 )
inline

Definition at line 32 of file btDeformableMousePickingForce.h.

References btVector3.

Member Function Documentation

◆ addScaledDampingForce()

virtual void btDeformableMousePickingForce::addScaledDampingForce ( btScalar scale,
TVStack & force )
inlinevirtual

Implements btDeformableLagrangianForce.

Definition at line 47 of file btDeformableMousePickingForce.h.

References btVector3, i, normalized(), and SIMD_EPSILON.

Referenced by addScaledForces().

◆ addScaledDampingForceDifferential()

virtual void btDeformableMousePickingForce::addScaledDampingForceDifferential ( btScalar scale,
const TVStack & dv,
TVStack & df )
inlinevirtual

Implements btDeformableLagrangianForce.

Definition at line 78 of file btDeformableMousePickingForce.h.

References btVector3, i, normalized(), and SIMD_EPSILON.

◆ addScaledElasticForce()

virtual void btDeformableMousePickingForce::addScaledElasticForce ( btScalar scale,
TVStack & force )
inlinevirtual

Definition at line 62 of file btDeformableMousePickingForce.h.

References btVector3, and i.

Referenced by addScaledExplicitForce(), and addScaledForces().

◆ addScaledElasticForceDifferential()

virtual void btDeformableMousePickingForce::addScaledElasticForceDifferential ( btScalar scale,
const TVStack & dx,
TVStack & df )
inlinevirtual

Implements btDeformableLagrangianForce.

Definition at line 129 of file btDeformableMousePickingForce.h.

References btVector3, i, and SIMD_EPSILON.

◆ addScaledExplicitForce()

virtual void btDeformableMousePickingForce::addScaledExplicitForce ( btScalar scale,
TVStack & force )
inlinevirtual

Implements btDeformableLagrangianForce.

Definition at line 42 of file btDeformableMousePickingForce.h.

References addScaledElasticForce().

◆ addScaledForces()

virtual void btDeformableMousePickingForce::addScaledForces ( btScalar scale,
TVStack & force )
inlinevirtual

◆ buildDampingForceDifferentialDiagonal()

virtual void btDeformableMousePickingForce::buildDampingForceDifferentialDiagonal ( btScalar scale,
TVStack & diagA )
inlinevirtual

Implements btDeformableLagrangianForce.

Definition at line 93 of file btDeformableMousePickingForce.h.

◆ getForceType()

virtual btDeformableLagrangianForceType btDeformableMousePickingForce::getForceType ( )
inlinevirtual

Implements btDeformableLagrangianForce.

Definition at line 156 of file btDeformableMousePickingForce.h.

References BT_MOUSE_PICKING_FORCE.

◆ setMousePos()

void btDeformableMousePickingForce::setMousePos ( const btVector3 & p)
inline

Definition at line 151 of file btDeformableMousePickingForce.h.

References btVector3.

◆ totalDampingEnergy()

virtual double btDeformableMousePickingForce::totalDampingEnergy ( btScalar dt)
inlinevirtual

Reimplemented from btDeformableLagrangianForce.

Definition at line 112 of file btDeformableMousePickingForce.h.

References btVector3, i, normalized(), and SIMD_EPSILON.

◆ totalElasticEnergy()

virtual double btDeformableMousePickingForce::totalElasticEnergy ( btScalar dt)
inlinevirtual

Reimplemented from btDeformableLagrangianForce.

Definition at line 95 of file btDeformableMousePickingForce.h.

References btVector3, and i.


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