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
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
setAutoSave(
bool
b );
85
87
bool
autoSave()
const
;
88
90
94
95
virtual
void
setCockpitsEnabled(
bool
enable);
96
virtual
void
setSmoothingEnabled(
bool
enable);
97
virtual
void
setSmoothingPeriod(
float
period);
98
100
102
virtual
void
updateCockpitSettingsState();
103
104
protected
:
105
107
virtual
bool
checkCockpitMapper(
const
std::string& node,
108
DtSettingsChangeObject::UseType
t );
109
110
protected
:
111
113
DtSharedCockpitSettingsManager
(
DtDe
& de );
114
115
private
:
116
118
void
initializeMappings();
119
120
private
:
121
122
DtDe
&
myDe
;
123
bool
myAutoSaveFlag
;
124
DtSignalConnectionManager
myConnections
;
125
126
};
127
128
}
//makVrv::
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
)