VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
11 #include <readerWriter/rwInt.h>
12 #include <readerWriter/rwReal.h>
13 
19 {
20 public:
22  {
23  Default = 0,
24  Specific = 1,
25  Weighted = 2,
26  Random = 3,
27  WeightedExponential = 4
28  };
29 
31  parentRegistry = 0);
33  parentRegistry = 0);
34 
36  DtReaderWriterRegistry* parentRegistry = 0);
37 
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
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 
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:
108 
111 
117 
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)