btDefaultSoftBodySolver.h
Go to the documentation of this file.
00001 /*
00002 Bullet Continuous Collision Detection and Physics Library
00003 Copyright (c) 2003-2006 Erwin Coumans  http://continuousphysics.com/Bullet/
00004 
00005 This software is provided 'as-is', without any express or implied warranty.
00006 In no event will the authors be held liable for any damages arising from the use of this software.
00007 Permission is granted to anyone to use this software for any purpose, 
00008 including commercial applications, and to alter it and redistribute it freely, 
00009 subject to the following restrictions:
00010 
00011 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
00012 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
00013 3. This notice may not be removed or altered from any source distribution.
00014 */
00015 
00016 #ifndef BT_SOFT_BODY_DEFAULT_SOLVER_H
00017 #define BT_SOFT_BODY_DEFAULT_SOLVER_H
00018 
00019 
00020 #include "BulletSoftBody/btSoftBodySolvers.h"
00021 #include "btSoftBodySolverVertexBuffer.h"
00022 
00023 
00024 class btDefaultSoftBodySolver : public btSoftBodySolver
00025 {
00026 protected:              
00028         bool m_updateSolverConstants;
00029 
00030         btAlignedObjectArray< btSoftBody * > m_softBodySet;
00031 
00032 
00033 public:
00034         btDefaultSoftBodySolver();
00035         
00036         virtual ~btDefaultSoftBodySolver();
00037         
00038         virtual SolverTypes getSolverType() const
00039         {
00040                 return DEFAULT_SOLVER;
00041         }
00042 
00043         virtual bool checkInitialized();
00044 
00045         virtual void updateSoftBodies( );
00046 
00047         virtual void optimize( btAlignedObjectArray< btSoftBody * > &softBodies,bool forceUpdate=false );
00048 
00049         virtual void copyBackToSoftBodies();
00050 
00051         virtual void solveConstraints( float solverdt );
00052 
00053         virtual void predictMotion( float solverdt );
00054 
00055         virtual void copySoftBodyToVertexBuffer( const btSoftBody *const softBody, btVertexBufferDescriptor *vertexBuffer );
00056 
00057         virtual void processCollision( btSoftBody *, btCollisionObject* );
00058 
00059         virtual void processCollision( btSoftBody*, btSoftBody* );
00060 
00061 };
00062 
00063 #endif // #ifndef BT_ACCELERATED_SOFT_BODY_CPU_SOLVER_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


bullet
Author(s): Erwin Coumans, ROS package maintained by Tully Foote
autogenerated on Wed Oct 31 2012 07:54:31