VR-Forces 4.1 Class Documentation
DtVrfSelectionHandler.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrfGuiCore/vrfGuiCore.h>
16 
19 #include <vrvCore/DtUniqueID.h>
20 #include <vrvCore/DtSimState.h>
21 #include <vrvCore/DtEntityState.h>
22 
23 #include <vlpi/entityType.h>
24 #include <boost/signal.hpp>
25 
26 namespace makVrv
27 {
28  class DtDe;
29  class DtBaseStateView;
30  class DtSimEntry;
31  class DtChannel;
32 }
33 
34 namespace makVrf
35 {
39  {
40  public:
42  virtual ~DtVrfSelectionHandler();
43 
45  static DtVrfSelectionHandler& instance(makVrv::DtDe& de);
46 
47  public:
49  virtual void currentSelectionChanged(const makVrv::DtSelectionManager::IdSet& selected);
50  boost::signal<void (const makVrv::DtSelectionManager::IdSet& selected)> signal_currentSelectionChanged;
51 
53  virtual std::vector<std::string> getSelectedNames() const;
54  virtual std::vector<std::string> getSelectedNames(const makVrv::DtSelectionManager::IdSet&) const;
55 
57  virtual std::vector<makVrv::DtSimEntry*> getSelectedEntries() const;
58  virtual std::vector<makVrv::DtSimEntry*> getSelectedEntries(const makVrv::DtSelectionManager::IdSet&) const;
59 
61  virtual bool allObjectsAreVrfSimulated(const makVrv::DtSelectionManager::IdSet&) const;
62 
64  virtual bool objectIsVrfSimulated(makVrv::DtUniqueID) const;
65 
66  virtual const makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* getVrlinkSimulatedState(makVrv::DtUniqueID id) const;
67 
70  virtual DtEntityType getEntityTypeFromUniqueID(makVrv::DtUniqueID id) const;
71 
76  virtual void selectItemsInScreenBox(makVrv::DtChannel& channel,
77  int minX, int minY, int maxX, int maxY, const makVrv::DtSelectionManager::IdSet& mergeWith = makVrv::DtSelectionManager::IdSet(),
78  bool requestTaskSets = true);
79 
81  virtual bool isWithinScreenBounds(makVrv::DtChannel&, const makVrv::DtUniqueID& id, const makVrv::DtVrlinkSimulatedBaseState*,
82  int minX, int minY, int maxX, int maxY) const;
83  virtual makVrv::DtUniqueID sceneObjectIdFromElementId( makVrv::DtChannel& channel, const makVrv::DtUniqueID& elementID ) const;
84 
86  virtual void setLastDatabaseLocation(const DtVector&);
87 
89  virtual const DtVector& lastDatabaseLocation() const;
90 
92  virtual void setAllowNonVrfItemsToBeManipulated(bool);
93  virtual bool allowNonVrfItemsToBeManipulated() const;
94 
95  protected:
96 
97  virtual void slot_onCurrentSelectionChanged(
98  const makVrv::DtSelectionManager::IdSet& selected,
99  const makVrv::DtSelectionManager::IdSet& deselected);
100 
101  virtual void slot_onObjectEntryAdded(makVrv::DtSimObjectEntry&);
102 
105  virtual void slot_onSimStateAdded(makVrv::DtSimObjectEntry& entry);
106 
107  virtual void slot_onStateViewUpdated(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
108 
109  virtual void slot_deInitialized(makVrv::DtDe&);
110 
111  public:
112  boost::signal<void (const DtVector&)> signal_lastDatabaseLocationSet;
113 
114  protected:
120  };
121 }

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)