VR-Forces 4.3 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
vrfobjcore
rangeRingsParametersPublisher.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
12
#include "
vrfobjcore/vrfobjcoreDefines.h
"
13
#include <vrfExtProtocol/rangeItem.h>
14
#include <vlutil/vlTime.h>
15
#include <map>
16
17
class
DtVrfObject
;
18
class
DtRwVariableBindings
;
19
class
DtReaderWriter
;
20
class
DtRwPropertiesList
;
21
26
class
DT_DLL_vrfobjcore
DtRangeRingsParametersPublisher
27
{
28
public
:
30
DtRangeRingsParametersPublisher
(
DtVrfObject
*);
31
33
virtual
~
DtRangeRingsParametersPublisher
();
34
37
virtual
void
setTickRate(
double
,
double
varianceRange = 1.0);
38
virtual
double
tickRate()
const
;
39
42
virtual
void
tick();
43
45
virtual
void
rangeItemsFromProperties(
const
DtRwVariableBindings
&, std::string prefix);
46
47
protected
:
48
49
typedef
std::map<DtString, DtRangeItem>
DtRangeItemMap
;
50
52
virtual
void
firstTickInit();
53
55
virtual
void
updateRangeRings(
DtRangeItemMap
&,
DtReaderWriter
*,
const
DtRwPropertiesList
* sectorSizes,
56
std::string prefix);
57
59
virtual
int
fillInFrom(DtRangeItems::RangeItems& current,
const
DtRangeItemMap
& from,
int
start)
const
;
60
61
protected
:
62
63
DtRangeItemMap
myRangeItems
;
64
DtRangeItemMap
myPreviousRangeItems
;
65
66
bool
myFirstTick
;
67
double
myNextTickTime
;
68
double
myTickRate
;
69
70
DtVrfObject
*
myOwner
;
71
72
DtClock
myClock
;
73
DtTime
myLastUpdateTime
;
74
};
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)