VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
mapFocusHandlerManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
11 #include <vrvCore/DtUniqueID.h>
12 
13 #include <QtCore/QObject>
14 #include <vector>
15 
16 #include <boost/signals2.hpp>
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtChannel;
22  class DtEventProcessorInterface;
23 }
24 
25 namespace makVrf
26 {
27  class DtMapFocusHandler;
28 
31  {
32  public:
33  //CTOR
35 
36  //DTOR
37  virtual ~DtMapFocusHandlerManager();
38 
39  static DtMapFocusHandlerManager& instance(makVrv::DtDe&);
40  static void registerInstance(makVrv::DtDe&, DtMapFocusHandlerManager*);
41 
43  virtual int selectionState(makVrv::DtUniqueID, int over) const;
44 
45  virtual int setCursorBasedOnItem(makVrv::DtUniqueID, int over);
46 
48  virtual void setActiveMapFocusHandler(DtMapFocusHandler*);
50  {
51  return myActiveMapFocusHandler;
52  }
53 
55  virtual void setAllowCursorChange(bool b);
56  bool allowCursorChange() const
57  {
58  return myAllowCursorChange;
59  }
60 
63  virtual void focusToNext(bool becauseOfRightClick = false);
64 
66  virtual void resetCursor();
67 
69  virtual void cursorOverNoMapAreaObject();
70 
72  boost::signals2::signal<void (DtMapFocusHandler*, DtMapFocusHandler*)> signal_mapFocusHandlerChanged;
73 
74  protected:
83  int myLastAreaOver = 0;
84  };
85 }
bool allowCursorChange() const
Definition: mapFocusHandlerManager.h:56
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
makVrv::DtUniqueID myLastItemChecked
Definition: mapFocusHandlerManager.h:80
DtMapFocusHandler * activeMapFocusHandler() const
Definition: mapFocusHandlerManager.h:49
DtMapFocusHandler * myActiveMapFocusHandler
Definition: mapFocusHandlerManager.h:75
bool myChangedCursor
Definition: mapFocusHandlerManager.h:79
bool myAllowCursorChange
Definition: mapFocusHandlerManager.h:78
boost::signals2::signal< void(DtMapFocusHandler *, DtMapFocusHandler *)> signal_mapFocusHandlerChanged
Signal sent with old and new handler.
Definition: mapFocusHandlerManager.h:72
makVrv::DtSignalConnectionManager myConnectionManager
Definition: mapFocusHandlerManager.h:81
Contains makVrv::DtVirtualBaseClass class.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
#define DT_DLL_VRFGUICOMMONQT
Definition: vrfGuiCommonQt.h:20
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
makVrv::DtDe & myDe
Definition: mapFocusHandlerManager.h:76
Base class to provide boost signal/slot management.
makVrv::DtEventProcessorInterface * myEventProcessor
Definition: mapFocusHandlerManager.h:82
This class will manage filtered list views for the basic purpose of allowing a single list view in th...
Definition: mapFocusHandler.h:77
Contains makVrv::DtUniqueID type.
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:72
This will manage the map focus handler to allow for the setting of the cursor based on a given id and...
Definition: mapFocusHandlerManager.h:30
The DtEventProcessorInterface defines the generic interface for classes which handle input events...
Definition: DtEventProcessorInterface.h:34
int myCurrentCursor
Definition: mapFocusHandlerManager.h:77

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)