Sirikata
|
Stores the basic properties for objects, i.e. More...
#include <PresenceProperties.hpp>
Public Types | |
enum | LOC_PARTS { LOC_POS_PART = 0, LOC_ORIENT_PART = 1, LOC_BOUNDS_PART = 2, LOC_MESH_PART = 3, LOC_PHYSICS_PART = 4, LOC_IS_AGG_PART = 5, LOC_PARENT_PART = 6, LOC_NUM_PART = 7 } |
Public Member Functions | |
SequencedPresenceProperties () | |
virtual | ~SequencedPresenceProperties () |
uint64 | getUpdateSeqNo (LOC_PARTS whichPart) const |
bool | setLocation (const TimedMotionVector3f &reqloc, uint64 seqno) |
bool | setLocation (const TimedMotionVector3f &l) |
bool | setOrientation (const TimedMotionQuaternion &reqorient, uint64 seqno) |
bool | setOrientation (const TimedMotionQuaternion &o) |
bool | setBounds (const AggregateBoundingInfo &b, uint64 seqno) |
bool | setBounds (const AggregateBoundingInfo &b) |
bool | setMesh (const Transfer::URI &m, uint64 seqno) |
bool | setMesh (const Transfer::URI &m) |
bool | setPhysics (const String &p, uint64 seqno) |
bool | setPhysics (const String &p) |
bool | setIsAggregate (bool isAgg, uint64 seqno) |
bool | setIsAggregate (bool isAgg) |
bool | setParent (const ObjectReference &parent, uint64 seqno) |
bool | setParent (const ObjectReference &parent) |
void | reset () |
uint64 | maxSeqNo () const |
Private Attributes | |
uint64 | mUpdateSeqno [LOC_NUM_PART] |
Stores the basic properties for objects, i.e.
location, orientation, mesh, etc., as well sequence numbers for each of those properties. Useful in determining the most up-to-date information for an object.
Sirikata::SequencedPresenceProperties::SequencedPresenceProperties | ( | ) | [inline] |
References reset().
virtual Sirikata::SequencedPresenceProperties::~SequencedPresenceProperties | ( | ) | [inline, virtual] |
uint64 Sirikata::SequencedPresenceProperties::getUpdateSeqNo | ( | LOC_PARTS | whichPart | ) | const [inline] |
References Sirikata::Logging::error, LOC_NUM_PART, mUpdateSeqno, and SILOG.
uint64 Sirikata::SequencedPresenceProperties::maxSeqNo | ( | ) | const [inline] |
References LOC_NUM_PART, and mUpdateSeqno.
Referenced by Sirikata::StandardLocationService::epoch(), and Sirikata::BulletPhysicsService::epoch().
void Sirikata::SequencedPresenceProperties::reset | ( | ) | [inline] |
Reimplemented in Sirikata::ProxyObject.
References LOC_NUM_PART, and mUpdateSeqno.
Referenced by Sirikata::StandardLocationService::addLocalAggregateObject(), Sirikata::StandardLocationService::addLocalObject(), Sirikata::StandardLocationService::addReplicaObject(), Sirikata::BulletPhysicsService::addReplicaObject(), and SequencedPresenceProperties().
bool Sirikata::SequencedPresenceProperties::setBounds | ( | const AggregateBoundingInfo & | b, |
uint64 | seqno | ||
) | [inline] |
Reimplemented in Sirikata::ProxyObject.
References LOC_BOUNDS_PART, Sirikata::PresenceProperties::mBounds, and mUpdateSeqno.
Referenced by Sirikata::StandardLocationService::addLocalAggregateObject(), Sirikata::BulletPhysicsService::addLocalAggregateObject(), Sirikata::StandardLocationService::addLocalObject(), Sirikata::BulletPhysicsService::addLocalObject(), Sirikata::StandardLocationService::addReplicaObject(), Sirikata::BulletPhysicsService::addReplicaObject(), Sirikata::ProxyObject::setBounds(), and setBounds().
bool Sirikata::SequencedPresenceProperties::setBounds | ( | const AggregateBoundingInfo & | b | ) | [inline, virtual] |
Reimplemented from Sirikata::PresenceProperties.
References setBounds().
bool Sirikata::SequencedPresenceProperties::setIsAggregate | ( | bool | isAgg, |
uint64 | seqno | ||
) | [inline] |
Reimplemented in Sirikata::ProxyObject.
References LOC_IS_AGG_PART, Sirikata::PresenceProperties::mIsAggregate, and mUpdateSeqno.
Referenced by Sirikata::ProxyObject::setIsAggregate(), and setIsAggregate().
bool Sirikata::SequencedPresenceProperties::setIsAggregate | ( | bool | isAgg | ) | [inline, virtual] |
Reimplemented from Sirikata::PresenceProperties.
References setIsAggregate().
bool Sirikata::SequencedPresenceProperties::setLocation | ( | const TimedMotionVector3f & | reqloc, |
uint64 | seqno | ||
) | [inline] |
Reimplemented in Sirikata::ProxyObject.
References LOC_POS_PART, Sirikata::PresenceProperties::mLoc, and mUpdateSeqno.
Referenced by Sirikata::StandardLocationService::addLocalAggregateObject(), Sirikata::BulletPhysicsService::addLocalAggregateObject(), Sirikata::StandardLocationService::addLocalObject(), Sirikata::BulletPhysicsService::addLocalObject(), Sirikata::StandardLocationService::addReplicaObject(), Sirikata::BulletPhysicsService::addReplicaObject(), Sirikata::BulletRigidBodyObject::applyForcedLocation(), Sirikata::BulletCharacterObject::applyForcedLocation(), Sirikata::BulletPhysicsService::setLocation(), Sirikata::ProxyObject::setLocation(), and setLocation().
bool Sirikata::SequencedPresenceProperties::setLocation | ( | const TimedMotionVector3f & | l | ) | [inline, virtual] |
Reimplemented from Sirikata::PresenceProperties.
References setLocation().
bool Sirikata::SequencedPresenceProperties::setMesh | ( | const Transfer::URI & | m, |
uint64 | seqno | ||
) | [inline] |
Reimplemented in Sirikata::ProxyObject.
References LOC_MESH_PART, Sirikata::PresenceProperties::mMesh, and mUpdateSeqno.
Referenced by Sirikata::StandardLocationService::addLocalAggregateObject(), Sirikata::BulletPhysicsService::addLocalAggregateObject(), Sirikata::StandardLocationService::addLocalObject(), Sirikata::BulletPhysicsService::addLocalObject(), Sirikata::StandardLocationService::addReplicaObject(), Sirikata::BulletPhysicsService::addReplicaObject(), Sirikata::ProxyObject::setMesh(), and setMesh().
bool Sirikata::SequencedPresenceProperties::setMesh | ( | const Transfer::URI & | m | ) | [inline, virtual] |
Reimplemented from Sirikata::PresenceProperties.
References setMesh().
bool Sirikata::SequencedPresenceProperties::setOrientation | ( | const TimedMotionQuaternion & | reqorient, |
uint64 | seqno | ||
) | [inline] |
Reimplemented in Sirikata::ProxyObject.
References LOC_ORIENT_PART, Sirikata::PresenceProperties::mOrientation, and mUpdateSeqno.
Referenced by Sirikata::StandardLocationService::addLocalAggregateObject(), Sirikata::BulletPhysicsService::addLocalAggregateObject(), Sirikata::StandardLocationService::addLocalObject(), Sirikata::BulletPhysicsService::addLocalObject(), Sirikata::StandardLocationService::addReplicaObject(), Sirikata::BulletPhysicsService::addReplicaObject(), Sirikata::BulletRigidBodyObject::applyForcedOrientation(), Sirikata::BulletCharacterObject::applyForcedOrientation(), Sirikata::BulletPhysicsService::setOrientation(), Sirikata::ProxyObject::setOrientation(), and setOrientation().
bool Sirikata::SequencedPresenceProperties::setOrientation | ( | const TimedMotionQuaternion & | o | ) | [inline, virtual] |
Reimplemented from Sirikata::PresenceProperties.
References setOrientation().
bool Sirikata::SequencedPresenceProperties::setParent | ( | const ObjectReference & | parent | ) | [inline, virtual] |
Reimplemented from Sirikata::PresenceProperties.
References setParent().
bool Sirikata::SequencedPresenceProperties::setParent | ( | const ObjectReference & | parent, |
uint64 | seqno | ||
) | [inline] |
References LOC_PARENT_PART, Sirikata::PresenceProperties::mParent, mUpdateSeqno, and Sirikata::PresenceProperties::parent().
Referenced by setParent().
bool Sirikata::SequencedPresenceProperties::setPhysics | ( | const String & | p | ) | [inline, virtual] |
Reimplemented from Sirikata::PresenceProperties.
References setPhysics().
bool Sirikata::SequencedPresenceProperties::setPhysics | ( | const String & | p, |
uint64 | seqno | ||
) | [inline] |
Reimplemented in Sirikata::ProxyObject.
References LOC_PHYSICS_PART, Sirikata::PresenceProperties::mPhysics, and mUpdateSeqno.
Referenced by Sirikata::StandardLocationService::addLocalAggregateObject(), Sirikata::BulletPhysicsService::addLocalAggregateObject(), Sirikata::StandardLocationService::addLocalObject(), Sirikata::BulletPhysicsService::addLocalObject(), Sirikata::StandardLocationService::addReplicaObject(), Sirikata::BulletPhysicsService::addReplicaObject(), Sirikata::ProxyObject::setPhysics(), and setPhysics().
uint64 Sirikata::SequencedPresenceProperties::mUpdateSeqno[LOC_NUM_PART] [private] |
Referenced by getUpdateSeqNo(), maxSeqNo(), reset(), setBounds(), setIsAggregate(), setLocation(), setMesh(), setOrientation(), setParent(), and setPhysics().