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
vrvGlStudioShared
DtSharedCockpitSettingsManager.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 <
vrvGlStudioShared/DtGlStudioShared.h
>
13
14
#include <
vrvUtil/DtVirtualBaseClass.h
>
15
#include <
vrvVrl/DtSharedSimulationSettings.h
>
16
#include <
vrvUtil/DtSignalConnectionManager.h
>
17
#include <
vrvCore/DtSettingsChangeManager.h
>
18
19
namespace
makVrv
20
{
21
22
class
DtSettingsBackup;
23
26
class
DT_DLL_VRVGLSTUDIOSHARED
DtSharedCockpitSettingsManager
:
public
DtVirtualBaseClass
27
{
28
public
:
29
31
static
DtSharedCockpitSettingsManager
& instance(
DtDe
& de);
32
34
virtual
~
DtSharedCockpitSettingsManager
();
35
39
void
loadDefaultMappings(
DtEntityTypeMapper
& mapper,
bool
useFactory );
40
43
void
saveDefaultMappings(
const
DtEntityTypeMapper
& mapper);
44
47
void
loadMapFile(
const
std::string& filePath,
DtEntityTypeMapper
& mapper);
48
51
void
saveMapFile(
const
std::string& filePath,
const
DtEntityTypeMapper
& mapper);
52
54
void
saveDefaultMappings();
55
57
void
loadDefaultMappings(
bool
useFactory);
58
60
virtual
void
mapperChanged(
const
DtEntityTypeMapper
&);
61
63
virtual
void
backupMapper(
DtEntityTypeMapper
&);
64
66
virtual
void
entityTypeMappingsRestored(
const
DtSettingsBackup
*);
67
70
72
void
loadDefaultSettings(
bool
useOnlyFactorySettings );
73
75
void
saveDefaultSettings();
76
78
void
loadSettings(
const
std::string& filePath );
79
81
void
saveSettings(
const
std::string& filePath );
82
84
void
setAutoSaveTypeMapping(
bool
b);
85
87
bool
autoSaveTypeMapping()
const
;
88
90
void
setAutoSaveSettings(
bool
b);
91
93
bool
autoSaveSettings()
const
;
94
96
100
101
virtual
void
setCockpitsEnabled(
bool
enable);
102
virtual
void
setSmoothingEnabled(
bool
enable);
103
virtual
void
setSmoothingPeriod(
float
period);
104
106
108
virtual
void
updateCockpitSettingsState();
109
110
protected
:
111
113
virtual
bool
checkCockpitMapper(
const
std::string& node,
114
DtSettingsChangeObject::UseType
t );
115
116
protected
:
117
119
DtSharedCockpitSettingsManager
(
DtDe
& de );
120
121
private
:
122
124
void
initializeMappings();
125
126
private
:
127
128
DtDe
&
myDe
;
129
bool
myAutoSaveTypeMappingFlag
;
130
bool
myAutoSaveSettingsFlag
;
131
DtSignalConnectionManager
myConnections
;
132
133
};
134
135
}
//makVrv::
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
)