VR-Forces 5.0.2 Developer's Guide
 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  virtual void write(std::ostringstream& str, const DtVrfObjectDataState* data);
58 
60  virtual void read(std::istringstream& str, makVrv::DtVrlinkSimulatedEntityState* data);
61 
63  virtual void read(std::istringstream& str, DtVrfObjectDataState* data);
64 
66  virtual void copied(DtCopyObject*, const std::string&);
67 
69  virtual void copyOperationPending(DtCopyObject*, const std::string&);
70 
71  protected:
74  virtual void createObject(const DtVector&);
75 
77  virtual void pasteCompleted();
78 
80  virtual bool pasteComplete() const;
81 
83  virtual std::string pastePendingMessage() const;
84 
86  virtual void readComplete(std::istringstream& str);
87 
89  virtual void pasted(DtCopyObject*);
90 
92  virtual void pasteOperationPending(DtCopyObject*, const std::string&);
93 
96  virtual void pasteCancelled(DtCopyObject*);
97 
99  virtual void addStateData(std::map<std::string, std::string>&, const DtRwVariableBindings&, const DtString& var);
100 
101  virtual void paste(const DtVector& geocLocation, int flags);
102 
103  public:
106  virtual bool copyOperationsPending() const;
107 
108  protected:
110  virtual void copyChildren(const makVrv::DtElementIDHierarchy::ElementIDs&);
111 
113  virtual void cancel();
114 
115  virtual std::string copyPendingMessage() const;
116  virtual void forceUpdate(DtVrlinkSimulatedBaseStateView* stateView, makVrv::DtSimEntry* simEntry);
117 
118  virtual bool cancelComplete() const;
119 
120  virtual void copy(makVrv::DtSimEntry* simEntry);
121  virtual void slot_onStateViewUpdated(DtVrlinkAggregateStateView* state, makVrv::DtSimEntry* simEntry);
122 
124  virtual void copyComplete();
125 
128  virtual makVrv::DtVrlinkSimulatedBaseState* createReadableStateData() const;
129 
131  virtual DtEntityCreationData entityCreationData(const DtVector&);
132 
134  virtual void processPasteStep();
135 
136  protected:
144 
145  typedef std::set<DtUUID> AwaitingMap;
146 
148  {
151  };
152 
153  std::vector<SubordinateState> myPastedSubordinates;
156  };
157 
161  {
162  public:
163  virtual DtCopyObject* create(makVrv::DtDe&);
164  };
165 }
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
makVrv::DtSignalConnectionManager myCopyConnections
Definition: aggregateCopyObject.h:138
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:27
Creator used to create copy classes. Subclass to implement create() method to return object used for ...
Definition: copyObject.h:374
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
Definition: entityCreationData.h:27
makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > * myAggregateStateView
Definition: aggregateCopyObject.h:155
ReaderWriter object that maintains a list of reader-writer variable bindings. It keeps a list of name...
Definition: rwVariableBindings.h:27
Definition: aggregateCopyObject.h:147
DtUUID uuid
Definition: aggregateCopyObject.h:150
bool myAwaitingSubordinateCreation
Definition: aggregateCopyObject.h:142
Definition: entityCopyObject.h:36
std::vector< SubordinateState > myPastedSubordinates
Definition: aggregateCopyObject.h:153
Contains makVrv::DtElementIDHierarchy class. This is an arbitrary hierarchy class that will allow hie...
int myWaitingForChildren
Definition: aggregateCopyObject.h:140
AwaitingMap myAwaitingOrganization
Definition: aggregateCopyObject.h:154
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Definition: copyObject.h:124
makVrv::DtSignalConnectionManager myPasteConnections
Definition: aggregateCopyObject.h:139
makVrv::DtVrlinkSimulatedEntityState * state
Definition: aggregateCopyObject.h:149
Base class to provide boost signal/slot management.
std::set< DtUUID > AwaitingMap
Definition: aggregateCopyObject.h:145
Creator used to create copy classes. Subclass to implement create() method to return object used for ...
Definition: aggregateCopyObject.h:160
DtVector myAggregatePasteLocation
Definition: aggregateCopyObject.h:143
bool myPasteComplete
Definition: aggregateCopyObject.h:141
Definition: aggregateCopyObject.h:29
void addObjectPasting(DtCopyObject *o)
Definition: aggregateCopyObject.h:35
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:70
DtVrfAggregateCopyPasteHandler myCopyPasteHandler
Definition: aggregateCopyObject.h:137
The Master DtVrfCopyPasteManagerHandler.
Definition: vrfCopyPasteHandler.h:38
Definition: vrfObjectDataState.h:87

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)