VR-Forces 4.6.1 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
114
virtual
bool
checkCockpitMapper(
const
std::string& node,
115
DtSettingsChangeObject::UseType
t, std::string& inUse);
116
117
protected
:
118
120
DtSharedCockpitSettingsManager
(
DtDe
& de );
121
122
private
:
123
125
void
initializeMappings();
126
127
private
:
128
129
DtDe
&
myDe
;
130
bool
myAutoSaveTypeMappingFlag
;
131
bool
myAutoSaveSettingsFlag
;
132
DtSignalConnectionManager
myConnections
;
133
134
};
135
136
}
//makVrv::
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)