VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
113  virtual bool cancelComplete() const;
114 
115  virtual void copy(makVrv::DtSimEntry* simEntry);
116 
118  virtual void copyComplete();
119 
122  virtual makVrv::DtVrlinkSimulatedBaseState* createReadableStateData() const;
123 
125  virtual DtEntityCreationData entityCreationData(const DtVector&);
126 
128  virtual void processPasteStep();
129 
130  protected:
138 
139  typedef std::set<DtUUID> AwaitingMap;
140 
142  {
145  };
146 
147  std::vector<SubordinateState> myPastedSubordinates;
150 };
151 
155  {
156  public:
157  virtual DtCopyObject* create(makVrv::DtDe&);
158  };
159 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)