Constraint_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_CONSTRAINT_DOUBLE_H
00026 #define SOFA_TYPEDEF_CONSTRAINT_DOUBLE_H
00027 
00028 #include <sofa/defaulttype/VecTypes.h>
00029 #include <sofa/defaulttype/RigidTypes.h>
00030 
00031 
00032 
00033 //Typedef to easily use constraints with double type 
00034 #include <sofa/component/constraint/AttachConstraint.h>
00035 #include <sofa/component/constraint/BoxConstraint.h>
00036 #include <sofa/component/constraint/FixedConstraint.h>
00037 #include <sofa/component/constraint/FixedPlaneConstraint.h>
00038 #include <sofa/component/constraint/LinearMovementConstraint.h>
00039 #include <sofa/component/constraint/LinearSolverConstraintCorrection.h>
00040 #include <sofa/component/constraint/OscillatorConstraint.h>
00041 #include <sofa/component/constraint/ParabolicConstraint.h>
00042        
00043 //Attach Contraint
00044 //---------------------
00045 //Deformable
00046 typedef sofa::component::constraint::AttachConstraint<sofa::defaulttype::Vec1dTypes> AttachConstraint1d;
00047 typedef sofa::component::constraint::AttachConstraint<sofa::defaulttype::Vec2dTypes> AttachConstraint2d;
00048 typedef sofa::component::constraint::AttachConstraint<sofa::defaulttype::Vec3dTypes> AttachConstraint3d;
00049 //---------------------
00050 //Rigid
00051 typedef sofa::component::constraint::AttachConstraint<sofa::defaulttype::Rigid2dTypes> AttachConstraintRigid2d;
00052 typedef sofa::component::constraint::AttachConstraint<sofa::defaulttype::Rigid3dTypes> AttachConstraintRigid3d;
00053 
00054 //Box Constraint
00055 //---------------------
00056 //Deformable
00057 typedef sofa::component::constraint::BoxConstraint<sofa::defaulttype::Vec3dTypes> BoxConstraint3d;
00058 
00059 //Fixed Constraint
00060 //---------------------
00061 //Deformable
00062 typedef sofa::component::constraint::FixedConstraint<sofa::defaulttype::Vec1dTypes> FixedConstraint1d;
00063 typedef sofa::component::constraint::FixedConstraint<sofa::defaulttype::Vec2dTypes> FixedConstraint2d;
00064 typedef sofa::component::constraint::FixedConstraint<sofa::defaulttype::Vec3dTypes> FixedConstraint3d;
00065 typedef sofa::component::constraint::FixedConstraint<sofa::defaulttype::Vec6dTypes> FixedConstraint6d;
00066 //---------------------
00067 //Rigid
00068 typedef sofa::component::constraint::FixedConstraint<sofa::defaulttype::Rigid2dTypes> FixedConstraintRigid2d;
00069 typedef sofa::component::constraint::FixedConstraint<sofa::defaulttype::Rigid3dTypes> FixedConstraintRigid3d;
00070 
00071 
00072 //FixedPlane Constraint
00073 //---------------------
00074 //Deformable
00075 typedef sofa::component::constraint::FixedPlaneConstraint<sofa::defaulttype::Vec3dTypes> FixedPlaneConstraint3d;
00076 
00077 //Linear Movement Constraint
00078 //---------------------
00079 //Deformable
00080 typedef sofa::component::constraint::LinearMovementConstraint<sofa::defaulttype::Vec1dTypes> LinearMovementConstraint1d;
00081 typedef sofa::component::constraint::LinearMovementConstraint<sofa::defaulttype::Vec2dTypes> LinearMovementConstraint2d;
00082 typedef sofa::component::constraint::LinearMovementConstraint<sofa::defaulttype::Vec3dTypes> LinearMovementConstraint3d;
00083 typedef sofa::component::constraint::LinearMovementConstraint<sofa::defaulttype::Vec6dTypes> LinearMovementConstraint6d;
00084 //---------------------
00085 //Rigid
00086 typedef sofa::component::constraint::LinearMovementConstraint<sofa::defaulttype::Rigid3dTypes> LinearMovementConstraintRigid3d;
00087 
00088 //Parabolic Constraint
00089 //---------------------
00090 //Deformable
00091 typedef sofa::component::constraint::ParabolicConstraint<sofa::defaulttype::Vec3dTypes> ParabolicConstraint3d;
00092 //---------------------
00093 //Rigid
00094 typedef sofa::component::constraint::ParabolicConstraint<sofa::defaulttype::Rigid3dTypes> ParabolicConstraintRigid3d;
00095 
00096 //Oscillator Constraint
00097 //---------------------
00098 //Deformable
00099 typedef sofa::component::constraint::OscillatorConstraint<sofa::defaulttype::Vec3dTypes> OscillatorConstraint3d;
00100 //---------------------
00101 //Rigid
00102 typedef sofa::component::constraint::OscillatorConstraint<sofa::defaulttype::Rigid3dTypes> OscillatorConstraintRigid3d;
00103 
00104 
00105 #ifndef SOFA_FLOAT
00106 typedef AttachConstraint1d              AttachConstraint1;                               
00107 typedef AttachConstraint2d              AttachConstraint2;               
00108 typedef AttachConstraint3d              AttachConstraint3;               
00109 typedef AttachConstraintRigid2d                 AttachConstraintRigid2;              
00110 typedef AttachConstraintRigid3d                 AttachConstraintRigid3;              
00111 typedef BoxConstraint3d                     BoxConstraint3;                  
00112 typedef FixedConstraint1d               FixedConstraint1;                
00113 typedef FixedConstraint2d               FixedConstraint2;                
00114 typedef FixedConstraint3d               FixedConstraint3;                
00115 typedef FixedConstraint6d               FixedConstraint6;                
00116 typedef FixedConstraintRigid2d              FixedConstraintRigid2;               
00117 typedef FixedConstraintRigid3d              FixedConstraintRigid3;               
00118 typedef FixedPlaneConstraint3d              FixedPlaneConstraint3;               
00119 typedef LinearMovementConstraint1d          LinearMovementConstraint1;           
00120 typedef LinearMovementConstraint2d          LinearMovementConstraint2;           
00121 typedef LinearMovementConstraint3d          LinearMovementConstraint3;           
00122 typedef LinearMovementConstraint6d          LinearMovementConstraint6;           
00123 typedef LinearMovementConstraintRigid3d             LinearMovementConstraintRigid3;          
00124 typedef OscillatorConstraint3d              OscillatorConstraint3;               
00125 typedef OscillatorConstraintRigid3d         OscillatorConstraintRigid3;          
00126 #endif
00127 
00128 
00129 #endif

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