VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
entityDataInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
12 
13 #pragma once
14 
15 #include <vrfGuiCore/vrfGuiCore.h>
17 #include <vrvCore/DtEntityState.h>
23 
24 namespace makVrf
25 {
30  {
31  public:
33  virtual ~DtEntityDataInterface();
34 
38  virtual void setStateView(const makVrv::DtStateView<makVrv::DtSimState>*);
39 
41  virtual makVrv::DtElementEntry::ElementType type() const;
42 
44  virtual DtVector location(Representation rep = Local) const;
45 
47  virtual std::string label() const;
48 
50  virtual DtTaitBryan orientation(Representation rep = Local) const;
51 
53  virtual DtVector velocity(Representation rep = Local) const;
54 
56  virtual DtVector acceleration(Representation rep = Local) const;
57 
59  virtual double heading() const;
60 
62  virtual makVrv::DtElementID embarkedOn() const;
63 
65  virtual std::vector<makVrv::DtElementID> objectsEmbarked() const;
66 
68  virtual makVrv::DtElementID superior() const;
69 
72  {
73  return myEntityStateView;
74  }
75 
79  {
80  return myIffStateDataView;
81  }
82 
86  {
87  return myPropulsionNoiseStateDataView;
88  }
89 
93  {
94  return myEmitterSystemStateView;
95  }
96 
100  {
101  return myActiveSonarStateView;
102  }
103 
104  protected:
106  virtual void slot_simObjectEntryAboutToBeRemoved(makVrv::DtSimObjectEntry&);
107 
108  virtual void slot_onIffStateViewAdded(const DtIffStateDataView& view);
109 
110  virtual void slot_onIffStateViewAboutToBeRemoved(const DtIffStateDataView& view);
111 
112  protected:
118 
120  };
121 
123 
124  typedef DtBoost::shared_ptr<DtEntityDataInterface> DtEntityDataInterfacePtr;
125 }
makVrv::DtStateView< DtVrlinkEmitterSystems > * myEmitterSystemStateView
Definition: entityDataInterface.h:116
DtObjectDataInterfaceCreator< DtEntityDataInterface > DtEntityDataInterfaceCreator
Definition: entityDataInterface.h:122
makVrv::DtSignalConnectionManager myConnections
Definition: entityDataInterface.h:119
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:26
A DtSimObjectEntry is an entry for a persistent simulation object like an entity. ...
Definition: DtSimObjectEntry.h:25
makVrv::DtStateView< DtPropulsionNoiseStateData > * propulsionNoiseStateDataView() const
Returns the state view for any propulsionnoise data that might be associated with this class...
Definition: entityDataInterface.h:85
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
Contains makVrv::DtEntityState class.
ElementType
Definition: DtElementEntry.h:26
Representation
Use these enums in various information methods to return data in local or world coordinates.
Definition: objectDataInterface.h:47
makVrv::DtStateView< DtPropulsionNoiseStateData > * myPropulsionNoiseStateDataView
Definition: entityDataInterface.h:115
Base class to provide boost signal/slot management.
The DtEntityDataInterface class is a wrapper around state views to give access to convenience methods...
Definition: entityDataInterface.h:29
makVrv::DtStateView< makVrv::DtVrlinkSimulatedEntityState > * entityStateView() const
Returns the state view of this class.
Definition: entityDataInterface.h:71
makVrv::DtStateView< makVrv::DtVrlinkSimulatedEntityState > * myEntityStateView
Definition: entityDataInterface.h:113
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
makVrv::DtStateView< DtVrlinkEmitterSystems > * emitterSystemStateView() const
Returns the state view for any emitters that are associated with this entity.
Definition: entityDataInterface.h:92
makVrv::DtStateView< DtIffStateData > * iffStateDataView() const
Returns the state view for any iff data that might be associated with this class. ...
Definition: entityDataInterface.h:78
DtBoost::shared_ptr< DtEntityDataInterface > DtEntityDataInterfacePtr
Definition: entityDataInterface.h:124
makVrv::DtStateView< DtVrlinkActiveSonars > * myActiveSonarStateView
Definition: entityDataInterface.h:117
Templated class implementation. Create on and pass into the factory.
Definition: objectDataInterface.h:143
makVrv::DtStateView< DtIffStateData > * myIffStateDataView
Definition: entityDataInterface.h:114
makVrv::DtStateView< DtVrlinkActiveSonars > * activeSonarStateView() const
Returns the state view for any active sonars that are associated with this entity.
Definition: entityDataInterface.h:99

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)