MechanicalObject_double.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_DOUBLE_H
00026 #define SOFA_TYPEDEF_MECHANICAL_DOUBLE_H
00027 
00028 
00029 #include <sofa/defaulttype/VecTypes.h>
00030 #include <sofa/defaulttype/RigidTypes.h>
00031 #include <sofa/defaulttype/LaparoscopicRigidTypes.h>
00032 #include <sofa/component/MechanicalObject.h>
00033 
00034 
00035 typedef sofa::defaulttype::Vec1dTypes   Particles1d;         
00036 typedef Particles1d::VecDeriv           VecDeriv1d;
00037 typedef Particles1d::VecCoord           VecCoord1d;
00038 typedef Particles1d::Deriv              Deriv1d;
00039 typedef Particles1d::Coord              Coord1d;
00040 typedef sofa::defaulttype::Vec2dTypes   Particles2d;
00041 typedef Particles2d::VecDeriv           VecDeriv2d;
00042 typedef Particles2d::VecCoord           VecCoord2d;
00043 typedef Particles2d::Deriv              Deriv2d;
00044 typedef Particles2d::Coord              Coord2d;
00045 typedef sofa::defaulttype::Vec3dTypes   Particles3d;
00046 typedef Particles3d::VecDeriv           VecDeriv3d;
00047 typedef Particles3d::VecCoord           VecCoord3d;
00048 typedef Particles3d::Deriv              Deriv3d;
00049 typedef Particles3d::Coord              Coord3d;
00050 typedef sofa::defaulttype::Vec6dTypes   Particles6d;
00051 typedef Particles6d::VecDeriv           VecDeriv6d;
00052 typedef Particles6d::VecCoord           VecCoord6d;
00053 typedef Particles6d::Deriv              Deriv6d;
00054 typedef Particles6d::Coord              Coord6d;
00055 
00056 typedef sofa::defaulttype::Rigid2dTypes Rigid2d;
00057 typedef Rigid2d::VecDeriv               VecDerivRigid2d;
00058 typedef Rigid2d::VecCoord               VecCoordRigid2d;
00059 typedef Rigid2d::Deriv                  DerivRigid2d;
00060 typedef Rigid2d::Coord                  CoordRigid2d;
00061 typedef sofa::defaulttype::Rigid3dTypes Rigid3d;
00062 typedef Rigid3d::VecDeriv               VecDerivRigid3d;
00063 typedef Rigid3d::VecCoord               VecCoordRigid3d;
00064 typedef Rigid3d::Quat                   Quat3d;
00065 typedef Rigid3d::Deriv                  DerivRigid3d;
00066 typedef Rigid3d::Coord                  CoordRigid3d;
00067 
00068 //Mechanical Object
00069 //---------------------
00070 //Deformable
00071 typedef sofa::component::MechanicalObject<sofa::defaulttype::Vec1dTypes> MechanicalObject1d;
00072 typedef sofa::component::MechanicalObject<sofa::defaulttype::Vec2dTypes> MechanicalObject2d;
00073 typedef sofa::component::MechanicalObject<sofa::defaulttype::Vec3dTypes> MechanicalObject3d;
00074 typedef sofa::component::MechanicalObject<sofa::defaulttype::Vec6dTypes> MechanicalObject6d;
00075 //---------------------
00076 //Rigid
00077 typedef sofa::component::MechanicalObject<sofa::defaulttype::Rigid2dTypes> MechanicalObjectRigid2d;
00078 typedef sofa::component::MechanicalObject<sofa::defaulttype::Rigid3dTypes> MechanicalObjectRigid3d;
00079 //---------------------
00080 //Laparoscopic
00081 #ifndef SOFA_FLOAT
00082 typedef sofa::component::MechanicalObject<sofa::defaulttype::LaparoscopicRigid3Types> MechanicalObjectLaparoscopicRigid3;
00083 #endif
00084 
00085 #ifndef SOFA_FLOAT
00086 typedef MechanicalObject1d MechanicalObject1;
00087 typedef MechanicalObject2d MechanicalObject2;
00088 typedef MechanicalObject3d MechanicalObject3;
00089 typedef MechanicalObject6d MechanicalObject6;
00090 
00091 typedef MechanicalObjectRigid2d MechanicalObjectRigid2;
00092 typedef MechanicalObjectRigid3d MechanicalObjectRigid3;
00093 
00094 
00095 typedef Particles1d          Particles1;    
00096 typedef VecDeriv1d       VecDeriv1; 
00097 typedef VecCoord1d       VecCoord1; 
00098 typedef Deriv1d              Deriv1;    
00099 typedef Coord1d              Coord1;    
00100 typedef Particles2d      Particles2;    
00101 typedef VecDeriv2d       VecDeriv2; 
00102 typedef VecCoord2d       VecCoord2; 
00103 typedef Deriv2d              Deriv2;    
00104 typedef Coord2d              Coord2;    
00105 typedef Particles3d      Particles3;    
00106 typedef VecDeriv3d       VecDeriv3; 
00107 typedef VecCoord3d       VecCoord3; 
00108 typedef Deriv3d              Deriv3;    
00109 typedef Coord3d              Coord3;    
00110 typedef Particles6d      Particles6;    
00111 typedef VecDeriv6d       VecDeriv6; 
00112 typedef VecCoord6d       VecCoord6; 
00113 typedef Deriv6d              Deriv6;    
00114 typedef Coord6d              Coord6;    
00115  
00116 typedef Rigid2d              Rigid2;    
00117 typedef VecDerivRigid2d      VecDerivRigid2;
00118 typedef VecCoordRigid2d      VecCoordRigid2;
00119 typedef DerivRigid2d         DerivRigid2;   
00120 typedef CoordRigid2d         CoordRigid2;   
00121 typedef Rigid3d              Rigid3;    
00122 typedef VecDerivRigid3d      VecDerivRigid3;
00123 typedef VecCoordRigid3d      VecCoordRigid3;
00124 typedef Quat3d           Quat3;     
00125 typedef DerivRigid3d         DerivRigid3;   
00126 typedef CoordRigid3d         CoordRigid3;   
00127 #endif
00128 
00129 
00130 #endif

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