VR-Forces 4.1 Class Documentation
DtAggregateCopyObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtAggregateCopyObject.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
11 
14 
15 #pragma once
16 
17 #include <vrfGuiCore/vrfGuiCore.h>
22 
24 
25 class DtVrlinkSimulatedEntityState;
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 
94  public:
97  virtual bool copyOperationsPending() const;
98 
99  protected:
101  virtual void copyChildren(const makVrv::DtElementIDHierarchy::ElementIDs&);
102 
104  virtual void cancel();
105 
106  virtual std::string copyPendingMessage() const;
107 
108  virtual bool cancelComplete() const;
109 
110  virtual void copy(makVrv::DtSimEntry* simEntry);
111 
113  virtual void copyComplete();
114 
117  virtual makVrv::DtVrlinkSimulatedBaseState* createReadableStateData() const;
118 
120  virtual DtEntityCreationData entityCreationData(const DtVector&);
121 
123  virtual void processPasteStep();
124 
125  protected:
133 
134  typedef std::map<std::string, makVrv::DtElementID> AwaitingMap;
135 
136  std::vector<makVrv::DtVrlinkSimulatedEntityState*> myPastedSubordinates;
139 };
140 
144  {
145  public:
146  virtual DtCopyObject* create(makVrv::DtDe&);
147  };
148 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)