VR-Forces Development_Version 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
DtNavigationLightManager.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/DtNavigationFeatureManager.h
>
13
#include <
vrvCore/DtDe.h
>
14
#include <
vrvCore/DtRenderer.h
>
15
#include <
vrvCore/DtTickable.h
>
16
17
#include <string>
18
19
namespace
makVrv
20
{
21
class
DtDe;
22
class
DtAgentManagerInterface;
23
class
DtLightMarkerStringParser;
24
class
DtBuoyOrBeaconFacade;
25
class
DtBuoyBeaconLayer;
26
class
DtNavigationLightController;
27
class
DtNavigationLightManager;
28
29
class
DT_DLL_VRVCORE
DtNavigationLightUpdater
:
public
DtTickable
30
{
31
protected
:
32
33
friend
class
DtNavigationLightManager
;
34
35
DtNavigationLightUpdater
(
DtDe
& de,
36
DtNavigationLightManager
& lightManager );
37
38
virtual
~
DtNavigationLightUpdater
();
39
40
virtual
bool
needsUpdate(
DtTime
tNow );
41
45
virtual
void
update(
DtTime
tNow );
46
47
protected
:
48
DtNavigationLightManager
&
myLightManager
;
49
};
50
56
class
DT_DLL_VRVCORE
DtNavigationLightManager
:
public
DtNavigationFeatureManager
57
{
58
public
:
60
DtNavigationLightManager
(
const
std::string& name,
DtDe
& de,
61
DtAgentManagerInterface
& sceneInterface,
62
DtBuoyBeaconLayer
& buoyBeaconLayer,
63
DtBuoyBeaconLayer::AttachableTypes
attType,
64
const
std::string& featureLayerList,
65
const
std::string& featureAttrMapFilename,
66
DtNavigationFeatureBuilder
* featureBuilder,
67
int
presenceSwitchNum,
int
typeSwitchNum );
68
70
virtual
~
DtNavigationLightManager
();
71
73
74
75
76
77
78
79
virtual
bool
needsUpdate(
DtTime
tNow );
80
84
virtual
void
update(
DtTime
tNow );
86
87
89
90
91
92
93
void
setDaylightLightLevel(
float
daylightLevel );
94
float
daylightLightLevel()
const
;
96
98
99
100
101
void
setFogVisibilityLevel(
float
fogVisibilityLevel );
102
float
fogVisibilityLevel()
const
;
104
105
protected
:
107
DtNavigationLightManager
();
108
110
DtNavigationLightManager
(
const
DtNavigationLightManager
& orig );
111
113
DtNavigationLightManager
& operator=(
const
DtNavigationLightManager
& rhs );
114
116
virtual
void
attachToBuoyOrBeacon(
DtNavigationFeature
& controller,
117
DtBuoyOrBeaconFacade
& buoy );
118
120
virtual
void
detachFromBuoyOrBeacon(
DtNavigationFeature
& controller,
121
DtBuoyOrBeaconFacade
& buoy );
122
126
virtual
void
adjustHeightForLight(
DtNavigationFeature
& controller,
127
DtBuoyOrBeaconFacade
& facade );
128
129
protected
:
130
float
myDaylightLightLevel
;
131
float
myFogVisibilityLevel
;
132
DtNavigationLightUpdater
myUpdater
;
133
};
134
}
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
)