VR-Forces 4.5 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
vrfutil
rwIntelCollectionArea.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
11
#include "
vrfutil/vrfutilDefines.h
"
12
#include "
vrfutil/rwTemplatedList.h
"
13
#include "
vrfutil/rwTypes.h
"
14
21
22
class
DT_DLL_vrfutil
DtRwIntelCollectionArea
:
public
DtRwTemplatedRealList
23
{
24
public
:
25
27
DtRwIntelCollectionArea
()
28
{
29
}
30
32
DtRwIntelCollectionArea
(
const
DtString
& name,
DtReaderWriterRegistry
*
const
parentRegistry = NULL)
33
:
DtRwTemplatedRealList
(name, parentRegistry)
34
{
35
}
36
38
virtual
~
DtRwIntelCollectionArea
()
39
{
40
}
41
43
DtRwIntelCollectionArea
(
const
DtString
& name,
44
const
DtRwIntelCollectionArea
& orig,
45
DtReaderWriterRegistry
*
const
parentRegistry = NULL)
46
:
DtRwTemplatedRealList
(name, orig, parentRegistry)
47
{
48
}
49
51
DtRwIntelCollectionArea
&
operator=
(
const
DtRwIntelCollectionArea
& orig)
52
{
53
DtRwTemplatedRealList::operator=
(orig);
54
55
return
*
this
;
56
}
57
61
virtual
const
char
*
readerWriterType
()
const
62
{
63
return
DtRwIntelCollectionAreaType
;
64
}
65
67
static
const
char
*
theXmlType
()
68
{
69
return
DtRwIntelCollectionAreaType
;
70
}
71
72
virtual
const
char
*
xmlType
()
const
73
{
74
return
theXmlType
();
75
}
76
77
virtual
double
modifierForForce(
int
force)
78
{
79
DtIteratorBase<DtRwReal>
iter(*
this
);
80
double
baseModifier = 1.0;
81
82
while
(iter.
current
())
83
{
84
int
modForce = atoi(iter.
current
()->
name
().
c_str
());
85
86
if
(modForce == -1)
87
{
88
baseModifier = *(iter.
current
());
89
}
90
else
if
(modForce == force)
91
{
92
return
*(iter.
current
());
93
}
94
++iter;
95
}
96
97
return
baseModifier;
98
}
99
};
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)