VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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 <osgViewer/ViewerEventHandlers>
16
#include <
vrvOsg/DtOsgKeyAndMouseEventListener.h
>
17
18
namespace
osgViewer
19
{
20
class
Window;
21
}
22
23
namespace
makVrv
24
{
25
class
DtOsgKeyAndMouseEventListener;
26
class
DtChannel;
27
30
class
DT_DLL_VRVOSG
DtOsgEventHandler
:
public
osgGA::GUIEventHandler
31
{
32
public
:
34
DtOsgEventHandler
(
DtOsgKeyAndMouseEventListener
* listener,
35
DtChannel
* channel);
36
38
virtual
~
DtOsgEventHandler
();
39
41
virtual
bool
handle(
const
osgGA::GUIEventAdapter& ea,
42
osgGA::GUIActionAdapter& );
43
45
inline
DtChannel
* channel()
46
{
47
return
myChannel;
48
}
49
51
inline
const
DtChannel
* channel()
const
52
{
53
return
myChannel;
54
}
55
60
void
setListener(
DtOsgKeyAndMouseEventListener
* listener );
61
62
private
:
64
DtOsgEventHandler
(
const
DtOsgEventHandler
& );
65
67
DtOsgEventHandler
& operator=(
const
DtOsgEventHandler
& );
68
69
protected
:
70
71
DtOsgKeyAndMouseEventListener
*
myOsgListener
;
72
DtChannel
*
myChannel
;
73
};
74
}
75
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)