#include <PPDCompound.h>
Public Member Functions | |
PPDCompound () | |
virtual | ~PPDCompound () |
void | addChild (PhysicsParameterDescriptor *) |
virtual void | getValues (PropertySink *outValues) |
virtual void | setValues (PropertySource *inValues) |
const std::vector< PhysicsParameterDescriptor * > & | getChildren () const |
![]() | |
PhysicsParameterDescriptor () | |
virtual | ~PhysicsParameterDescriptor () |
Protected Member Functions | |
virtual void | init (BodyParamInfo *bodyParamInfo) |
Private Attributes | |
std::vector< PhysicsParameterDescriptor * > | children |
Additional Inherited Members | |
![]() | |
BodyParamInfo * | bodyParamInfo |
Combines multiple child descriptors.
Definition at line 44 of file PPDCompound.h.
|
default |
|
virtual |
Definition at line 38 of file PPDCompound.cpp.
void Rcs::PPDCompound::addChild | ( | PhysicsParameterDescriptor * | child | ) |
Register a child descriptor. Takes ownership of the given object.
Definition at line 59 of file PPDCompound.cpp.
const std::vector< PhysicsParameterDescriptor * > & Rcs::PPDCompound::getChildren | ( | ) | const |
Definition at line 72 of file PPDCompound.cpp.
|
virtual |
Read values from graph and put them into the given dict.
Implements Rcs::PhysicsParameterDescriptor.
Definition at line 45 of file PPDCompound.cpp.
|
protectedvirtual |
Setup descriptor to work on the given body reference. Override for more custom initialization.
Reimplemented from Rcs::PhysicsParameterDescriptor.
Reimplemented in Rcs::PPDCubeExtents, Rcs::PPDBoxExtents, Rcs::PPDBodyOrientation, and Rcs::PPDBodyPosition.
Definition at line 64 of file PPDCompound.cpp.
|
virtual |
Read values from the given dict and apply them to the graph. The parameter names need to be the same as in Rcs, e.g. rolling_friction_coefficient.
Implements Rcs::PhysicsParameterDescriptor.
Reimplemented in Rcs::PPDCubeExtents, Rcs::PPDMassProperties, Rcs::PPDBoxExtents, Rcs::PPDBodyOrientation, and Rcs::PPDBodyPosition.
Definition at line 52 of file PPDCompound.cpp.
|
private |
List of children.
Definition at line 48 of file PPDCompound.h.