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
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 Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)