VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfVrlinkDataInterface.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>
19 #include <vlutil/vlString.h>
20 #include <vlpi/entityType.h>
21 #include <vrfutil/rwUUID.h>
22 
23 namespace makVrf
24 {
28  {
29  public:
30  typedef std::map<std::string, DtResource> ResourceMap;
31 
32  public:
35 
36  const ResourceMap& resources() const;
37 
39  virtual void clearResources();
40 
42  boost::signals2::signal<void ()> signal_resourcesChanged;
43 
44  protected:
46  virtual void resourcesChanged();
47 
50  virtual void resourceCheckingDisabled();
51 
53  virtual void addResource(const DtResource&);
54 
56  virtual void resourceCheckComplete();
57 
59  virtual void resourceUpdated(const DtResource&);
60 
61  protected:
63  };
64 
74  {
75  public:
77  virtual ~DtVrfVrlinkDataInterface();
78 
81  virtual void setStateView(const makVrv::DtStateView<makVrv::DtSimState>*);
83  {
84  return myVrlinkStateView;
85  }
86 
88  {
89  return myObjectDataState;
90  }
91 
93  {
94  return myExtendedStateData;
95  }
96 
99  virtual const DtSimpleTypedDictionary& extendedStateData() const;
100 
102  DtVrfDataInterraceResourceRequestor& resourceRequestor();
103 
106  virtual void requestResources();
107 
109  virtual std::string name() const;
110 
112  virtual std::string label() const;
113 
115  virtual const std::map<std::string, std::string>& extendedObjectData() const;
116 
118  virtual std::map<int, DtString> extendedLabels() const;
119 
120  virtual std::string activity() const;
121 
123  virtual DtEntityType entityType() const;
124 
126  virtual std::string entityId() const;
127 
129  virtual std::string globalId() const;
130 
132  virtual bool isCurrentlyTasked() const;
133 
135  virtual bool isExecutingPlan() const;
136 
138  virtual bool hasPlan() const;
139 
142  virtual DtVector location(Representation rep = Local) const;
143 
144  const DtVrfDataInterraceResourceRequestor::ResourceMap& resources() const;
145 
146  const DtUUID& uuid() const;
147 
149  boost::signals2::signal<void ()> signal_resourcesChanged;
150 
151  protected:
153  virtual void slot_onResourcesChanged();
154 
156  virtual void slot_simObjectEntryAboutToBeRemoved(makVrv::DtSimObjectEntry&);
157 
159  virtual void slot_onStateViewUpdated();
160 
161  protected:
165 
168  };
169 
170  typedef DtBoost::shared_ptr<DtVrfVrlinkDataInterface> DtVrfVrlinkDataInterfacePtr;
171 }
UUID is a unique ID wrapper class.
Definition: uuid.h:59
std::map< std::string, DtResource > ResourceMap
Definition: vrfVrlinkDataInterface.h:30
DtBoost::shared_ptr< DtVrfVrlinkDataInterface > DtVrfVrlinkDataInterfacePtr
Definition: vrfVrlinkDataInterface.h:170
Contains the DtUUID class declaration.
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
Definition: simpleTypedDictionary.h:36
A DtSimObjectEntry is an entry for a persistent simulation object like an entity. ...
Definition: DtSimObjectEntry.h:22
The DtVrfDataInterraceResourceRequestor class will request resources and add them to an internal stru...
Definition: vrfVrlinkDataInterface.h:27
The DtObjectDataInterface class is a wrapper around state views to give access to convenience methods...
Definition: objectDataInterface.h:43
The class that is the interface between the GUI and the back-end.
Definition: vrfResourceRequestor.h:33
boost::signals2::signal< void()> signal_resourcesChanged
Signal sent when resources have changed.
Definition: vrfVrlinkDataInterface.h:42
This object will return a block of resources to a request for resources for a particular entity...
Definition: ifEntityResourceResponse.h:34
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
ResourceMap myResources
Definition: vrfVrlinkDataInterface.h:62

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)