|
| | DtCigiEntity (DtCigiConnection &connection, DtAgentManagerInterface &mySceneInterface, int entityId, int entityType) |
| | Constructor. More...
|
| |
| virtual | ~DtCigiEntity () |
| | Destructor. More...
|
| |
| virtual void | init () |
| | Calls down to DtCigiBaseEntity::init(), creates an articulated model, provides a model definition to it, and adds it to the scene object created in DtCigiBaseEntity::init(). More...
|
| |
| virtual void | uninit () |
| | Calls down to DtCigiBaseEntity::uninit(), and then deletes the articulated model created in init(). More...
|
| |
| virtual void | restartRequest () |
| | Overrides the base DtCigiBaseEntity::rtestart(), the only difference between them is that this will request extrapolated values not only if the entity is dead reckoned but also if hasAnimations() returns true. More...
|
| |
| virtual void | restart () |
| | Calls down to DtCigiBaseEntity::restart(), then reinintializes art parts, animation states, switch states, and active sensor regions. More...
|
| |
| virtual void | setState (int stateId, int stateValue) |
| | Set the state of a model to a value. More...
|
| |
| virtual void | setArtPartTranslation (int partId, float xOffset, float yOffset, float zOffset, bool xEnable, bool yEnable, bool zEnable) |
| | Set the relative position of an articulated part. More...
|
| |
| virtual void | setArtPartOrientation (int partId, float yaw, float pitch, float roll, bool yawEnable, bool pitchEnable, bool rollEnable) |
| | Set the orientation of an articulated part. More...
|
| |
| virtual void | setArtPartLinearRate (int partId, float xRate, float yRate, float zRate) |
| | Set the linear rate of an articulated part. More...
|
| |
| virtual void | setArtPartAngularRate (int partId, float yawRate, float pitchRate, float rollRate) |
| | Set the angular rate of an articulated part. More...
|
| |
| virtual void | setArtPartEnable (int partId, bool trueFalse) |
| | Enable/disable an articulated part. More...
|
| |
| virtual void | setAnimationSpeed (const std::string &animationName, double speed) |
| | Set the speed of an animation within the model. More...
|
| |
| virtual void | setAnimationFrame (const std::string &animationName, int frame) |
| | Set the frame of an animation within the model. More...
|
| |
| virtual void | setActiveRegionState (const std::string ®ionName, bool state) |
| | Set the state of an active sensor region. More...
|
| |
| virtual void | setAnimationRange (const std::string &animationName, int firstFrameIndex, int lastFrameIndex) |
| | Set the range of an animation within the model. More...
|
| |
| virtual void | setAnimationState (const std::string &animationName, int stateEnum) |
| | Set the animation state Takes CIGI Enum mappings, will convert to OSG for art part model. More...
|
| |
| virtual int | animationState (const std::string &animationName) |
| | Gets the animation state for particular animation Returns cigi enum mappings. More...
|
| |
| virtual bool | hasAnimations () const |
| | This is not absolute, but IF any of the methods that change animation values have been called, then this will return true. More...
|
| |
| virtual DtOsgArticulatedModel * | findArticulatedModelInRenderThread (DtUniqueID modelId) const |
| | Helper function called by queryExtrapolatedPositionAndOrientation to look up the the articulated model object given its agent id. More...
|
| |
|
virtual const
DtArticulatedModelAgent & | articulatedModelAgent () const |
| | Returns a reference to the Articulated Model for this Entity Needed as the model has a difference unique ID to the cigi entity. More...
|
| |
| virtual DtArticulatedModelAgent & | articulatedModelAgent () |
| |
| | DtCigiBaseEntity (DtCigiConnection &connection, DtAgentManagerInterface &sceneInterface, int entityId, int entityType) |
| | Constructor takes a DtCigiConnection, scene interface, and the CIGI entity ID/type. More...
|
| |
| virtual | ~DtCigiBaseEntity () |
| | Destructor. More...
|
| |
| virtual DtUniqueID | uniqueId () const |
| | Returns the element ID of the entity's scene object. More...
|
| |
| virtual DtUniqueID | elementId () const |
| | Returns the element ID of the entity's scene object. More...
|
| |
| virtual int | cigiId () const |
| | Returns the CIGI Id of the CIGI entity. More...
|
| |
| virtual int | entityType () const |
| | Get the entity type the entity was created with. More...
|
| |
| virtual bool | extendedEntityTypeOn () const |
| | Get whether the entity has extended type on. More...
|
| |
| virtual void | setExtendedEntityTypeOn (bool onOff) |
| | Set whether this entity uses extended entity type. More...
|
| |
| virtual void | setExtendedEntityType (DtEntityType &entityType) |
| | Set the extended type. More...
|
| |
| virtual void | setVisible (bool yesNo) |
| | Set whether the entity is visible. More...
|
| |
| virtual bool | isVisible () const |
| | Get the current visibility. More...
|
| |
| virtual void | setDeadReckoningOn (bool onOff) |
| | Turns dead-reckoning on/off. More...
|
| |
| virtual bool | isDeadReckoning () const |
| | Determine if the entity is ACTUALLY dead reckoning. More...
|
| |
| virtual void | setPosition (const DtGeodeticCoord &pos, bool force=false) |
| | Set the entity's geodetic position. More...
|
| |
| virtual const DtGeodeticCoord & | position () const |
| | Returns the last position set by a CIGI entity control message. More...
|
| |
| virtual const DtGeodeticCoord & | previousPosition () const |
| | Returns the entity's position that was set previously. More...
|
| |
| virtual const DtVector & | localPosition () const |
| | Returns the last computed local position set. More...
|
| |
| virtual void | setOrientation (const DtTaitBryan &orientation, bool force=false) |
| | Set the entity's orientation. More...
|
| |
| virtual const DtTaitBryan & | orientation () const |
| | Returns the last orientation set by a CIGI entity control message. More...
|
| |
| virtual const DtTaitBryan & | localOrientation () const |
| | Returns the computed last local orientation. More...
|
| |
| virtual const DtTaitBryan & | geocentricOrientation () const |
| | Get the last computed geocentric orientation. More...
|
| |
| virtual void | setLinearRate (const DtVector &rate, bool useWorldCoordinates, bool force=false) |
| | Sets the entity's linear rate. More...
|
| |
| virtual const DtVector & | linearRate () const |
| | Get the last set linear rate. More...
|
| |
| virtual void | setAngularRate (const DtVector &rate, bool useWorldCoordinates, bool force=false) |
| | Set's the entity's angular rate. More...
|
| |
| virtual const DtVector & | angularRate () const |
| | Get the last set angular rate. More...
|
| |
| virtual void | slot_deadReckoningAllowed (bool allowed) |
| | Called when IG-wide extrapolation is turned on or off. More...
|
| |
| virtual void | setAlpha (int alpha) |
| | Sets the entity's alpha value. More...
|
| |
| virtual int | alpha () const |
| | Returns the entity's alpha value. More...
|
| |
| virtual void | setInheritAlpha (bool inherit) |
| | Set whether the entity should inherit alpha from its parent. More...
|
| |
| virtual bool | isInheritingAlpha () const |
| | Determine if the entity is inheriting alpha. More...
|
| |
| virtual void | slot_alphaChanged (int alpha, DtUniqueID id) |
| | Slot so we can check if the parent's alpha has changed. More...
|
| |
| virtual void | slot_entityToBeDeleted (int cigiEntityId) |
| | Connected to the signal raised by the entity manager when an entity is removed, this is used to insure that signals connected to an embarkation parent are managed correctly if/when that parent is deleted. More...
|
| |
| virtual void | setGroundClampingOn (DtGroundClampingUpdater::GroundClampingMode clampType) |
| | Turns ground clamping on/off. More...
|
| |
virtual
DtGroundClampingUpdater::GroundClampingMode | groundClampingType () const |
| | Get the current ground clamping type. More...
|
| |
| virtual bool | getArtPartTranslation (int partId, DtVector &translation) |
| | Get the art part translation from a specified CIGI part id. More...
|
| |
| virtual bool | getArtPartOrientation (int partId, DtTaitBryan &orientation) |
| | Returns false if the part id is not found. More...
|
| |
| virtual bool | getArtPartLinearRate (int partId, DtVector &rate) |
| | Get the art part translation rate from a specified CIGI part id. More...
|
| |
| virtual bool | getArtPartTranslationAndRate (int partId, DtVector &translation, DtVector &rate) |
| | Get the art part translation and rate from a specified CIGI part id. More...
|
| |
| virtual bool | getArtPartAngularRate (int partId, DtVector &rate) |
| | Returns false if the part id is not found. More...
|
| |
| virtual bool | getArtPartOrientationAndRate (int partId, DtTaitBryan &orientation, DtVector &rate) |
| | Returns false if the part id is not found. More...
|
| |
| virtual DtSceneObjectAgent * | findSceneObjectAgent () |
| |
| virtual void | setRelativeTo (DtCigiBaseEntity *parent) |
| | Attachment control. More...
|
| |
| virtual void | setRelativePosition (const DtVector &pos) |
| | Sets the entity's relative position (if attached). More...
|
| |
| virtual void | setRelativeOrientation (const DtTaitBryan &orient) |
| | Sets the entity's relative orientation (relative to the parent's body coordinates) if attached. More...
|
| |
| virtual bool | isEmbarked () const |
| | Determine if the entity is attached to a parent entity. More...
|
| |
| virtual int | embarkedParentId () const |
| | Get the CIGI ID of the entity to which we are attached. More...
|
| |
| virtual const DtVector & | relativePosition () const |
| | Returns the last relative offset position. More...
|
| |
| virtual const DtTaitBryan & | relativeOrientation () const |
| | Returns the last relative orientation. More...
|
| |
| virtual void | addCollisionSegmentID (unsigned int segmentId) |
| | Methods for adding a removing collision segment IDs that are associated with this entity. More...
|
| |
| virtual void | removeCollisionSegmentID (unsigned int segmentId) |
| |
| virtual void | delayedStartEmbarked () |
| | When an embarked entity is restarted, it needs to be reattached to its parent at the start of the next frame (after all other entities have been restarted). More...
|
| |
|
| virtual void | getExtrapolatedValuesAndRestart () |
| | Request position and orientation values from the render thread if this entity is dead reckoned. More...
|
| |
| virtual void | queryCurrentAnimationFrame (DtUniqueID modelId, std::string animationName) |
| | This is the render thread-run method that collects the current animation frame for the specified animation on the indicated model. More...
|
| |
| virtual void | returnCurrentAnimationFrame (const std::string &animationName, int frameNum) |
| | This method returns the current animation framefor the specified animation collected from the render thread in the connection thread. More...
|
| |
| virtual void | queryExtrapolatedArtPartTranslation (DtUniqueID modelId, int cigiPartId, int disRprPartId) |
| | This is the render thread-run method that collects the current art part translation value for the specified part on the indicated model. More...
|
| |
| virtual void | returnExtrapolatedArtPartTranslation (int cigiPartId, int disRprPartId, const DtVector &translation) |
| | This method returns the current art part translation values collected from the render thread in the connection thread. More...
|
| |
| virtual void | queryExtrapolatedArtPartOrientation (DtUniqueID modelId, int cigiPartId, int disRprPartId) |
| | This is the render thread-run method that collects the current art part oriuentation value for thespecified part on the indicated model. More...
|
| |
| virtual void | returnExtrapolatedArtPartOrientation (int cigiPartId, int disRprPartId, const DtTaitBryan &translation) |
| | This method returns the current art part orientation values collected from the render thread in the connection thread. More...
|
| |
| virtual void | queryCurrentAnimationState (DtUniqueID modelId, std::string animationName) |
| | This is the render thread-run method that collects the current animation state for the specified animation on the indicated model. More...
|
| |
| virtual void | returnCurrentAnimationState (const std::string &animationName, int stateEnum) |
| | This method returns the current animation state for the specified animation collected from the render thread in the connection thread. More...
|
| |
| virtual void | startDeadReckoning () |
| | Create and set up Dead Reckoning updater. More...
|
| |
| virtual void | endDeadReckoning () |
| | Remove the Dead Reckoning updater. More...
|
| |
| virtual void | startEmbarked () |
| | Create and set up Embarkation updater. More...
|
| |
| virtual void | endEmbarked () |
| | Remove the Embarkation updater. More...
|
| |
| virtual void | startGroundClamping () |
| | Create and set up Ground Clamping updater; uses buildGroundClampingUpdater() to create the updater agents. More...
|
| |
| virtual void | buildGroundClampingUpdater () |
| | Create and intialize the ground clamping updater agents. More...
|
| |
| virtual void | endGroundClamping () |
| | Remove the Ground Clamping updater. More...
|
| |
| virtual bool | isGroundClamping () const |
| | Returns false if ground clamping type is DtGroundClampingUpdater::ClampNone true otherwise. More...
|
| |
| virtual void | queryExtrapolatedPositionAndOrientation (DtUniqueID drAgentId, bool relative) |
| | This is the render thread-run method that collects dead reckoned position and orientation. More...
|
| |
| virtual void | returnExtrapolatedPositionAndOrientation (const DtVector &resultPos, const DtTaitBryan &resultOri, bool relative, bool invokeRestart) |
| | This method returns the position and orientation collected from the render thread in the connection thread. More...
|
| |
| virtual DtDeadReckonUpdater * | findDRUpdaterInRenderThread (DtUniqueID drAgentId) const |
| | Helper function called by queryExtrapolatedPositionAndOrientation to look up the the dead reckon updater object given its agent id. More...
|
| |