VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCursorManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/DtCursor.h>
14 
15 #include <stack>
16 
17 namespace makVrv
18 {
19  class DtDe;
20 
26  {
27 
28  public:
29 
32 
34  virtual ~DtCursorManager();
35 
36  static DtCursorManager& instance(DtDe&);
37  static void registerInstance(DtDe&, DtCursorManager*);
38 
41  virtual void setCursor(const DtCursor&);
42  const DtCursor& currentCursor() const;
43 
46  virtual void pushCursor(const DtCursor&);
47  virtual void pushCursor(DtCursor::CursorShape);
48 
50  virtual void popCursor();
51 
53  inline int cursorCount() const
54  {
55  return myCursorStack.size();
56  }
57 
58  protected:
59  typedef std::stack<DtCursor*> CursorStack;
60 
64  };
65 }
66 
67 
Simple class used to set, push or pop the current cursor. Core implementation will do nothing more th...
Definition: DtCursorManager.h:25
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Simple class that is used to define a cursor. Used in conjunction with the DtCursorManager class to s...
Definition: DtCursor.h:19
CursorStack myCursorStack
Definition: DtCursorManager.h:61
DtCursor * myCurrentCursor
Definition: DtCursorManager.h:62
Contains makVrv::DtVirtualBaseClass class.
std::stack< DtCursor * > CursorStack
Definition: DtCursorManager.h:59
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Contains makVrv::DtCursor class.
int cursorCount() const
Number of cursors currently on stack.
Definition: DtCursorManager.h:53
DtDe & myDe
Definition: DtCursorManager.h:63
CursorShape
Definition: DtCursor.h:23
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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)