VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfDeletionHandler.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 
9 
10 #pragma once
11 
13 
15 #include <vrvUtil/signalslib.h>
18 
19 #include <boost/function.hpp>
20 #include <boost/signals2.hpp>
21 
22 namespace makVrv
23 {
24  class DtDe;
25 }
26 
27 namespace makVrf
28 {
29 
34  {
35  public:
37  virtual ~DtVrfDeletionHandler();
38 
40  static DtVrfDeletionHandler& instance(makVrv::DtDe& de);
41  static void registerInstance(makVrv::DtDe&, DtVrfDeletionHandler*);
42 
44  virtual void deleteObjects(const makVrv::DtSelectionManager::IdSet&);
45 
48  boost::signals2::signal<void (makVrv::DtSelectionManager::IdSet&, bool& shouldDelete)> signal_objectsAboutToBeDeleted;
49 
51  boost::signals2::signal<void (const makVrv::DtSelectionManager::IdSet&)> signal_objectsAboutToBeDeletedFromSimulation;
52 
53  protected:
54  virtual void executeDeleteAction(const makVrv::DtSelectionManager::IdSet&);
55  virtual bool orbatDeleteOptions(int& orbatDeleteFlags);
56  virtual void deleteCalledFromManipulationManager(bool& handled);
57 
58  protected:
60 
62  {
63  OrbatOnly = 0x00000001,
64  SimulationOnly = 0x00000002,
65  Both = OrbatOnly | SimulationOnly
66  };
67 
69 
72  };
73 }
boost::signals2::signal< void(makVrv::DtSelectionManager::IdSet &, bool &shouldDelete)> signal_objectsAboutToBeDeleted
Sent before the given set of objects is to be deleted.
Definition: vrfDeletionHandler.h:48
Virtual base class.
Definition: DtVirtualBaseClass.h:19
boost::signals2::signal< void(const makVrv::DtSelectionManager::IdSet &)> signal_objectsAboutToBeDeletedFromSimulation
The objects that are about to be deleted from the simulation.
Definition: vrfDeletionHandler.h:51
The DtVrfDeletionHandler will delete objects from the local object manager (if local) or from the sim...
Definition: vrfDeletionHandler.h:33
makVrv::DtSignalConnectionManager myConnections
Definition: vrfDeletionHandler.h:70
int myOrbatDeleteFlags
Definition: vrfDeletionHandler.h:68
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
OrbatDeleteFlags
Definition: vrfDeletionHandler.h:61
Contains makVrv:DtSelectionManager class.
makVrv::DtDe & myDe
Definition: vrfDeletionHandler.h:59
Contains makVrv::DtVirtualBaseClass class.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Base class to provide boost signal/slot management.
bool myAllowDeletionChoice
Definition: vrfDeletionHandler.h:71
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)