#include <humanHand.h>
Public Member Functions | |
void | createGeometry () |
Link * | getAttachedLink () |
int | getChainNr () |
SoSeparator * | getIVRoot () |
int | getLinkNr () |
vec3 | getLocation () const |
vec3 | getOrientation () const |
double | getRadius () const |
Robot * | getRobot () |
bool | isExempt (QString name) |
Check if the tendon with the given name is exempt from intersection with this tendon. | |
bool | loadFromXml (const TiXmlElement *root) |
void | setLocation (vec3 loc) |
void | setOrientation (vec3 orient) |
void | setRadius (double r) |
TendonWrapper (Robot *myOwner) | |
void | updateGeometry () |
Public Attributes | |
vec3 | location |
vec3 | orientation |
double | radius |
Private Attributes | |
int | attachChainNr |
int | attachLinkNr |
SoSeparator * | IVWrapper |
SoCylinder * | IVWrapperGeom |
SoMaterial * | IVWrapperMaterial |
SoTransform * | IVWrapperTran |
std::list< QString > | mExemptList |
A list of tendons (by name) that are exempt from wrapping around this wrapper. | |
Robot * | owner |
The TendonWrapper is a cylindrical shape that a tendon is not alowed to penetrate and must wrap around. Like an insertion point, it is attached to a robot link, and defined in the link's coordinate system.
Definition at line 140 of file humanHand.h.
TendonWrapper::TendonWrapper | ( | Robot * | myOwner | ) |
Definition at line 952 of file humanHand.cpp.
void TendonWrapper::createGeometry | ( | ) |
Definition at line 971 of file humanHand.cpp.
Link * TendonWrapper::getAttachedLink | ( | ) |
Use this function to get the link the tendon wrapper is attached to. If chain is -1 this means it is attached to the base of the robot and this function will handle this correctly.
Definition at line 961 of file humanHand.cpp.
int TendonWrapper::getChainNr | ( | ) | [inline] |
Definition at line 174 of file humanHand.h.
SoSeparator* TendonWrapper::getIVRoot | ( | ) | [inline] |
Definition at line 173 of file humanHand.h.
int TendonWrapper::getLinkNr | ( | ) | [inline] |
Definition at line 175 of file humanHand.h.
vec3 TendonWrapper::getLocation | ( | ) | const [inline] |
Definition at line 163 of file humanHand.h.
vec3 TendonWrapper::getOrientation | ( | ) | const [inline] |
Definition at line 166 of file humanHand.h.
double TendonWrapper::getRadius | ( | ) | const [inline] |
Definition at line 169 of file humanHand.h.
Robot* TendonWrapper::getRobot | ( | ) | [inline] |
Definition at line 160 of file humanHand.h.
bool TendonWrapper::isExempt | ( | QString | name | ) |
Check if the tendon with the given name is exempt from intersection with this tendon.
Definition at line 1083 of file humanHand.cpp.
bool TendonWrapper::loadFromXml | ( | const TiXmlElement * | root | ) |
Definition at line 1025 of file humanHand.cpp.
void TendonWrapper::setLocation | ( | vec3 | loc | ) |
Definition at line 1007 of file humanHand.cpp.
void TendonWrapper::setOrientation | ( | vec3 | orient | ) |
Definition at line 1013 of file humanHand.cpp.
void TendonWrapper::setRadius | ( | double | r | ) |
Definition at line 1019 of file humanHand.cpp.
void TendonWrapper::updateGeometry | ( | ) |
Definition at line 999 of file humanHand.cpp.
int TendonWrapper::attachChainNr [private] |
Definition at line 143 of file humanHand.h.
int TendonWrapper::attachLinkNr [private] |
Definition at line 142 of file humanHand.h.
SoSeparator* TendonWrapper::IVWrapper [private] |
Definition at line 146 of file humanHand.h.
SoCylinder* TendonWrapper::IVWrapperGeom [private] |
Definition at line 149 of file humanHand.h.
SoMaterial* TendonWrapper::IVWrapperMaterial [private] |
Definition at line 147 of file humanHand.h.
SoTransform* TendonWrapper::IVWrapperTran [private] |
Definition at line 148 of file humanHand.h.
Definition at line 155 of file humanHand.h.
std::list<QString> TendonWrapper::mExemptList [private] |
A list of tendons (by name) that are exempt from wrapping around this wrapper.
Definition at line 152 of file humanHand.h.
Definition at line 155 of file humanHand.h.
Robot* TendonWrapper::owner [private] |
Definition at line 144 of file humanHand.h.
double TendonWrapper::radius |
Definition at line 156 of file humanHand.h.