Constraint_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_CONSTRAINT_FLOAT_H
00026 #define SOFA_TYPEDEF_CONSTRAINT_FLOAT_H
00027 
00028 #include <sofa/defaulttype/VecTypes.h>
00029 #include <sofa/defaulttype/RigidTypes.h>
00030 
00031 
00032 //Typedef to easily use constraints with float type 
00033 #include <sofa/component/constraint/AttachConstraint.h>
00034 #include <sofa/component/constraint/BoxConstraint.h>
00035 #include <sofa/component/constraint/FixedConstraint.h>
00036 #include <sofa/component/constraint/FixedPlaneConstraint.h>
00037 #include <sofa/component/constraint/LinearMovementConstraint.h>
00038 #include <sofa/component/constraint/OscillatorConstraint.h>
00039 #include <sofa/component/constraint/ParabolicConstraint.h>
00040        
00041 //Attach Contraint
00042 //---------------------
00043 //Deformable
00044 typedef sofa::component::constraint::AttachConstraint<sofa::defaulttype::Vec1fTypes> AttachConstraint1f;
00045 typedef sofa::component::constraint::AttachConstraint<sofa::defaulttype::Vec2fTypes> AttachConstraint2f;
00046 typedef sofa::component::constraint::AttachConstraint<sofa::defaulttype::Vec3fTypes> AttachConstraint3f;
00047 //---------------------
00048 //Rigid
00049 typedef sofa::component::constraint::AttachConstraint<sofa::defaulttype::Rigid2fTypes> AttachConstraintRigid2f;
00050 typedef sofa::component::constraint::AttachConstraint<sofa::defaulttype::Rigid3fTypes> AttachConstraintRigid3f;
00051 
00052 //Box Constraint
00053 //---------------------
00054 //Deformable
00055 typedef sofa::component::constraint::BoxConstraint<sofa::defaulttype::Vec3fTypes> BoxConstraint3f;
00056 
00057 //Fixed Constraint
00058 //---------------------
00059 //Deformable
00060 typedef sofa::component::constraint::FixedConstraint<sofa::defaulttype::Vec1fTypes> FixedConstraint1f;
00061 typedef sofa::component::constraint::FixedConstraint<sofa::defaulttype::Vec2fTypes> FixedConstraint2f;
00062 typedef sofa::component::constraint::FixedConstraint<sofa::defaulttype::Vec3fTypes> FixedConstraint3f;
00063 typedef sofa::component::constraint::FixedConstraint<sofa::defaulttype::Vec6fTypes> FixedConstraint6f;
00064 //---------------------
00065 //Rigid
00066 typedef sofa::component::constraint::FixedConstraint<sofa::defaulttype::Rigid2fTypes> FixedConstraintRigid2f;
00067 typedef sofa::component::constraint::FixedConstraint<sofa::defaulttype::Rigid3fTypes> FixedConstraintRigid3f;
00068 
00069 
00070 //FixedPlane Constraint
00071 //---------------------
00072 //Deformable
00073 typedef sofa::component::constraint::FixedPlaneConstraint<sofa::defaulttype::Vec3fTypes> FixedPlaneConstraint3f;
00074 
00075 //Linear Movement Constraint
00076 //---------------------
00077 //Deformable
00078 typedef sofa::component::constraint::LinearMovementConstraint<sofa::defaulttype::Vec1fTypes> LinearMovementConstraint1f;
00079 typedef sofa::component::constraint::LinearMovementConstraint<sofa::defaulttype::Vec2fTypes> LinearMovementConstraint2f;
00080 typedef sofa::component::constraint::LinearMovementConstraint<sofa::defaulttype::Vec3fTypes> LinearMovementConstraint3f;
00081 typedef sofa::component::constraint::LinearMovementConstraint<sofa::defaulttype::Vec6fTypes> LinearMovementConstraint6f;
00082 //---------------------
00083 //Rigid
00084 typedef sofa::component::constraint::LinearMovementConstraint<sofa::defaulttype::Rigid3fTypes> LinearMovementConstraintRigid3f;
00085 
00086 //Parabolic Constraint
00087 //---------------------
00088 //Deformable
00089 typedef sofa::component::constraint::ParabolicConstraint<sofa::defaulttype::Vec3fTypes> ParabolicConstraint3f;
00090 //---------------------
00091 //Rigid
00092 typedef sofa::component::constraint::ParabolicConstraint<sofa::defaulttype::Rigid3fTypes> ParabolicConstraintRigid3f;
00093 
00094 
00095 //Oscillator Constraint
00096 //---------------------
00097 //Deformable
00098 typedef sofa::component::constraint::OscillatorConstraint<sofa::defaulttype::Vec3fTypes> OscillatorConstraint3f;
00099 //---------------------
00100 //Rigid
00101 typedef sofa::component::constraint::OscillatorConstraint<sofa::defaulttype::Rigid3fTypes> OscillatorConstraintRigid3f;
00102 
00103 #ifdef SOFA_FLOAT
00104 typedef AttachConstraint1f              AttachConstraint1;                               
00105 typedef AttachConstraint2f              AttachConstraint2;               
00106 typedef AttachConstraint3f              AttachConstraint3;               
00107 typedef AttachConstraintRigid2f                 AttachConstraintRigid2;              
00108 typedef AttachConstraintRigid3f                 AttachConstraintRigid3;              
00109 typedef BoxConstraint3f                     BoxConstraint3;                  
00110 typedef FixedConstraint1f               FixedConstraint1;                
00111 typedef FixedConstraint2f               FixedConstraint2;                
00112 typedef FixedConstraint3f               FixedConstraint3;                
00113 typedef FixedConstraint6f               FixedConstraint6;                
00114 typedef FixedConstraintRigid2f              FixedConstraintRigid2;               
00115 typedef FixedConstraintRigid3f              FixedConstraintRigid3;               
00116 typedef FixedPlaneConstraint3f              FixedPlaneConstraint3;               
00117 typedef LinearMovementConstraint1f          LinearMovementConstraint1;           
00118 typedef LinearMovementConstraint2f          LinearMovementConstraint2;           
00119 typedef LinearMovementConstraint3f          LinearMovementConstraint3;           
00120 typedef LinearMovementConstraint6f          LinearMovementConstraint6;           
00121 typedef LinearMovementConstraintRigid3f             LinearMovementConstraintRigid3;          
00122 typedef OscillatorConstraint3f              OscillatorConstraint3;               
00123 typedef OscillatorConstraintRigid3f         OscillatorConstraintRigid3;          
00124 #endif
00125 
00126 #endif

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