VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtOrbatDataInterface Class Reference

The DtOrbatDataInterface 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::DtOrbatDataInterface:
Inheritance graph
[legend]

Public Member Functions

 DtOrbatDataInterface (makVrv::DtDe &)
 
virtual ~DtOrbatDataInterface ()
 
virtual
makVrv::DtElementEntry::ElementType 
type () const
 Returns the type of this object. Used for dynamic casting to proper sub-class. More...
 
makVrv::DtStateView
< DtOrbatState > * 
orbatStateView () const
 Access to the complete set of data on the spot report object is done though this method. More...
 
virtual DtUUID uuid () const
 The UUID of the entity that would be created. More...
 
virtual DtUUID parentUUID () const
 The UUID of the parent if part of a unit. More...
 
virtual const std::map
< std::string, std::string > & 
extendedData () const
 The extended data. More...
 
virtual DtUUID uuidOfOrbat () const
 The UUID of this state view. More...
 
virtual void setStateView (const makVrv::DtStateView< makVrv::DtSimState > *)
 Called to set the state view this data will wrap. More...
 
- Public Member Functions inherited from makVrf::DtObjectDataInterface
 DtObjectDataInterface (makVrv::DtDe &)
 
virtual ~DtObjectDataInterface ()
 
makVrv::DtElementID elementID () const
 Returns the element id of this object. More...
 
virtual
makVrv::DtSimEntryUpdater::UpdateRate 
setUpdateRate (makVrv::DtSimEntryUpdater::UpdateRate)
 Sets the update rate for the data contained in this data interface. More...
 
makVrv::DtSimEntryUpdater::UpdateRate updateRate () const
 Returns the current update rate. More...
 
virtual void forceUpdate ()
 Forces an update of the data so on the next tick the network thread will update data in the gui thread. More...
 
virtual bool isValid () const
 Returns true if this is a valid data interface. More...
 
virtual bool hasBeenRemoved () const
 Returns true if this item has been removed from the simulation. More...
 
virtual bool isVisible () const
 Returns true if the item is visible. More...
 
virtual void setVisible (bool)
 Sets the item to visible or invisible. More...
 
virtual bool isSelected () const
 Returns true if the item is selected. More...
 
virtual void removeFromSelection ()
 Removes the item from the current selection. More...
 
virtual void addToSelection (bool replace=false)
 Adds the item to the current selection. If replace is true will replace the current selection and leave only the item. More...
 

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. More...
 
- Protected Member Functions inherited from makVrf::DtObjectDataInterface
virtual DtVector geocentricVectorToLocalVector (const DtVector &localLocation, const DtVector &geocVector) const
 Converts a geocentric vector to a local vector, given the local location. More...
 
virtual void slot_onStateViewUpdated ()
 Called when any of the state views data has been updated. Sends out signal_dataUpdated. More...
 

Protected Attributes

makVrv::DtStateView
< DtOrbatState > * 
myOrbatStateView
 
- Protected Attributes inherited from makVrf::DtObjectDataInterface
makVrv::DtDemyDe
 
makVrv::DtStateView
< makVrv::DtSimState > * 
myStateView
 

Additional Inherited Members

- Public Types inherited from makVrf::DtObjectDataInterface
enum  Representation { Local = 0, World = 1 }
 Use these enums in various information methods to return data in local or world coordinates. More...
 
- Static Public Member Functions inherited from makVrf::DtObjectDataInterface
template<typename T_ObjectDataInterfaceType >
static DtBoost::shared_ptr
< T_ObjectDataInterfaceType > 
cast (DtBoost::shared_ptr< DtObjectDataInterface > dataInterface)
 This is a convenience method for casting a DtBoost::shared_ptr to a DtObjectDataInterface to a derived class. More...
 
- Public Attributes inherited from makVrf::DtObjectDataInterface
boost::signals2::signal< void()> signal_dataUpdated
 Signal sent when any of this items data has been updated. More...
 
boost::signals2::signal< void()> signal_dataRemoved
 Signal send when this items data has been removed. More...
 

Detailed Description

The DtOrbatDataInterface 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.

See Also
DtObjectDataInterface
Examples
GUI Object Data Interface example.

Constructor & Destructor Documentation

makVrf::DtOrbatDataInterface::DtOrbatDataInterface ( makVrv::DtDe )
virtual makVrf::DtOrbatDataInterface::~DtOrbatDataInterface ( )
virtual

Member Function Documentation

virtual makVrv::DtElementEntry::ElementType makVrf::DtOrbatDataInterface::type ( ) const
virtual

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

Reimplemented from makVrf::DtObjectDataInterface.

makVrv::DtStateView<DtOrbatState>* makVrf::DtOrbatDataInterface::orbatStateView ( ) const
inline

Access to the complete set of data on the spot report object is done though this method.

virtual DtUUID makVrf::DtOrbatDataInterface::uuid ( ) const
virtual

The UUID of the entity that would be created.

virtual DtUUID makVrf::DtOrbatDataInterface::parentUUID ( ) const
virtual

The UUID of the parent if part of a unit.

virtual const std::map<std::string, std::string>& makVrf::DtOrbatDataInterface::extendedData ( ) const
virtual

The extended data.

virtual DtUUID makVrf::DtOrbatDataInterface::uuidOfOrbat ( ) const
virtual

The UUID of this state view.

virtual void makVrf::DtOrbatDataInterface::setStateView ( const makVrv::DtStateView< makVrv::DtSimState > *  )
virtual

Called to set the state view this data will wrap.

Reimplemented from makVrf::DtObjectDataInterface.

virtual void makVrf::DtOrbatDataInterface::slot_simObjectEntryAboutToBeRemoved ( makVrv::DtSimObjectEntry )
protectedvirtual

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

Reimplemented from makVrf::DtObjectDataInterface.

Member Data Documentation

makVrv::DtStateView<DtOrbatState>* makVrf::DtOrbatDataInterface::myOrbatStateView
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)