23#include "mbsim/contours/compound_contour.h"
25#include "mbsim/utils/boost_parameters.h"
26#include <mbsim/utils/openmbv_utils.h>
27#include <openmbvcppinterface/cuboid.h>
42 Room(
const std::string &
name=
"",
const fmatvec::Vec3 &length=fmatvec::Vec3(fmatvec::INIT,1),
Frame *
R=
nullptr) :
CompoundContour(
name,
R),
l(length(0)), h(length(1)), d(length(2)) { }
46 void init(
InitStage stage,
const InitConfigSet &config)
override;
50 void setLength(
const fmatvec::Vec3 &length) {
l = length(0); h = length(1); d = length(2); }
51 void setLength(
double l_,
double h_,
double d_) {
l = l_; h = h_; d = d_; }
54 BOOST_PARAMETER_MEMBER_FUNCTION( (
void), enableOpenMBV, tag, (optional (diffuseColor,(
const fmatvec::Vec3&),fmatvec::Vec3(std::vector<double>{-1,1,1}))(transparency,(
double),0)(pointSize,(
double),0)(lineWidth,(
double),0))) {
55 OpenMBVColoredBody ombv(diffuseColor,transparency,pointSize,lineWidth);
contour consisting of primitive contour elements
Definition: compound_contour.h:34
InitStage
The stages of the initialization.
Definition: element.h:62
std::string name
name of element
Definition: element.h:260
cartesian frame on bodies used for application of e.g. links and loads
Definition: frame.h:39
Frame * R
coordinate system of contour
Definition: rigid_contour.h:135
Room with 6 faces pointing inwards.
Definition: room.h:34
double l
length, height and depth of room
Definition: room.h:63
bool enable
enable openMBV output
Definition: room.h:70
Room(const std::string &name="", const fmatvec::Vec3 &length=fmatvec::Vec3(fmatvec::INIT, 1), Frame *R=nullptr)
constructor
Definition: room.h:42
void init(InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: room.cc:33
int gridSize
grid size
Definition: room.h:75
namespace MBSim
Definition: bilateral_constraint.cc:30