VR-Forces 4.7 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
vrfutil
rwVisualMetaDataEntry.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2018 MaK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include "
vrfutil/vrfutilDefines.h
"
9
#include <
readerWriter/readerWriter.h
>
10
#include "
vrfutil/rwNLengthStringVector.h
"
11
#include <
readerWriter/rwInt.h
>
12
#include <
readerWriter/rwReal.h
>
13
18
class
DT_DLL_vrfutil
DtRwVisualMetaDataEntry
:
public
DtReaderWriter
19
{
20
public
:
21
enum
SelectionMethodology
22
{
23
Default = 0,
24
Specific = 1,
25
Weighted = 2,
26
Random = 3,
27
WeightedExponential = 4
28
};
29
30
DtRwVisualMetaDataEntry
(
const
DtString
& name,
DtReaderWriterRegistry
*
31
parentRegistry = 0);
32
DtRwVisualMetaDataEntry
(
const
DtSymbolString
& name,
DtReaderWriterRegistry
*
33
parentRegistry = 0);
34
35
DtRwVisualMetaDataEntry
(
const
DtRwVisualMetaDataEntry
& orig,
36
DtReaderWriterRegistry
* parentRegistry = 0);
37
38
DtRwVisualMetaDataEntry
(
const
DtString
& name,
const
DtRwVisualMetaDataEntry
& orig,
39
DtReaderWriterRegistry
* parentRegistry = 0);
40
41
DtRwVisualMetaDataEntry
(
const
DtSymbolString
& name,
const
DtRwVisualMetaDataEntry
& orig,
42
DtReaderWriterRegistry
* parentRegistry = 0);
43
44
const
DtRwVisualMetaDataEntry
&
operator=
(
const
DtRwVisualMetaDataEntry
& orig);
45
47
bool
operator==
(
const
DtRwVisualMetaDataEntry
& orig)
const
;
48
bool
operator!=
(
const
DtRwVisualMetaDataEntry
& orig)
const
49
{
50
return
!(*
this
== orig);
51
}
52
53
virtual
~
DtRwVisualMetaDataEntry
();
54
58
virtual
const
char
*
readerWriterType
()
const
;
59
61
static
const
char
*
theXmlType
();
62
63
virtual
const
char
*
xmlType
()
const
64
{
65
return
theXmlType
();
66
}
67
69
70
virtual
void
clear();
71
73
virtual
void
setSelectionMethodology(SelectionMethodology);
74
SelectionMethodology
selectionMethodology()
const
75
{
76
return
(
SelectionMethodology
)mySelectionMethodology.value();
77
}
78
80
const
DtRwNLengthStringVector
& selections()
const
81
{
82
return
mySelections;
83
}
84
85
virtual
void
setSelections(
const
DtRwNLengthStringVector
&);
86
87
DtRwNLengthStringVector
& selections()
88
{
89
return
mySelections;
90
}
91
93
virtual
void
setTopWeightedPercent(
double
);
94
virtual
double
topWeightedPercent()
const
;
95
97
virtual
void
setTopWeightedRandomChance(
double
);
98
virtual
double
topWeightedRandomChance()
const
;
99
100
protected
:
107
DtRwInt
mySelectionMethodology
;
108
110
DtRwNLengthStringVector
mySelections
;
111
116
DtRwReal
myTopWeightedPercent
;
117
121
DtRwReal
myTopWeightedRandomChance
;
122
};
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)