#include <PhysicsParameterDescriptor.h>
Public Member Functions | |
PhysicsParameterDescriptor () | |
virtual | ~PhysicsParameterDescriptor () |
virtual void | getValues (PropertySink *outValues)=0 |
virtual void | setValues (PropertySource *inValues)=0 |
Protected Member Functions | |
virtual void | init (BodyParamInfo *bodyParamInfo) |
Protected Attributes | |
BodyParamInfo * | bodyParamInfo |
Friends | |
class | PhysicsParameterManager |
class | PPDCompound |
Descriptor for one or more physical parameters settable from Python.
The parameters should be stored on the BodyParamInfo reference.
Definition at line 46 of file PhysicsParameterDescriptor.h.
Rcs::PhysicsParameterDescriptor::PhysicsParameterDescriptor | ( | ) |
Definition at line 36 of file PhysicsParameterDescriptor.cpp.
|
virtualdefault |
|
pure virtual |
Read values from graph and put them into the given dict.
Implemented in Rcs::PPDRodLength, Rcs::PPDCompound, Rcs::PPDSingleVar< T >, Rcs::PPDSingleVar< double >, and Rcs::PPDMaterialProperties.
|
protectedvirtual |
Setup descriptor to work on the given body reference. Override for more custom initialization.
Reimplemented in Rcs::PPDSingleVar< T >, Rcs::PPDSingleVar< double >, Rcs::PPDCubeExtents, Rcs::PPDSphereRadius, Rcs::PPDRodLength, Rcs::PPDBoxExtents, Rcs::PPDBodyOrientation, Rcs::PPDBodyPosition, and Rcs::PPDCompound.
Definition at line 43 of file PhysicsParameterDescriptor.cpp.
|
pure 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.
Implemented in Rcs::PPDCubeExtents, Rcs::PPDRodLength, Rcs::PPDSingleVar< T >, Rcs::PPDSingleVar< double >, Rcs::PPDSphereRadius, Rcs::PPDCompound, Rcs::PPDMassProperties, Rcs::PPDMaterialProperties, Rcs::PPDBoxExtents, Rcs::PPDBodyOrientation, and Rcs::PPDBodyPosition.
|
friend |
Definition at line 69 of file PhysicsParameterDescriptor.h.
|
friend |
Definition at line 71 of file PhysicsParameterDescriptor.h.
|
protected |
Definition at line 50 of file PhysicsParameterDescriptor.h.