Public Member Functions | Protected Member Functions | Protected Attributes

btOpenCLSoftBodySolverSIMDAware Class Reference

#include <btSoftBodySolver_OpenCLSIMDAware.h>

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

List of all members.

Public Member Functions

 btOpenCLSoftBodySolverSIMDAware (cl_command_queue queue, cl_context ctx, bool bUpdateAchchoredNodePos=false)
virtual ~btOpenCLSoftBodySolverSIMDAware ()
virtual SolverTypes getSolverType () const
 Return the type of the solver.
virtual btSoftBodyLinkDatagetLinkData ()
virtual void optimize (btAlignedObjectArray< btSoftBody * > &softBodies, bool forceUpdate=false)
 Optimize soft bodies in this solver.
virtual void solveConstraints (float solverdt)
 Solve constraints for a set of soft bodies.

Protected Member Functions

virtual bool buildShaders ()
void updateConstants (float timeStep)
float computeTriangleArea (const Vectormath::Aos::Point3 &vertex0, const Vectormath::Aos::Point3 &vertex1, const Vectormath::Aos::Point3 &vertex2)
void solveLinksForPosition (int startLink, int numLinks, float kst, float ti)
void solveCollisionsAndUpdateVelocities (float isolverdt)

Protected Attributes

btSoftBodyLinkDataOpenCLSIMDAware m_linkData

Detailed Description

Definition at line 32 of file btSoftBodySolver_OpenCLSIMDAware.h.


Constructor & Destructor Documentation

btOpenCLSoftBodySolverSIMDAware::btOpenCLSoftBodySolverSIMDAware ( cl_command_queue  queue,
cl_context  ctx,
bool  bUpdateAchchoredNodePos = false 
)

Definition at line 172 of file btSoftBodySolver_OpenCLSIMDAware.cpp.

btOpenCLSoftBodySolverSIMDAware::~btOpenCLSoftBodySolverSIMDAware (  )  [virtual]

Definition at line 184 of file btSoftBodySolver_OpenCLSIMDAware.cpp.


Member Function Documentation

bool btOpenCLSoftBodySolverSIMDAware::buildShaders (  )  [protected, virtual]

Reimplemented from btOpenCLSoftBodySolver.

Definition at line 551 of file btSoftBodySolver_OpenCLSIMDAware.cpp.

float btOpenCLSoftBodySolverSIMDAware::computeTriangleArea ( const Vectormath::Aos::Point3 vertex0,
const Vectormath::Aos::Point3 vertex1,
const Vectormath::Aos::Point3 vertex2 
) [protected]

Reimplemented from btOpenCLSoftBodySolver.

btSoftBodyLinkData & btOpenCLSoftBodySolverSIMDAware::getLinkData (  )  [virtual]

Reimplemented from btOpenCLSoftBodySolver.

Definition at line 383 of file btSoftBodySolver_OpenCLSIMDAware.cpp.

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

Return the type of the solver.

Reimplemented from btOpenCLSoftBodySolver.

Definition at line 66 of file btSoftBodySolver_OpenCLSIMDAware.h.

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

Optimize soft bodies in this solver.

Reimplemented from btOpenCLSoftBodySolver.

Definition at line 189 of file btSoftBodySolver_OpenCLSIMDAware.cpp.

void btOpenCLSoftBodySolverSIMDAware::solveCollisionsAndUpdateVelocities ( float  isolverdt  )  [protected, virtual]

Reimplemented from btOpenCLSoftBodySolver.

Definition at line 508 of file btSoftBodySolver_OpenCLSIMDAware.cpp.

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

Solve constraints for a set of soft bodies.

Reimplemented from btOpenCLSoftBodySolver.

Definition at line 424 of file btSoftBodySolver_OpenCLSIMDAware.cpp.

void btOpenCLSoftBodySolverSIMDAware::solveLinksForPosition ( int  startLink,
int  numLinks,
float  kst,
float  ti 
) [protected, virtual]

Reimplemented from btOpenCLSoftBodySolver.

Definition at line 475 of file btSoftBodySolver_OpenCLSIMDAware.cpp.

void btOpenCLSoftBodySolverSIMDAware::updateConstants ( float  timeStep  )  [protected, virtual]

Reimplemented from btOpenCLSoftBodySolver.

Definition at line 392 of file btSoftBodySolver_OpenCLSIMDAware.cpp.


Member Data Documentation

Reimplemented from btOpenCLSoftBodySolver.

Definition at line 37 of file btSoftBodySolver_OpenCLSIMDAware.h.


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