VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregateCopyObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 #include <vrfGuiCore/vrfGuiCore.h>
19 
21 
22 namespace makVrv
23 {
24  struct DtVrlinkSimulatedEntityState;
25 };
26 
27 namespace makVrf
28 {
30  {
31  public:
34 
36  {
37  myObjectsPasting.push_back(o);
38  }
39 
40  void centerPasteObjects(const DtGeodeticCoord&, const DtGeodeticCoord&);
41 
42  protected:
44  virtual DtCopyObject* createCopyObject(int) const;
45  };
46 
48  {
49 
50  public:
52  virtual ~DtAggregateCopyObject();
53 
54  protected:
56  virtual void write(std::ostringstream& str, const makVrv::DtVrlinkSimulatedEntityState* data, makVrv::DtUniqueID id);
57 
59  virtual void read(std::istringstream& str, makVrv::DtVrlinkSimulatedEntityState* data);
60 
62  virtual void copied(DtCopyObject*, const std::string&);
63 
65  virtual void copyOperationPending(DtCopyObject*, const std::string&);
66 
67  protected:
70  virtual void createObject(const DtVector&);
71 
73  virtual void pasteCompleted();
74 
76  virtual bool pasteComplete() const;
77 
79  virtual std::string pastePendingMessage() const;
80 
82  virtual void readComplete(std::istringstream& str);
83 
85  virtual void pasted(DtCopyObject*);
86 
88  virtual void pasteOperationPending(DtCopyObject*, const std::string&);
89 
92  virtual void pasteCancelled(DtCopyObject*);
93 
95  virtual void addStateData(std::map<std::string, std::string>&, const DtRwVariableBindings&, const DtString& var);
96 
97  virtual void paste(const DtVector& geocLocation, int flags);
98 
99  public:
102  virtual bool copyOperationsPending() const;
103 
104  protected:
106  virtual void copyChildren(const makVrv::DtElementIDHierarchy::ElementIDs&);
107 
109  virtual void cancel();
110 
111  virtual std::string copyPendingMessage() const;
112  virtual void forceUpdate(DtVrlinkSimulatedBaseStateView* stateView, makVrv::DtSimEntry* simEntry);
113 
114  virtual bool cancelComplete() const;
115 
116  virtual void copy(makVrv::DtSimEntry* simEntry);
117  virtual void slot_onStateViewUpdated(DtVrlinkAggregateStateView* state, makVrv::DtSimEntry* simEntry);
118 
120  virtual void copyComplete();
121 
124  virtual makVrv::DtVrlinkSimulatedBaseState* createReadableStateData() const;
125 
127  virtual DtEntityCreationData entityCreationData(const DtVector&);
128 
130  virtual void processPasteStep();
131 
132  protected:
140 
141  typedef std::set<DtUUID> AwaitingMap;
142 
144  {
147  };
148 
149  std::vector<SubordinateState> myPastedSubordinates;
152  };
153 
157  {
158  public:
159  virtual DtCopyObject* create(makVrv::DtDe&);
160  };
161 }
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
makVrv::DtSignalConnectionManager myCopyConnections
Definition: aggregateCopyObject.h:134
std::vector< DtElementID > ElementIDs
Definition: DtElementIDHierarchy.h:114
Definition: aggregateCopyObject.h:47
A DtSimEntry is a container of DtSimState&#39;s and represents the total state of an simulation object...
Definition: DtSimEntry.h:31
Creator used to create copy classes.
Definition: copyObject.h:370
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
Definition: entityCreationData.h:27
makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > * myAggregateStateView
Definition: aggregateCopyObject.h:151
ReaderWriter object that maintains a list of reader-writer variable bindings.
Definition: rwVariableBindings.h:27
Definition: aggregateCopyObject.h:143
DtUUID uuid
Definition: aggregateCopyObject.h:146
bool myAwaitingSubordinateCreation
Definition: aggregateCopyObject.h:138
Definition: entityCopyObject.h:36
std::vector< SubordinateState > myPastedSubordinates
Definition: aggregateCopyObject.h:149
Contains makVrv::DtElementIDHierarchy class.
int myWaitingForChildren
Definition: aggregateCopyObject.h:136
AwaitingMap myAwaitingOrganization
Definition: aggregateCopyObject.h:150
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
Definition: copyObject.h:124
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
makVrv::DtSignalConnectionManager myPasteConnections
Definition: aggregateCopyObject.h:135
makVrv::DtVrlinkSimulatedEntityState * state
Definition: aggregateCopyObject.h:145
Base class to provide boost signal/slot management.
std::set< DtUUID > AwaitingMap
Definition: aggregateCopyObject.h:141
Creator used to create copy classes.
Definition: aggregateCopyObject.h:156
DtVector myAggregatePasteLocation
Definition: aggregateCopyObject.h:139
bool myPasteComplete
Definition: aggregateCopyObject.h:137
Definition: aggregateCopyObject.h:29
void addObjectPasting(DtCopyObject *o)
Definition: aggregateCopyObject.h:35
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtVrfAggregateCopyPasteHandler myCopyPasteHandler
Definition: aggregateCopyObject.h:133
The Master DtVrfCopyPasteManagerHandler.
Definition: vrfCopyPasteHandler.h:40

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)