mbsimflexiblebody  4.0.0
MBSim Flexible Body Module
contour2s_flexible.h
1/* Copyright (C) 2004-2015 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: thorsten.schindler@mytum.de
18 */
19
20#ifndef _CONTOUR2SFLEXIBLE_H_
21#define _CONTOUR2SFLEXIBLE_H_
22
23#include "mbsimFlexibleBody/contours/contour_2s_neutral_factory.h"
24
25namespace MBSim {
26 class ContactKinematics;
27}
28
29namespace MBSimFlexibleBody {
30
36 class Contour2sFlexible : public MBSim::Contour2s {
37 public:
42 Contour2sFlexible(const std::string &name) : Contour2s(name) {}
43
44 /* INHERITED INTERFACE OF ELEMENT */
45 /***************************************************/
46
47 /* INHERITED INTERFACE OF CONTOUR */
48 virtual void updateKinematicsForFrame(MBSim::ContourPointData &cp, MBSim::Frame::Feature ff) { neutral->updateKinematicsForFrame(cp,ff); }
49 virtual void updateJacobiansForFrame(MBSim::ContourPointData &cp, int j = 0) { neutral->updateJacobiansForFrame(cp); }
50 /***************************************************/
51
52 MBSim::ContactKinematics * findContactPairingWith(const std::type_info &type0, const std::type_info &type1) {
53 return findContactPairingFlexible(type0, type1);
54 }
55
56 void setNeutral(Contour2sNeutralFactory* neutral_) {neutral = neutral_;}
57
58 protected:
59 Contour2sNeutralFactory* neutral;
60
61 };
62
63}
64
65#endif /* _CONTOUR2SFLEXIBLE_H_ */
66
numerical description of contours with two contour parameter
Definition: contour2s_flexible.h:36
Contour2sFlexible(const std::string &name)
constructor
Definition: contour2s_flexible.h:42
basic contour described by two contour parameters
Definition: contour2s.h:33