VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvGlStudioShared
DtGlStudioDriver.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtGlStudioDriver.h,v $ $Revision: 1.1 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvGlStudioShared/DtGlStudioShared.h
>
16
#include <
vrvGlStudio/DtGlStudio.h
>
17
18
#include <
vrvCore/DtDriver.h
>
19
20
#include <string>
21
#include <map>
22
23
namespace
makVrv
24
{
25
26
class
DtAttachManager;
27
class
DtObserver;
28
class
DtDe;
29
32
class
DT_DLL_VRVGLSTUDIOSHARED
DtGlStudioDriver
:
public
DtDriver
33
{
34
public
:
36
DtGlStudioDriver
(
DtAgentManager
& agentManager,
37
const
std::string& instanceName);
38
40
virtual
~
DtGlStudioDriver
();
41
43
virtual
const
std::string& className()
const
;
44
45
virtual
void
hideEntity(
DtObserver
* obs);
46
virtual
void
unHideEntity(
DtObserver
* obs);
47
48
protected
:
49
52
virtual
bool
onStart();
53
56
virtual
bool
onStop();
57
59
virtual
bool
onTick();
60
62
// loaded /displayed
63
virtual
void
handleAttachChange(
DtObserver
* obs);
64
66
virtual
void
handleObserverDestroyed(
DtObserver
* observer);
67
69
virtual
void
handleObserverCreated(
DtObserver
* observer);
70
73
virtual
void
handleEnableStateChanged(
bool
enabled );
74
76
virtual
void
realizeCockpit(
DtObserver
* obs);
77
79
virtual
void
unrealizeCockpit(
DtObserver
* obs);
80
82
virtual
DtUniqueID
findAttachedSimObject(
DtObserver
* obs);
83
84
protected
:
85
86
typedef
std::map<DtObserver*, DtUniqueID>
DtObserverAttachmentMap
;
87
DtObserverAttachmentMap
myAttachedObserverMap
;
88
std::string
myClassName
;
89
DtAttachManager
*
myAttachManager
;
90
DtDe
*
myDe
;
91
};
92
95
class
DT_DLL_VRVGLSTUDIOSHARED
DtGlStudioDriverCreator
:
public
DtDriverCreator
96
{
97
public
:
98
100
DtGlStudioDriverCreator
();
101
103
virtual
~
DtGlStudioDriverCreator
();
104
107
virtual
const
std::string& extension()
const
;
108
110
virtual
DtDriver
* create(
DtAgentManager
& agentManager,
const
std::string& instanceName)
const
;
111
112
protected
:
113
std::string
myFileExtension
;
114
};
115
116
}
//makVrv::
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)