MechanicalObject_float.h

Go to the documentation of this file.
00001 /******************************************************************************
00002 *       SOFA, Simulation Open-Framework Architecture, version 1.0 beta 3      *
00003 *                (c) 2006-2008 MGH, INRIA, USTL, UJF, CNRS                    *
00004 *                                                                             *
00005 * This library is free software; you can redistribute it and/or modify it     *
00006 * under the terms of the GNU Lesser General Public License as published by    *
00007 * the Free Software Foundation; either version 2.1 of the License, or (at     *
00008 * your option) any later version.                                             *
00009 *                                                                             *
00010 * This library is distributed in the hope that it will be useful, but WITHOUT *
00011 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or       *
00012 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License *
00013 * for more details.                                                           *
00014 *                                                                             *
00015 * You should have received a copy of the GNU Lesser General Public License    *
00016 * along with this library; if not, write to the Free Software Foundation,     *
00017 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.          *
00018 *******************************************************************************
00019 *                               SOFA :: Modules                               *
00020 *                                                                             *
00021 * Authors: The SOFA Team and external contributors (see Authors.txt)          *
00022 *                                                                             *
00023 * Contact information: contact@sofa-framework.org                             *
00024 ******************************************************************************/
00025 #ifndef SOFA_TYPEDEF_MECHANICAL_FLOAT_H
00026 #define SOFA_TYPEDEF_MECHANICAL_FLOAT_H
00027 
00028 #include <sofa/defaulttype/VecTypes.h>
00029 #include <sofa/defaulttype/RigidTypes.h>
00030 #include <sofa/defaulttype/LaparoscopicRigidTypes.h>
00031 #include <sofa/component/MechanicalObject.h>
00032 
00033 typedef sofa::defaulttype::Vec1fTypes   Particles1f;
00034 typedef Particles1f::VecDeriv           VecDeriv1f;
00035 typedef Particles1f::VecCoord           VecCoord1f;
00036 typedef Particles1f::Deriv              Deriv1f;
00037 typedef Particles1f::Coord              Coord1f;
00038 typedef sofa::defaulttype::Vec2fTypes   Particles2f;
00039 typedef Particles2f::VecDeriv           VecDeriv2f;
00040 typedef Particles2f::VecCoord           VecCoord2f;
00041 typedef Particles2f::Deriv              Deriv2f;
00042 typedef Particles2f::Coord              Coord2f;
00043 typedef sofa::defaulttype::Vec3fTypes   Particles3f;
00044 typedef Particles3f::VecDeriv           VecDeriv3f;
00045 typedef Particles3f::VecCoord           VecCoord3f;
00046 typedef Particles3f::Deriv              Deriv3f;
00047 typedef Particles3f::Coord              Coord3f;
00048 typedef sofa::defaulttype::Vec6fTypes   Particles6f;
00049 typedef Particles6f::VecDeriv           VecDeriv6f;
00050 typedef Particles6f::VecCoord           VecCoord6f;
00051 typedef Particles6f::Deriv              Deriv6f;
00052 typedef Particles6f::Coord              Coord6f;
00053 
00054 typedef sofa::defaulttype::Rigid2fTypes Rigid2f;
00055 typedef Rigid2f::VecDeriv               VecDerivRigid2f;
00056 typedef Rigid2f::VecCoord               VecCoordRigid2f;
00057 typedef Rigid2f::Deriv                  DerivRigid2f;
00058 typedef Rigid2f::Coord                  CoordRigid2f;
00059 typedef sofa::defaulttype::Rigid3fTypes Rigid3f;
00060 typedef Rigid3f::VecDeriv               VecDerivRigid3f;
00061 typedef Rigid3f::VecCoord               VecCoordRigid3f;
00062 typedef Rigid3f::Quat                   Quat3f;
00063 typedef Rigid3f::Deriv                  DerivRigid3f;
00064 typedef Rigid3f::Coord                  CoordRigid3f;
00065 
00066 //Mechanical Object
00067 //---------------------
00068 //Deformable
00069 typedef sofa::component::MechanicalObject<sofa::defaulttype::Vec1fTypes> MechanicalObject1f;
00070 typedef sofa::component::MechanicalObject<sofa::defaulttype::Vec2fTypes> MechanicalObject2f;
00071 typedef sofa::component::MechanicalObject<sofa::defaulttype::Vec3fTypes> MechanicalObject3f;
00072 typedef sofa::component::MechanicalObject<sofa::defaulttype::Vec6fTypes> MechanicalObject6f;
00073 //---------------------
00074 //Rigid
00075 typedef sofa::component::MechanicalObject<sofa::defaulttype::Rigid2fTypes> MechanicalObjectRigid2f;
00076 typedef sofa::component::MechanicalObject<sofa::defaulttype::Rigid3fTypes> MechanicalObjectRigid3f;
00077 //---------------------
00078 //Laparoscopic
00079 #ifdef SOFA_FLOAT
00080 typedef sofa::component::MechanicalObject<sofa::defaulttype::LaparoscopicRigid3Types> MechanicalObjectLaparoscopicRigid3;
00081 #endif
00082 
00083 #ifdef SOFA_FLOAT
00084 typedef MechanicalObject1f MechanicalObject1;
00085 typedef MechanicalObject2f MechanicalObject2;
00086 typedef MechanicalObject3f MechanicalObject3;
00087 typedef MechanicalObject6f MechanicalObject6;
00088 
00089 typedef MechanicalObjectRigid2f MechanicalObjectRigid2;
00090 typedef MechanicalObjectRigid3f MechanicalObjectRigid3;
00091 
00092 
00093 typedef Particles1f          Particles1;    
00094 typedef VecDeriv1f       VecDeriv1; 
00095 typedef VecCoord1f       VecCoord1; 
00096 typedef Deriv1f              Deriv1;    
00097 typedef Coord1f              Coord1;    
00098 typedef Particles2f      Particles2;    
00099 typedef VecDeriv2f       VecDeriv2; 
00100 typedef VecCoord2f       VecCoord2; 
00101 typedef Deriv2f              Deriv2;    
00102 typedef Coord2f              Coord2;    
00103 typedef Particles3f      Particles3;    
00104 typedef VecDeriv3f       VecDeriv3; 
00105 typedef VecCoord3f       VecCoord3; 
00106 typedef Deriv3f              Deriv3;    
00107 typedef Coord3f              Coord3;    
00108 typedef Particles6f      Particles6;    
00109 typedef VecDeriv6f       VecDeriv6; 
00110 typedef VecCoord6f       VecCoord6; 
00111 typedef Deriv6f              Deriv6;    
00112 typedef Coord6f              Coord6;    
00113  
00114 typedef Rigid2f              Rigid2;    
00115 typedef VecDerivRigid2f      VecDerivRigid2;
00116 typedef VecCoordRigid2f      VecCoordRigid2;
00117 typedef DerivRigid2f         DerivRigid2;   
00118 typedef CoordRigid2f         CoordRigid2;   
00119 typedef Rigid3f              Rigid3;    
00120 typedef VecDerivRigid3f      VecDerivRigid3;
00121 typedef VecCoordRigid3f      VecCoordRigid3;
00122 typedef Quat3f           Quat3;     
00123 typedef DerivRigid3f         DerivRigid3;   
00124 typedef CoordRigid3f         CoordRigid3;
00125 
00126 #endif
00127 
00128 #endif

Generated on Sun Nov 23 03:47:41 2008 for Sofa by  doxygen 1.5.7.1