VR-Forces 4.6.1 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 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)