NTRT Simulator
Version: Master
|
#include <tgPair.h>
Public Member Functions | |
tgPair (btVector3 from, btVector3 to) | |
tgPair (btVector3 from, btVector3 to, std::string tags) | |
btVector3 & | getFrom () |
const btVector3 & | getFrom () const |
void | setFrom (btVector3 from) |
btVector3 & | getTo () |
const btVector3 & | getTo () const |
void | setTo (btVector3 to) |
void | addRotation (const btVector3 &fixedPoint, const btVector3 &axis, double angle) |
void | addRotation (const btVector3 &fixedPoint, const btVector3 &fromOrientation, const btVector3 &toOrientation) |
void | addRotation (const btVector3 &fixedPoint, const btQuaternion &rotation) |
bool | operator== (const tgPair &other) const |
void | move (const btVector3 &offset) |
void | scale (const btVector3 &referencePoint, double scaleFactor) |
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 |
Protected Attributes | |
std::pair< btVector3, btVector3 > | m_pair |
Change the API to std::pair<btVector3*, btVector3*>. This renames "first" to "from" and "second" to "to". The client uses non-const references.
tgPair::tgPair | ( | btVector3 | from, |
btVector3 | to | ||
) |
Create a pair from two btVector3 objects.
[in] | from | a btVector3 |
[in] | to | a btVector3 |
Create a pair from two btVector3 objects.
[in] | from | a btVector3 |
[in] | to | a btVector3 |
Definition at line 40 of file tgPair.cpp.
btVector3 & tgPair::getFrom | ( | ) |
Return the from (first) member of the pair.
Definition at line 52 of file tgPair.cpp.
btVector3 & tgPair::getTo | ( | ) |
Return the to (second) member of the pair.
Definition at line 76 of file tgPair.cpp.
void tgPair::setFrom | ( | btVector3 | from | ) |
Set the from (first) member of the pair.
[in] | from | the to (first) member of the pair |
Definition at line 68 of file tgPair.cpp.
void tgPair::setTo | ( | btVector3 | to | ) |
Set the to (second) member of the pair.
[in] | to | the to (second) member of the pair |
Definition at line 92 of file tgPair.cpp.
|
protected |