Public Member Functions | Protected Attributes

btDefaultSoftBodySolver Class Reference

#include <btDefaultSoftBodySolver.h>

Inheritance diagram for btDefaultSoftBodySolver:
Inheritance graph
[legend]
Collaboration diagram for btDefaultSoftBodySolver:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 btDefaultSoftBodySolver ()
virtual ~btDefaultSoftBodySolver ()
virtual SolverTypes getSolverType () const
 Return the type of the solver.
virtual bool checkInitialized ()
 Ensure that this solver is initialized.
virtual void updateSoftBodies ()
 Perform necessary per-step updates of soft bodies such as recomputing normals and bounding boxes.
virtual void optimize (btAlignedObjectArray< btSoftBody * > &softBodies, bool forceUpdate=false)
 Optimize soft bodies in this solver.
virtual void copyBackToSoftBodies (bool bMove=true)
 Copy necessary data back to the original soft body source objects.
virtual void solveConstraints (float solverdt)
 Solve constraints for a set of soft bodies.
virtual void predictMotion (float solverdt)
 Predict motion of soft bodies into next timestep.
virtual void copySoftBodyToVertexBuffer (const btSoftBody *const softBody, btVertexBufferDescriptor *vertexBuffer)
virtual void processCollision (btSoftBody *, const btCollisionObjectWrapper *)
virtual void processCollision (btSoftBody *, btSoftBody *)
 Process a collision between two soft bodies.

Protected Attributes

bool m_updateSolverConstants
 Variable to define whether we need to update solver constants on the next iteration.
btAlignedObjectArray
< btSoftBody * > 
m_softBodySet

Detailed Description

Definition at line 24 of file btDefaultSoftBodySolver.h.


Constructor & Destructor Documentation

btDefaultSoftBodySolver::btDefaultSoftBodySolver (  ) 

Definition at line 25 of file btDefaultSoftBodySolver.cpp.

btDefaultSoftBodySolver::~btDefaultSoftBodySolver (  )  [virtual]

Definition at line 33 of file btDefaultSoftBodySolver.cpp.


Member Function Documentation

bool btDefaultSoftBodySolver::checkInitialized (  )  [virtual]

Ensure that this solver is initialized.

Implements btSoftBodySolver.

Definition at line 60 of file btDefaultSoftBodySolver.cpp.

void btDefaultSoftBodySolver::copyBackToSoftBodies ( bool  bMove = true  )  [virtual]

Copy necessary data back to the original soft body source objects.

Implements btSoftBodySolver.

Definition at line 38 of file btDefaultSoftBodySolver.cpp.

void btDefaultSoftBodySolver::copySoftBodyToVertexBuffer ( const btSoftBody *const   softBody,
btVertexBufferDescriptor vertexBuffer 
) [virtual]

Definition at line 79 of file btDefaultSoftBodySolver.cpp.

virtual SolverTypes btDefaultSoftBodySolver::getSolverType (  )  const [inline, virtual]

Return the type of the solver.

Implements btSoftBodySolver.

Definition at line 38 of file btDefaultSoftBodySolver.h.

void btDefaultSoftBodySolver::optimize ( btAlignedObjectArray< btSoftBody * > &  softBodies,
bool  forceUpdate = false 
) [virtual]

Optimize soft bodies in this solver.

Implements btSoftBodySolver.

Definition at line 43 of file btDefaultSoftBodySolver.cpp.

void btDefaultSoftBodySolver::predictMotion ( float  solverdt  )  [virtual]

Predict motion of soft bodies into next timestep.

Implements btSoftBodySolver.

Definition at line 139 of file btDefaultSoftBodySolver.cpp.

void btDefaultSoftBodySolver::processCollision ( btSoftBody softBody,
const btCollisionObjectWrapper collisionObjectWrap 
) [virtual]

Definition at line 133 of file btDefaultSoftBodySolver.cpp.

void btDefaultSoftBodySolver::processCollision ( btSoftBody ,
btSoftBody  
) [virtual]

Process a collision between two soft bodies.

Implements btSoftBodySolver.

Definition at line 127 of file btDefaultSoftBodySolver.cpp.

void btDefaultSoftBodySolver::solveConstraints ( float  solverdt  )  [virtual]

Solve constraints for a set of soft bodies.

Implements btSoftBodySolver.

Definition at line 65 of file btDefaultSoftBodySolver.cpp.

void btDefaultSoftBodySolver::updateSoftBodies (  )  [virtual]

Perform necessary per-step updates of soft bodies such as recomputing normals and bounding boxes.

Implements btSoftBodySolver.

Definition at line 48 of file btDefaultSoftBodySolver.cpp.


Member Data Documentation

Definition at line 30 of file btDefaultSoftBodySolver.h.

Variable to define whether we need to update solver constants on the next iteration.

Definition at line 28 of file btDefaultSoftBodySolver.h.


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