VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
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/vrvCore.h
>
13
#include <
vrvCore/DtCursor.h
>
14
#include <
vrvUtil/DtVirtualBaseClass.h
>
15
16
#include <stack>
17
18
namespace
makVrv
19
{
20
class
DtDe;
21
26
class
DT_DLL_VRVCORE
DtCursorManager
:
public
DtVirtualBaseClass
27
{
28
29
public
:
30
32
DtCursorManager
(
DtDe
&);
33
35
virtual
~
DtCursorManager
();
36
37
static
DtCursorManager
& instance(
DtDe
&);
38
static
void
registerInstance(
DtDe
&,
DtCursorManager
*);
39
42
virtual
void
setCursor(
const
DtCursor
&);
43
const
DtCursor
& currentCursor()
const
;
44
47
virtual
void
pushCursor(
const
DtCursor
&);
48
virtual
void
pushCursor(
DtCursor::CursorShape
);
49
51
virtual
void
popCursor();
52
54
inline
int
cursorCount()
const
55
{
56
return
myCursorStack.size();
57
}
58
59
protected
:
60
typedef
std::stack<DtCursor*>
CursorStack
;
61
62
CursorStack
myCursorStack
;
63
DtCursor
*
myCurrentCursor
;
64
DtDe
&
myDe
;
65
};
66
}
67
68
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)