VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)