VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
settingsManager
settingsManagerSim
myObjectManager.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include "
vrfobjcore/vrfObjMgr.h
"
9
#include "
mySettingsManager.h
"
10
11
class
DtTestSettings
;
12
13
class
MyObjectManager
:
public
DtVrfObjectManager
14
{
15
public
:
16
17
//The constructor takes a DtSimManager and entityAdvisory which get passed
18
//to the base class
19
MyObjectManager
(
DtSimManager
*
simManager
,
int
entityAdvisory);
20
21
//destructor
22
virtual
~MyObjectManager
();
23
24
//Adds to the existing settings file as well as creating a new one
25
virtual
bool
init
();
26
27
//Callback registered as a consumer for the test setting. This will be
28
//called when settingsManagerRemote changes the setting.
29
static
void
testSettingsChangedCallback
(
30
const
DtSettingsObject
* settings,
void
* usr);
31
//Stores the values from the settings in myDoubleValue and myBoolValue
32
virtual
void
processTestSettingsChanged
(
const
DtTestSettings
* settings);
33
34
//Callback registered as a producer for the test setting. This will be
35
//called any time the settings manager looks up the setting, including
36
//when the settings file is written out.
37
static
void
updateTestSettingsCallback
(
38
DtSettingsObject
* settings,
void
* usr);
39
//Copies myDoubleValue and myBoolValue into the setting object
40
virtual
void
processUpdateTestSettings
(
DtTestSettings
* settings);
41
42
public
:
43
44
//Creator function to be registered with the DtDefaultVrfCreator from
45
//main.cxx
46
static
DtVrfObjectManager
*
creator
(
DtSimManager
*
simManager
,
47
int
entityAdvisory);
48
49
public
:
50
//Settings manager for the new settings file
51
MySettingsManager
*
mySettingsManager
;
52
53
//Example data which needs to be saved out to the settings files. This
54
//class is the "owner" of this data, the settings manager only asks for
55
//it when it needs to write out the settings file by calling
56
//updateTestSettingsCallback.
57
double
myDoubleValue
;
58
bool
myBoolValue
;
59
};
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)