All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
room.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: martin.o.foerg@googlemail.com
18  */
19 
20 #ifndef _ROOM_H_
21 #define _ROOM_H_
22 
23 #include "mbsim/contours/compound_contour.h"
24 
25 #include "mbsim/utils/boost_parameters.h"
26 #include <mbsim/utils/openmbv_utils.h>
27 
28 namespace MBSim {
29 
33  class Room : public CompoundContour {
34  public:
39  Room(const std::string &name);
40 
41  /* INHERITED INTERFACE OF ELEMENT */
42  std::string getType() const {
43  return "Room";
44  }
45  /***************************************************/
46 
47  /* GETTER / SETTER */
48  void setXLength(double l_) { l = l_; }
49  void setYLength(double d_) { d = d_; }
50  void setZLength(double h_) { h = h_; }
51  /***************************************************/
52 
53  virtual void plot();
54 
55  BOOST_PARAMETER_MEMBER_FUNCTION( (void), enableOpenMBV, tag, (optional (diffuseColor,(const fmatvec::Vec3&),"[-1;1;1]")(transparency,(double),0))) {
56  OpenMBVCuboid ombv(fmatvec::Vec3(),diffuseColor,transparency);
57  openMBVRigidBody=ombv.createOpenMBV();
58  }
59 
60  protected:
64  double l, h, d;
65 
69  bool enable;
70 
74  int gridSize;
75 
76 
77  void init(InitStage stage);
78  };
79 }
80 
81 #endif /* _ROOM_H_ */
82 
int gridSize
grid size
Definition: room.h:74
contour consisting of primitive contour elements
Definition: compound_contour.h:34
bool enable
enable openMBV output
Definition: room.h:69
Room with 6 faces pointing inwards.
Definition: room.h:33
std::string getType() const
Definition: room.h:42
InitStage
The stages of the initialization.
Definition: element.h:97
virtual void plot()
plots time dependent data
Definition: room.cc:116
std::string name
name of element
Definition: element.h:298
double l
length, height and depth of room
Definition: room.h:64
void init(InitStage stage)
plots time series header
Definition: room.cc:39
Room(const std::string &name)
constructor
Definition: room.cc:33

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML