|
| tgGhostModel (btPairCachingGhostObject *pCollisionObject, const tgTags &tags) |
|
virtual | ~tgGhostModel () |
|
virtual void | teardown () |
|
virtual void | onVisit (const tgModelVisitor &v) const |
|
virtual btPairCachingGhostObject * | getPGhostObject () |
|
virtual void | setup (tgWorld &world) |
|
virtual void | step (double dt) |
|
void | addChild (tgModel *pChild) |
|
virtual std::string | toString (std::string prefix="") const |
|
template<typename T > |
std::vector< T * > | find (const tgTagSearch &tagSearch) |
|
template<typename T > |
std::vector< T * > | find (const std::string &tagSearch) |
|
std::vector< tgModel * > | getDescendants () const |
|
const std::vector
< abstractMarker > & | getMarkers () const |
|
void | addMarker (abstractMarker a) |
|
void | addTags (const std::string &space_separated_tags) |
|
void | addTags (const tgTags &tags) |
|
bool | hasTag (const std::string tag) const |
|
bool | hasAllTags (std::string tags) |
|
bool | hasAnyTags (const std::string tags) |
|
bool | hasNoTags () |
|
tgTags & | getTags () |
|
const tgTags & | getTags () const |
|
void | setTags (tgTags tags) |
|
std::string | getTagStr (std::string delim=" ") const |
|
Holds a pointer to a btPairCachingGhostObject through the build process It could be used to keep additional functions away from MuscleNP in the future, by holding pointers to the dispatcher and similar
Definition at line 45 of file tgGhostModel.h.
void tgModel::setup |
( |
tgWorld & |
world | ) |
|
|
virtualinherited |
Setup takes a tgWorld and passes it to any children for their own setup functions. All subclasses should call this at the appropriate time (usually end of setup) within their own setup function.
- Parameters
-
[in] | world | - the tgWorld the models will exist in. |
Reimplemented in tgSpringCableActuator, tgKinematicActuator, DuCTTTestModel, NestedBoxTestModel, NestedStructureTestModel, VerticalSpineModel, tgPrismatic, T6Model, tgCraterDeep, Wall, pidTestRig, CraterDeep, PrismModel, MuscleNPCons, tgCraterShallow, SuperBallModel, tsTestRig, Crater, PrismModel, T6Model, T12SuperBallPayload, CaterpillarModel, T6SphereModel, T6Model, T6Model, Escape_T6Model, EscapeModel, SingleRibModel, SingleRibModel, T6Model, hillyMuscleNP, simpleMuscleNP, Hilbert2DModel, tgBasicActuator, ContactTestModel, RBStringTest, TetraSpineStaticModel_hf, BaseSpineModelLearning, StructureTestModel, TetraSpineCollisions, TetraSpineStaticModel, ConnectorTestModel, TetraSpineLearningModel, BuildTestModel, FlemonsSpineModelContact, FlemonsSpineModelLearningCL, FlemonsSpineModelLearning, and RibModel.
Definition at line 57 of file tgModel.cpp.
void tgModel::step |
( |
double |
dt | ) |
|
|
virtualinherited |
Advance the simulation.
- Parameters
-
[in] | dt | the number of seconds since the previous call; std::invalid_argument is thrown if dt is not positive |
- Exceptions
-
std::invalid_argument | if dt is not positive |
- Note
- This is not necessarily const for every child.
Reimplemented in tgSpringCableActuator, NestedStructureTestModel, ConnectorTestModel, BuildTestModel, ContactTestModel, tgKinematicActuator, StructureTestModel, DuCTTTestModel, T6Model, pidTestRig, PrismModel, NestedBoxTestModel, NestedStructureTestModel, SuperBallModel, tsTestRig, PrismModel, MuscleNPCons, T6Model, T12SuperBallPayload, CaterpillarModel, T6SphereModel, T6Model, T6Model, VerticalSpineModel, Escape_T6Model, EscapeModel, T6Model, tgCraterDeep, tgBasicActuator, Wall, CraterDeep, tgPrismatic, hillyMuscleNP, simpleMuscleNP, tgCraterShallow, Crater, RBStringTest, TetraSpineStaticModel_hf, BaseSpineModelLearning, TetraSpineCollisions, TetraSpineStaticModel, TetraSpineLearningModel, FlemonsSpineModelContact, FlemonsSpineModelLearningCL, FlemonsSpineModelLearning, and RibModel.
Definition at line 84 of file tgModel.cpp.