VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtEntityDataInterface Class Reference

The DtEntityDataInterface class is a wrapper around state views to give access to convenience methods which will allow developers to more easily access data about those objects. More...

Inheritance diagram for makVrf::DtEntityDataInterface:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtEntityDataInterface (makVrv::DtDe &)
virtual ~DtEntityDataInterface ()
virtual void setStateView (const makVrv::DtStateView< makVrv::DtSimState > *)
 Called to set the state view this data will wrap.
virtual
makVrv::DtElementEntry::ElementType 
type () const
 Returns the type of this object. Used for dynamic casting to proper sub-class.
virtual DtVector location (Representation rep=Local) const
 Returns the location of the entity.
virtual std::string label () const
 Returns the label of the object.
virtual DtTaitBryan orientation (Representation rep=Local) const
 Returns the orientation of the object.
virtual DtVector velocity (Representation rep=Local) const
 Returns the objects velocity.
virtual DtVector acceleration (Representation rep=Local) const
 Returns the objects acceleration.
virtual double heading () const
 Returns the objects topographic heading (in degrees)
virtual makVrv::DtElementID embarkedOn () const
 Returns the element this object is embarked on. An element ID of 0 means the item is not embarked.
virtual std::vector
< makVrv::DtElementID
objectsEmbarked () const
 Returns a list of all elements that are embarked on this object.
virtual makVrv::DtElementID superior () const
 Returns the ID of the superior of this object. If the ID is 0 the object superior is the force level object.
makVrv::DtStateView
< makVrv::DtVrlinkSimulatedEntityState > * 
entityStateView () const
 Returns the state view of this class.
makVrv::DtStateView
< DtIffStateData > * 
iffStateDataView () const
 Returns the state view for any iff data that might be associated with this class.

Protected Member Functions

virtual void slot_simObjectEntryAboutToBeRemoved (makVrv::DtSimObjectEntry &)
 Slot that is called when the state view is destroyed. Will mark this item as removed by clearing out internal pointers.

Protected Attributes

makVrv::DtStateView
< makVrv::DtVrlinkSimulatedEntityState > * 
myEntityStateView
makVrv::DtStateView
< DtIffStateData > * 
myIffStateDataView

Detailed Description

The DtEntityDataInterface class is a wrapper around state views to give access to convenience methods which will allow developers to more easily access data about those objects.

It will also provide some basic manipulation for that object


Constructor & Destructor Documentation


Member Function Documentation

Called to set the state view this data will wrap.

Subclasses are responsible for providing interface to access the specific data, however, you can access the data through the state() members of the contained state views. Overridden to cast to appropriate type

Reimplemented from makVrf::DtVrfVrlinkDataInterface.

Reimplemented in makVrf::DtAggregateDataInterface.

Returns the type of this object. Used for dynamic casting to proper sub-class.

Reimplemented from makVrf::DtObjectDataInterface.

Reimplemented in makVrf::DtAggregateDataInterface.

Returns the location of the entity.

virtual std::string makVrf::DtEntityDataInterface::label ( ) const [virtual]

Returns the label of the object.

virtual DtTaitBryan makVrf::DtEntityDataInterface::orientation ( Representation  rep = Local) const [virtual]

Returns the orientation of the object.

Returns the objects velocity.

Returns the objects acceleration.

virtual double makVrf::DtEntityDataInterface::heading ( ) const [virtual]

Returns the objects topographic heading (in degrees)

Returns the element this object is embarked on. An element ID of 0 means the item is not embarked.

virtual std::vector<makVrv::DtElementID> makVrf::DtEntityDataInterface::objectsEmbarked ( ) const [virtual]

Returns a list of all elements that are embarked on this object.

Returns the ID of the superior of this object. If the ID is 0 the object superior is the force level object.

Returns the state view of this class.

Returns the state view for any iff data that might be associated with this class.

A NULL return means this entity does not have IFF data

Slot that is called when the state view is destroyed. Will mark this item as removed by clearing out internal pointers.

Reimplemented from makVrf::DtVrfVrlinkDataInterface.

Reimplemented in makVrf::DtAggregateDataInterface.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)