23 #include "mbsim/contours/compound_contour.h" 25 #include "mbsim/utils/boost_parameters.h" 26 #include <mbsim/utils/openmbv_utils.h> 41 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)) { }
45 void init(
InitStage stage,
const InitConfigSet &config)
override;
49 void setLength(
const fmatvec::Vec3 &length) {
l = length(0); h = length(1); d = length(2); }
50 void setLength(
double l_,
double h_,
double d_) {
l = l_; h = h_; d = d_; }
53 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))) {
54 OpenMBVColoredBody ombv(diffuseColor,transparency,pointSize,lineWidth);
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
void init(InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: room.cc:33
InitStage
The stages of the initialization.
Definition: element.h:62
Room(const std::string &name="", const fmatvec::Vec3 &length=fmatvec::Vec3(fmatvec::INIT, 1), Frame *R=nullptr)
constructor
Definition: room.h:41
std::string name
name of element
Definition: element.h:249
cartesian frame on bodies used for application of e.g. links and loads
Definition: frame.h:39
double l
length, height and depth of room
Definition: room.h:62
Frame * R
coordinate system of contour
Definition: rigid_contour.h:133
namespace MBSim
Definition: eigenanalyzer.cc:47