VR-Forces 4.6.1 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 
35  void addObjectPasting(DtCopyObject* o)
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 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)