#include <ArticulatedAgentBase.h>
Inheritance diagram for ArticulatedAgentBase:
Definition at line 19 of file ArticulatedAgentBase.h.
|
sets the body to NULL. Definition at line 38 of file ArticulatedAgentBase.cpp. |
|
Destructor; deletes the limbs. Definition at line 45 of file ArticulatedAgentBase.cpp. References deleteLimbs(). |
|
Adds a limb to the agent, sets the properties of the limb and returns a reference to it. The limb is articulated at a point situated at l from the point of reference of the body, under and angle theta. Definition at line 62 of file ArticulatedAgentBase.cpp. References addLimb(), and ArticulatedLimb::setProperties(). |
|
Adds a limb to the agent and returns a reference to it. Definition at line 50 of file ArticulatedAgentBase.cpp. References ArticulatedLimb::label, and limbs. Referenced by addLimb(), and Iunctus::build(). |
|
Delete the contacts of the object. Reimplemented from PhysicalObject. Reimplemented in Iunctus. Definition at line 173 of file ArticulatedAgentBase.cpp. References PhysicalObject::deleteContacts(), limbs, and ArticulatedLimb::links. Referenced by Iunctus::deleteContacts(). |
|
Definition at line 208 of file ArticulatedAgentBase.cpp. References limbs, and purgeContainer(). Referenced by ~ArticulatedAgentBase(). |
|
Contact handling. Reimplemented from ComposedPhysicalObject. Definition at line 105 of file ArticulatedAgentBase.cpp. References ComposedPhysicalObject::detectContacts(), limbs, and ArticulatedLimb::links. |
|
Detects internal contacts. Does nothing for primitive objects or composed objects. To be overriden by complex objects that have parts that move relative to each other, such as articulated objects. Reimplemented from PhysicalObject. Definition at line 119 of file ArticulatedAgentBase.cpp. References ComposedPhysicalObject::detectContacts(), limbs, and ArticulatedLimb::links. |
|
Detects whether a click of the mouse at rMouse has touched the object. In case of contact, returns true and sets p to the relative vector between the center of the composed object and the contact point; p is expressed in the composed object reference frame because it rotates with the object while the object is dragged. Reimplemented from ComposedPhysicalObject. Definition at line 159 of file ArticulatedAgentBase.cpp. References ComposedPhysicalObject::detectMouseContact(), limbs, and ArticulatedLimb::links. |
|
Calls the draw methods for the body and the limbs. Reimplemented from ComposedPhysicalObject. Reimplemented in Iunctus. Definition at line 212 of file ArticulatedAgentBase.cpp. References ComposedPhysicalObject::draw(), and limbs. Referenced by Iunctus::draw(). |
|
Computes the contribution of the current object to the matrix of interactions between all objects that are in contact. Reimplemented from PhysicalObject. Definition at line 186 of file ArticulatedAgentBase.cpp. References ContactInfo::alpha, ContactSolver::contactMatrix, ContactSolver::contactVector, Vector2::cross(), ContactInfo::n, ContactInfo::p, Vector2::rotate(), Vector2::setXY(), and ContactInfo::sigma. |
|
Registers all composing primitives of the object with the simulator. Reimplemented from ComposedPhysicalObject. Definition at line 69 of file ArticulatedAgentBase.cpp. References limbs, ArticulatedLimb::links, and ComposedPhysicalObject::registerPrimitives(). |
|
Sets fill color. Reimplemented from ComposedPhysicalObject. Definition at line 228 of file ArticulatedAgentBase.cpp. References limbs, and ComposedPhysicalObject::setFillColor(). Referenced by Iunctus::build(). |
|
Sets outline color. Reimplemented from ComposedPhysicalObject. Definition at line 220 of file ArticulatedAgentBase.cpp. References limbs, and ComposedPhysicalObject::setOutlineColor(). Referenced by Iunctus::build(). |
|
Solves the system of equations m x=c, given the precomputed determinant of m; x is updated with the solution. Definition at line 90 of file ArticulatedAgentBase.cpp. References Matrix3::getDeterminant(), Matrix3::setColumn(), and Vector3::setElement(). |
|
Solves the system of equations m x=c; x is updated with the solution. Definition at line 83 of file ArticulatedAgentBase.cpp. References SymmetricMatrix3::getDeterminant(), SymmetricMatrix3::mirror(), and real. Referenced by ArticulatedAgentQuasistatic::backwardDynamics(), and ArticulatedAgentQuasistatic::computeBodyDerivativesWithoutContacts(). |
|
A list containing the limbs. The list owns the limbs. Definition at line 61 of file ArticulatedAgentBase.h. Referenced by addLimb(), deleteContacts(), deleteLimbs(), detectContacts(), detectInternalContacts(), detectMouseContact(), draw(), registerPrimitives(), setFillColor(), and setOutlineColor(). |
Thyrix homepage Users' guide
(C) Arxia 2004-2005