VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtOsgEventHandler.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtOsgEventHandler.h,v $ $Revision: 1.12 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvOsg/vrvOsg.h
>
16
#include <osgViewer/ViewerEventHandlers>
17
#include <
vrvOsg/DtOsgKeyAndMouseEventListener.h
>
18
19
namespace
osgViewer
20
{
21
class
Window;
22
}
23
24
namespace
makVrv
25
{
26
class
DtOsgKeyAndMouseEventListener;
27
class
DtChannel;
28
31
class
DT_DLL_VRVOSG
DtOsgEventHandler
:
public
osgGA::GUIEventHandler
32
{
33
public
:
35
DtOsgEventHandler
(
DtOsgKeyAndMouseEventListener
* listener,
36
DtChannel
* channel);
37
39
virtual
~
DtOsgEventHandler
();
40
42
virtual
bool
handle(
const
osgGA::GUIEventAdapter& ea,
43
osgGA::GUIActionAdapter& );
44
46
inline
DtChannel
* channel()
47
{
48
return
myChannel;
49
}
50
52
inline
const
DtChannel
* channel()
const
53
{
54
return
myChannel;
55
}
56
58
virtual
void
accept( osgGA::GUIEventHandlerVisitor& v )
59
{
60
v.visit(*
this
);
61
}
62
67
void
setListener(
DtOsgKeyAndMouseEventListener
* listener );
68
69
private
:
71
DtOsgEventHandler
(
const
DtOsgEventHandler
& );
72
74
DtOsgEventHandler
& operator=(
const
DtOsgEventHandler
& );
75
76
protected
:
77
78
DtOsgKeyAndMouseEventListener
*
myOsgListener
;
79
DtChannel
*
myChannel
;
80
};
81
}
82
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)