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 #include <vrvCoreQt/DtQtCursor.h>
13 
14 #include <QtCore/QObject>
15 #include <vector>
16 
17 #include <boost/signals2.hpp>
18 
19 namespace makVrv
20 {
21  class DtDe;
22  class DtChannel;
23  class DtEventProcessorInterface;
24 }
25 
26 namespace makVrf
27 {
28  class DtMapFocusHandler;
29 
32  {
33  public:
34  //CTOR
36 
37  //DTOR
38  virtual ~DtMapFocusHandlerManager() override;
39 
40  static DtMapFocusHandlerManager& instance(makVrv::DtDe&);
41  static void registerInstance(makVrv::DtDe&, DtMapFocusHandlerManager*);
42 
44  virtual int selectionState(makVrv::DtUniqueID, int over) const;
45 
46  virtual int setCursorBasedOnItem(makVrv::DtUniqueID, int over);
47 
49  virtual void setActiveMapFocusHandler(DtMapFocusHandler*);
51  {
52  return myActiveMapFocusHandler;
53  }
54 
56  virtual void setAllowCursorChange(bool b);
57  bool allowCursorChange() const
58  {
59  return myAllowCursorChange;
60  }
61 
64  virtual void focusToNext(bool becauseOfRightClick = false);
65 
67  virtual void resetCursor();
68 
70  virtual void cursorOverNoMapAreaObject();
71 
73  boost::signals2::signal<void (DtMapFocusHandler*, DtMapFocusHandler*)> signal_mapFocusHandlerChanged;
74 
75  protected:
84  int myLastAreaOver = 0;
85  };
86 }
bool allowCursorChange() const
Definition: mapFocusHandlerManager.h:57
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:81
DtMapFocusHandler * activeMapFocusHandler() const
Definition: mapFocusHandlerManager.h:50
DtMapFocusHandler * myActiveMapFocusHandler
Definition: mapFocusHandlerManager.h:76
bool myChangedCursor
Definition: mapFocusHandlerManager.h:80
bool myAllowCursorChange
Definition: mapFocusHandlerManager.h:79
boost::signals2::signal< void(DtMapFocusHandler *, DtMapFocusHandler *)> signal_mapFocusHandlerChanged
Signal sent with old and new handler.
Definition: mapFocusHandlerManager.h:73
makVrv::DtSignalConnectionManager myConnectionManager
Definition: mapFocusHandlerManager.h:82
Contains makVrv::DtVirtualBaseClass class.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Qt implementation of the cursor class. Will keep track of the Qt cursor.
Definition: DtQtCursor.h:24
#define DT_DLL_VRFGUICOMMONQT
Definition: vrfGuiCommonQt.h:20
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
makVrv::DtDe & myDe
Definition: mapFocusHandlerManager.h:77
Contains makVrv::DtQtCursor class.
Base class to provide boost signal/slot management.
makVrv::DtEventProcessorInterface * myEventProcessor
Definition: mapFocusHandlerManager.h:83
This class will manage filtered list views for the basic purpose of allowing a single list view in th...
Definition: mapFocusHandler.h:116
Contains makVrv::DtUniqueID type.
makVrv::DtQtCursor myCurrentCursor
Definition: mapFocusHandlerManager.h:78
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
This will manage the map focus handler to allow for the setting of the cursor based on a given id and...
Definition: mapFocusHandlerManager.h:31
The DtEventProcessorInterface defines the generic interface for classes which handle input events...
Definition: DtEventProcessorInterface.h:34

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)