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 #include <sofa/core/ObjectFactory.h> 00026 #include <sofa/defaulttype/LaparoscopicRigidTypes.h> 00027 #include <sofa/defaulttype/RigidTypes.h> 00028 #include <sofa/defaulttype/VecTypes.h> 00029 #include <sofa/component/MappedObject.inl> 00030 00031 namespace sofa 00032 { 00033 00034 namespace component 00035 { 00036 00037 using namespace core::componentmodel::behavior; 00038 using namespace defaulttype; 00039 00040 SOFA_DECL_CLASS(MappedObject) 00041 00042 int MappedObjectClass = core::RegisterObject("Mapped state vectors") 00043 #ifndef SOFA_FLOAT 00044 .add< MappedObject<Vec2dTypes> >() 00045 .add< MappedObject<Vec1dTypes> >() 00046 .add< MappedObject<Vec6dTypes> >() 00047 .add< MappedObject<Rigid3dTypes> >() 00048 .add< MappedObject<Rigid2dTypes> >() 00049 #endif 00050 #ifndef SOFA_DOUBLE 00051 .add< MappedObject<Vec2fTypes> >() 00052 .add< MappedObject<Vec1fTypes> >() 00053 .add< MappedObject<Vec6fTypes> >() 00054 .add< MappedObject<Rigid3fTypes> >() 00055 .add< MappedObject<Rigid2fTypes> >() 00056 #endif 00057 00058 #ifdef SOFA_FLOAT 00059 .add< MappedObject<Vec3fTypes> >(true) // default template 00060 #else 00061 #ifndef SOFA_DOUBLE 00062 .add< MappedObject<Vec3fTypes> >() // default template 00063 #endif 00064 .add< MappedObject<Vec3dTypes> >(true) // default template 00065 #endif 00066 .add< MappedObject<LaparoscopicRigid3Types> >() 00067 ; 00068 00069 // template specialization must be in the same namespace as original namespace for GCC 4.1 00070 // g++ 4.1 requires template instantiations to be declared on a parent namespace from the template class. 00071 #ifndef SOFA_FLOAT 00072 template class MappedObject<Vec3dTypes>; 00073 template class MappedObject<Vec2dTypes>; 00074 template class MappedObject<Vec1dTypes>; 00075 template class MappedObject<Vec6dTypes>; 00076 template class MappedObject<Rigid3dTypes>; 00077 template class MappedObject<Rigid2dTypes>; 00078 #endif 00079 #ifndef SOFA_DOUBLE 00080 template class MappedObject<Vec3fTypes>; 00081 template class MappedObject<Vec2fTypes>; 00082 template class MappedObject<Vec1fTypes>; 00083 template class MappedObject<Vec6fTypes>; 00084 template class MappedObject<Rigid3fTypes>; 00085 template class MappedObject<Rigid2fTypes>; 00086 #endif 00087 template class MappedObject<LaparoscopicRigid3Types>; 00088 00089 } // namespace component 00090 00091 } // namespace sofa
1.5.7.1