MBSim

Project Page
circle_frustum.h
1 /* Copyright (C) 2004-2009 MBSim Development Team
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public
5  * License as published by the Free Software Foundation; either
6  * version 2.1 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16  *
17  * Contact: thschindler@users.berlios.de
18  * besefeld@users.berlios.de
19  */
20 
21 #ifndef CIRCLE_FRUSTUM_H_
22 #define CIRCLE_FRUSTUM_H_
23 
24 #include "mbsim/contact_kinematics/contact_kinematics.h"
25 
26 namespace MBSim {
27 
28  class Circle;
29  class Frustum;
30 
41  public:
49 
54 
55  /* INHERITED INTERFACE OF CONTACTKINEAMTICS */
56  void assignContours(const std::vector<Contour*> &contour);
57  virtual void updateg(fmatvec::Vec& g, ContourPointData *cpData);
58  virtual void updatewb(fmatvec::Vec& wb, const fmatvec::Vec &g,ContourPointData *cpData) { throw MBSimError("ERROR (ContactKinematicsCircleFrustum::updatewb): not implemented!"); }
59  /***************************************************/
60 
61  /* GETTER / SETTER */
62  void setDebug(bool DEBUG_);
63  void setWarnLevel(int warnLevel_);
64  void setLocalSearch(bool LOCALSEARCH_);
65  /***************************************************/
66 
67  protected:
71  int icircle, ifrustum;
72 
77  Circle *circle;
78 
82  bool DEBUG;
83 
87  int warnLevel;
88 
93  };
94 
95  inline void ContactKinematicsCircleFrustum::setDebug(bool DEBUG_) { DEBUG=DEBUG_; }
96  inline void ContactKinematicsCircleFrustum::setWarnLevel(int warnLevel_) { warnLevel=warnLevel_; }
97  inline void ContactKinematicsCircleFrustum::setLocalSearch(bool LOCALSEARCH_) { LOCALSEARCH=LOCALSEARCH_; }
98 
99 }
100 
101 #endif /* CIRCLE_FRUSTUM_H_ */
102