VR-Forces 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>
18 
20 
21 namespace makVrf
22 {
24  {
25  public:
27  virtual ~DtVrfAggregateCopyPasteHandler() override;
28 
30  {
31  myObjectsPasting.push_back(o);
32  }
33 
34  void centerPasteObjects(const DtGeodeticCoord&, const DtGeodeticCoord&);
35 
36  protected:
38  virtual DtCopyObject* createCopyObject(int) const override;
39  };
40 
42  {
43 
44  public:
46  virtual ~DtAggregateCopyObject() override;
47 
48  protected:
50  virtual void write(std::ostringstream& str, DtSimObjectReference) override;
51 
53  virtual void readAdditionalData(std::istringstream& str) override;
54 
56  virtual void copied(DtCopyObject*, const std::string&);
57 
59  virtual void copyOperationPending(DtCopyObject*, const std::string&);
60 
61  protected:
64  virtual void createObject(const DtVector&) override;
65 
67  virtual void pasteCompleted();
68 
70  virtual bool pasteComplete() const override;
71 
73  virtual std::string pastePendingMessage() const override;
74 
76  virtual void readComplete(std::istringstream& str) override;
77 
79  virtual void pasted(DtCopyObject*);
80 
82  virtual void pasteOperationPending(DtCopyObject*, const std::string&);
83 
86  virtual void pasteCancelled(DtCopyObject*);
87 
88  virtual void paste(const DtVector& geocLocation, int flags) override;
89 
90  public:
93  virtual bool copyOperationsPending() const override;
94 
95  protected:
97  virtual void copyChildren(const makVrv::DtElementIDHierarchy::ElementIDs&);
98 
100  virtual void cancel() override;
101 
102  virtual std::string copyPendingMessage() const override;
103 
104  virtual bool cancelComplete() const override;
105 
106  virtual void copy(makVrv::DtUniqueID id) override;
107 
109  virtual void copyComplete() override;
110 
112  virtual DtEntityCreationData entityCreationData(const DtVector&) override;
113 
115  virtual void processPasteStep() override;
116 
117  virtual void slot_subordinateCreated(const DtString& name, const DtUUID& newUUID, const DtEntityIdentifier& id, const DtUUID& oldUUID);
118 
119  protected:
127 
128  typedef std::set<DtUUID> AwaitingMap;
129 
131  {
132  std::shared_ptr<DtGuiLocalObject> state;
134  };
135 
136  std::vector<SubordinateState> myPastedSubordinates;
138  };
139 
143  {
144  public:
145  virtual DtCopyObject* create(makVrv::DtDe&) override;
146  };
147 }
UUID is a unique ID wrapper class.
Definition: uuid.h:59
makVrv::DtSignalConnectionManager myCopyConnections
Definition: aggregateCopyObject.h:121
std::vector< DtElementID > ElementIDs
Definition: DtElementIDHierarchy.h:115
std::shared_ptr< DtGuiLocalObject > state
Definition: aggregateCopyObject.h:132
Definition: aggregateCopyObject.h:41
Creator used to create copy classes. Subclass to implement create() method to return object used for ...
Definition: copyObject.h:368
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
Definition: entityCreationData.h:27
Definition: aggregateCopyObject.h:130
DtUUID uuid
Definition: aggregateCopyObject.h:133
bool myAwaitingSubordinateCreation
Definition: aggregateCopyObject.h:125
Definition: entityCopyObject.h:43
std::vector< SubordinateState > myPastedSubordinates
Definition: aggregateCopyObject.h:136
Contains makVrv::DtElementIDHierarchy class. This is an arbitrary hierarchy class that will allow hie...
int myWaitingForChildren
Definition: aggregateCopyObject.h:123
AwaitingMap myAwaitingOrganization
Definition: aggregateCopyObject.h:137
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Definition: copyObject.h:124
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
makVrv::DtSignalConnectionManager myPasteConnections
Definition: aggregateCopyObject.h:122
Base class to provide boost signal/slot management.
std::set< DtUUID > AwaitingMap
Definition: aggregateCopyObject.h:128
Creator used to create copy classes. Subclass to implement create() method to return object used for ...
Definition: aggregateCopyObject.h:142
DtVector myAggregatePasteLocation
Definition: aggregateCopyObject.h:126
bool myPasteComplete
Definition: aggregateCopyObject.h:124
Definition: aggregateCopyObject.h:23
void addObjectPasting(DtCopyObject *o)
Definition: aggregateCopyObject.h:29
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:76
DtVrfAggregateCopyPasteHandler myCopyPasteHandler
Definition: aggregateCopyObject.h:120
The Master DtVrfCopyPasteManagerHandler.
Definition: vrfCopyPasteHandler.h:38

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)