MBSim

Project Page
circle_frustum.h
00001 /* Copyright (C) 2004-2009 MBSim Development Team
00002  *
00003  * This library is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU Lesser General Public
00005  * License as published by the Free Software Foundation; either
00006  * version 2.1 of the License, or (at your option) any later version.
00007  *
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * Lesser General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU Lesser General Public
00014  * License along with this library; if not, write to the Free Software
00015  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
00016  *
00017  * Contact: thschindler@users.berlios.de
00018  *          besefeld@users.berlios.de
00019  */
00020 
00021 #ifndef CIRCLE_FRUSTUM_H_
00022 #define CIRCLE_FRUSTUM_H_
00023 
00024 #include "mbsim/contact_kinematics/contact_kinematics.h"
00025 
00026 namespace MBSim {
00027 
00028   class Circle;
00029   class Frustum;
00030 
00040   class ContactKinematicsCircleFrustum : public ContactKinematics {
00041     public:
00048       ContactKinematicsCircleFrustum();
00049 
00053       virtual ~ContactKinematicsCircleFrustum();
00054 
00055       /* INHERITED INTERFACE OF CONTACTKINEAMTICS */
00056       void assignContours(const std::vector<Contour*> &contour);
00057       virtual void updateg(fmatvec::Vec& g, ContourPointData *cpData, int index = 0);
00058       virtual void updatewb(fmatvec::Vec& wb, const fmatvec::Vec &g,ContourPointData *cpData) { throw MBSimError("(ContactKinematicsCircleFrustum::updatewb): not implemented!"); }
00059       /***************************************************/
00060 
00061       /* GETTER / SETTER */
00062       void setDebug(bool DEBUG_);
00063       void setWarnLevel(int warnLevel_);
00064       void setLocalSearch(bool LOCALSEARCH_);
00065       /***************************************************/
00066 
00067     protected:
00071       int icircle, ifrustum;
00072 
00076       Frustum *frustum;
00077       Circle *circle;
00078 
00082       bool DEBUG;
00083 
00087       int warnLevel;
00088 
00092       bool LOCALSEARCH;
00093   };
00094 
00095   inline void ContactKinematicsCircleFrustum::setDebug(bool DEBUG_) { DEBUG=DEBUG_; }
00096   inline void ContactKinematicsCircleFrustum::setWarnLevel(int warnLevel_) { warnLevel=warnLevel_; }
00097   inline void ContactKinematicsCircleFrustum::setLocalSearch(bool LOCALSEARCH_) { LOCALSEARCH=LOCALSEARCH_; }
00098 
00099 }
00100 
00101 #endif /* CIRCLE_FRUSTUM_H_ */
00102