VR-Forces 4.3.1 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 class DtVrlinkSimulatedEntityState;
23 
24 namespace makVrf
25 {
27  {
28  public:
31 
32  void addObjectPasting(DtCopyObject* o)
33  {
34  myObjectsPasting.push_back(o);
35  }
36 
37  void centerPasteObjects(const DtGeodeticCoord&, const DtGeodeticCoord&);
38 
39  protected:
41  virtual DtCopyObject* createCopyObject(int) const;
42  };
43 
45  {
46 
47  public:
49  virtual ~DtAggregateCopyObject();
50 
51  protected:
53  virtual void write(std::ostringstream& str, const makVrv::DtVrlinkSimulatedEntityState* data, makVrv::DtUniqueID id);
54 
56  virtual void read(std::istringstream& str, makVrv::DtVrlinkSimulatedEntityState* data);
57 
59  virtual void copied(DtCopyObject*, const std::string&);
60 
62  virtual void copyOperationPending(DtCopyObject*, const std::string&);
63 
64  protected:
67  virtual void createObject(const DtVector&);
68 
70  virtual void pasteCompleted();
71 
73  virtual bool pasteComplete() const;
74 
76  virtual std::string pastePendingMessage() const;
77 
79  virtual void readComplete(std::istringstream& str);
80 
82  virtual void pasted(DtCopyObject*);
83 
85  virtual void pasteOperationPending(DtCopyObject*, const std::string&);
86 
89  virtual void pasteCancelled(DtCopyObject*);
90 
92  virtual void addStateData(std::map<std::string, std::string>&, const DtRwVariableBindings&, const DtString& var);
93 
94  virtual void paste(const DtVector& geocLocation, int flags);
95 
96  public:
99  virtual bool copyOperationsPending() const;
100 
101  protected:
103  virtual void copyChildren(const makVrv::DtElementIDHierarchy::ElementIDs&);
104 
106  virtual void cancel();
107 
108  virtual std::string copyPendingMessage() const;
109 
110  virtual bool cancelComplete() const;
111 
112  virtual void copy(makVrv::DtSimEntry* simEntry);
113 
115  virtual void copyComplete();
116 
119  virtual makVrv::DtVrlinkSimulatedBaseState* createReadableStateData() const;
120 
122  virtual DtEntityCreationData entityCreationData(const DtVector&);
123 
125  virtual void processPasteStep();
126 
127  protected:
135 
136  typedef std::map<std::string, makVrv::DtElementID> AwaitingMap;
137 
138  std::vector<makVrv::DtVrlinkSimulatedEntityState*> myPastedSubordinates;
141 };
142 
146  {
147  public:
148  virtual DtCopyObject* create(makVrv::DtDe&);
149  };
150 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)