Public Member Functions | |
virtual BoundingBox | getBoundingBox () const=0 |
virtual void | setName (const String &name) |
virtual void | setInterpenetrationIsNormal (bool interpenetrationIsNormal) |
virtual bool | isInterpenetrationNormal () const |
virtual ref< const Collidable > | findNamed (const String &name, bool recurse=true) const |
virtual ref< Collidable > | findNamed (const String &name, bool recurse=true) |
virtual void | setUserData (ref< base::ReferencedObject > data) |
virtual ref< base::ReferencedObject > | getUserData () const |
virtual void | setUserClass (Int userClass=0) |
Collisions between Collidables of the same class number (>0) are culled. | |
virtual Int | getUserClass () const |
virtual const String & | getName () const |
virtual bool | isSameKindAs (const ReferencedObject &) const |
virtual bool | isSameKindAs (const Object &) const |
virtual String | className () const=0 |
void | reference () const |
bool | unreference () const |
const int | referenceCount () const |
void | enableOnUnreferenceCall (bool enabled) |
virtual void | onUnreference () const |
Protected Member Functions | |
Collidable (bool interpenetrationNormal=false) | |
Collidable (const Collidable &c) | |
Protected Attributes | |
bool | interpenetrationNormal |
if under normal circumstances this Collidable is expected to sometimes be interpenetrating another Collidable, this is true | |
ref< base::ReferencedObject > | userData |
Int | userClass |
int | _refCount |
bool | onUnreferenceEnabled |
|
Definition at line 62 of file Collidable. References interpenetrationNormal, and userClass. |
|
Definition at line 63 of file Collidable. References interpenetrationNormal, and userData. |
|
|
If enabled, each call to unreference() will also call virtual method onUnreference() Definition at line 115 of file Referenced. References base::Referenced::onUnreferenceEnabled. |
|
Reimplemented in physics::CollidableGroup. Definition at line 51 of file Collidable. References base::Named::getName(). |
|
Reimplemented in physics::CollidableGroup. Definition at line 48 of file Collidable. References base::Named::getName(). |
|
Implemented in physics::CollidableBody, and physics::CollidableGroup. |
|
Definition at line 44 of file Named. References base::String. Referenced by findNamed(), physics::operator<<(), robot::ToolDescription::operator=(), robot::RobotDescription::operator=(), robot::PlatformDescription::operator=(), robot::ManipulatorDescription::operator=(), base::Named::operator=(), and robot::ManipulatorDescription::operator==(). |
|
Definition at line 59 of file Collidable. References userClass. |
|
Definition at line 55 of file Collidable. References userData. |
|
Definition at line 46 of file Collidable. References interpenetrationNormal. |
|
|
|
Definition at line 52 of file ReferencedObject. |
|
Called by unreference() if enabled via enableOnUnreferenceCall(true). Typically overridden in subclasses that wish to know about unreference() calls - for example to handle manually breaking cyclic references Reimplemented in robot::control::ControllableAdaptor::AdaptorControlInterface, and robot::control::ControllableAdaptor. Definition at line 121 of file Referenced. Referenced by base::Referenced::unreference(). |
|
Increment the reference count by one, indicating that this object has another pointer which is referencing it. Definition at line 65 of file Referenced. References base::Referenced::_refCount. |
|
Return the number pointers currently referencing this object. Definition at line 112 of file Referenced. References base::Referenced::_refCount. Referenced by robot::control::ControllableAdaptor::AdaptorControlInterface::onUnreference(). |
|
Definition at line 45 of file Collidable. References interpenetrationNormal. |
|
Reimplemented from base::Named. Definition at line 43 of file Collidable. |
|
Collisions between Collidables of the same class number (>0) are culled.
Definition at line 58 of file Collidable. |
|
Definition at line 54 of file Collidable. References userData. |
|
Decrement the reference count by one, indicating that a pointer to this object is referencing it. If the refence count goes to zero, it is assumed that this object is nolonger referenced and is automatically deleted. Definition at line 81 of file Referenced. References base::Referenced::_refCount, Exception, base::Referenced::onUnreference(), and base::Referenced::onUnreferenceEnabled. |
|
Definition at line 136 of file Referenced. Referenced by base::Referenced::reference(), base::Referenced::referenceCount(), base::Referenced::Referenced(), base::Referenced::unreference(), and base::Referenced::~Referenced(). |
|
if under normal circumstances this Collidable is expected to sometimes be interpenetrating another Collidable, this is true
Definition at line 66 of file Collidable. Referenced by Collidable(), isInterpenetrationNormal(), and setInterpenetrationIsNormal(). |
|
Definition at line 137 of file Referenced. Referenced by base::Referenced::enableOnUnreferenceCall(), base::Referenced::Referenced(), and base::Referenced::unreference(). |
|
Definition at line 69 of file Collidable. Referenced by Collidable(), and getUserClass(). |
|
Definition at line 68 of file Collidable. Referenced by Collidable(), getUserData(), and setUserData(). |