VR-Forces 4.8 Class Documentation
 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.
Definition: DtCursorManager.h:25
Virtual base class.
Definition: DtVirtualBaseClass.h:22
Simple class that is used to define a cursor.
Definition: DtCursor.h:22
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:26
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)