VR-Forces Developer's Guide
 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 {
34  {
35  public:
37  virtual ~DtEntityDataInterface();
38 
42  virtual void setStateView(const makVrv::DtStateView<makVrv::DtSimState>*);
43 
45  virtual makVrv::DtElementEntry::ElementType type() const;
46 
48  virtual DtVector location(Representation rep = Local) const;
49 
51  virtual std::string label() const;
52 
54  virtual DtTaitBryan orientation(Representation rep = Local) const;
55 
57  virtual DtVector velocity(Representation rep = Local) const;
58 
60  virtual DtVector acceleration(Representation rep = Local) const;
61 
63  virtual double heading() const;
64 
66  virtual makVrv::DtElementID embarkedOn() const;
67 
69  virtual std::vector<makVrv::DtElementID> objectsEmbarked() const;
70 
72  virtual makVrv::DtElementID superior() const;
73 
76  {
77  return myEntityStateView;
78  }
79 
83  {
84  return myIffStateDataView;
85  }
86 
90  {
91  return myPropulsionNoiseStateDataView;
92  }
93 
97  {
98  return myEmitterSystemStateView;
99  }
100 
104  {
105  return myActiveSonarStateView;
106  }
107 
108  protected:
110  virtual void slot_simObjectEntryAboutToBeRemoved(makVrv::DtSimObjectEntry&);
111 
112  virtual void slot_onIffStateViewAdded(const DtIffStateDataView& view);
113 
114  virtual void slot_onIffStateViewAboutToBeRemoved(const DtIffStateDataView& view);
115 
116  protected:
122 
124  };
125 
127 
128  typedef DtBoost::shared_ptr<DtEntityDataInterface> DtEntityDataInterfacePtr;
129 }
makVrv::DtStateView< DtVrlinkEmitterSystems > * myEmitterSystemStateView
Definition: entityDataInterface.h:120
DtObjectDataInterfaceCreator< DtEntityDataInterface > DtEntityDataInterfaceCreator
Definition: entityDataInterface.h:126
makVrv::DtSignalConnectionManager myConnections
Definition: entityDataInterface.h:123
#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:23
A DtSimObjectEntry is an entry for a persistent simulation object like an entity. ...
Definition: DtSimObjectEntry.h:22
makVrv::DtStateView< DtPropulsionNoiseStateData > * propulsionNoiseStateDataView() const
Returns the state view for any propulsionnoise data that might be associated with this class...
Definition: entityDataInterface.h:89
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Contains makVrv::DtVrlinkSimulatedEntityState 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:119
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:33
makVrv::DtStateView< makVrv::DtVrlinkSimulatedEntityState > * entityStateView() const
Returns the state view of this class.
Definition: entityDataInterface.h:75
makVrv::DtStateView< makVrv::DtVrlinkSimulatedEntityState > * myEntityStateView
Definition: entityDataInterface.h:117
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
makVrv::DtStateView< DtVrlinkEmitterSystems > * emitterSystemStateView() const
Returns the state view for any emitters that are associated with this entity. A NULL return means thi...
Definition: entityDataInterface.h:96
makVrv::DtStateView< DtIffStateData > * iffStateDataView() const
Returns the state view for any iff data that might be associated with this class. A NULL return means...
Definition: entityDataInterface.h:82
DtBoost::shared_ptr< DtEntityDataInterface > DtEntityDataInterfacePtr
Definition: entityDataInterface.h:128
makVrv::DtStateView< DtVrlinkActiveSonars > * myActiveSonarStateView
Definition: entityDataInterface.h:121
Templated class implementation. Create on and pass into the factory.
Definition: objectDataInterface.h:143
makVrv::DtStateView< DtIffStateData > * myIffStateDataView
Definition: entityDataInterface.h:118
makVrv::DtStateView< DtVrlinkActiveSonars > * activeSonarStateView() const
Returns the state view for any active sonars that are associated with this entity. A NULL return means this entity does not have emitter data.
Definition: entityDataInterface.h:103

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)