34 #include <Rcs_typedef.h> 41 #define DEF_EXTENT_PARAM(name, modflag, var) \ 42 addChild(new PPDSingleVar<double>((name), (modflag), [this](BodyParamInfo& bpi) -> double& {return (var);})) 45 unsigned int shapeIdx,
46 const bool includeLength,
47 const bool includeWidth,
48 const bool includeHeight) : shapeIdx(shapeIdx)
62 throw std::invalid_argument(
"No position specified for PPDBoxExtents!");
72 if (bpi->
body->shape[this->shapeIdx]->type != RCSSHAPE_TYPE::RCSSHAPE_BOX) {
73 throw std::invalid_argument(
"Using the PPDBoxExtents on a non-box shape!");
92 throw std::invalid_argument(
"No position specified for PPDBoxExtents!");
102 if (bpi->
body->shape[this->shapeIdx]->type != RCSSHAPE_TYPE::RCSSHAPE_BOX) {
103 throw std::invalid_argument(
"Using the PPDCubeExtents on a non-box shape!");
virtual void setValues(PropertySource *inValues)
const std::vector< PhysicsParameterDescriptor * > & getChildren() const
virtual void init(BodyParamInfo *bpi)
virtual void init(BodyParamInfo *bodyParamInfo)
PPDBoxExtents(unsigned int shapeIdx, bool includeLength, bool includeWidth, bool includeHeight)
virtual void setValues(PropertySource *inValues)
virtual void init(BodyParamInfo *bpi)
virtual void setValues(PropertySource *inValues)
PPDCubeExtents(unsigned int shapeIdx)
unsigned int shapeIdx
The shape's index given the body. THis is given by the order of the shapes in the config xml-file...
#define DEF_EXTENT_PARAM(name, modflag, var)