mbsimflexiblebody  4.0.0
MBSim Flexible Body Module
openmbv_utils.h
1 /* Copyright (C) 2004-2016 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: martin.o.foerg@googlemail.com
18  */
19 
20 #ifndef _MBSIMFLEX_OPENMBV_UTILS_H_
21 #define _MBSIMFLEX_OPENMBV_UTILS_H_
22 
23 #include <mbsim/utils/openmbv_utils.h>
24 #include <openmbvcppinterface/dynamicpointset.h>
25 #include <openmbvcppinterface/dynamicindexedfaceset.h>
26 #include <openmbvcppinterface/dynamicnurbscurve.h>
27 #include <openmbvcppinterface/dynamicnurbssurface.h>
28 
29 namespace MBSimFlexibleBody {
30 
32  public:
33  enum ColorRepresentation {
34  none=0,
35  xDisplacement,
36  yDisplacement,
37  zDisplacement,
38  totalDisplacement,
39  xxStress,
40  yyStress,
41  zzStress,
42  xyStress,
43  yzStress,
44  zxStress,
45  equivalentStress
46  };
47  public:
48  OpenMBVFlexibleBody(unsigned int cR=0, double minCol=0, double maxCol=1, const fmatvec::Vec3 &dc="[-1;1;1]", double tp=0, double ps=0, double lw=0);
49  };
50 
52  public:
53  enum Visualization {
54  points=0,
55  faces
56  };
57  OpenMBVCalculixBody(Visualization visu_=faces, unsigned int cR=0, double minCol=0, double maxCol=1, const fmatvec::Vec3 &dc="[-1;1;1]", double tp=0, double ps=0, double lw=0) : OpenMBVFlexibleBody(cR,minCol,maxCol,dc,tp,ps,lw), visu(visu_) { }
58  void initializeUsingXML(xercesc::DOMElement *element);
60  Visualization getVisualization() const { return visu; }
61  private:
62  Visualization visu;
63  };
64 
66  public:
67  enum Visualization {
68  points=0,
69  };
70  OpenMBVFlexibleFfrBeam(Visualization visu_=points, unsigned int cR=0, double minCol=0, double maxCol=1, const fmatvec::Vec3 &dc="[-1;1;1]", double tp=0, double ps=0, double lw=0) : OpenMBVFlexibleBody(cR,minCol,maxCol,dc,tp,ps,lw), visu(visu_) { }
71  void initializeUsingXML(xercesc::DOMElement *element);
73  Visualization getVisualization() const { return visu; }
74  private:
75  Visualization visu;
76  };
77 
79  public:
80  OpenMBVDynamicNurbsCurve(const fmatvec::Vec3 &dc="[-1;1;1]", double tp=0, double ps=0, double lw=0) : MBSim::OpenMBVColoredBody(dc,tp,ps,lw) { }
82  };
83 
85  public:
86  OpenMBVDynamicNurbsSurface(const fmatvec::Vec3 &dc="[-1;1;1]", double tp=0, double ps=0, double lw=0) : MBSim::OpenMBVColoredBody(dc,tp,ps,lw) { }
88  };
89 
90 }
91 
92 #endif
Definition: openmbv_utils.h:84
Definition: openmbv_utils.h:31
Definition: openmbv_utils.h:65
Definition: openmbv_utils.h:78
Definition: openmbv_utils.h:51