![]() |
VR-Forces 4.0.4 Class Documentation
|
DtRangeProbabilityTable is a readable/writable list of DtRangeProbEntrys. More...

Public Member Functions | |
| DtRangeProbabilityTable () | |
| DtRangeProbabilityTable (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| constructor with parameters to set up read/writability correctly | |
| DtRangeProbabilityTable (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtRangeProbabilityTable (const DtRangeProbabilityTable &orig) | |
| copy constructor | |
| DtRangeProbabilityTable (const DtString &name, const DtRangeProbabilityTable &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtRangeProbabilityTable (const DtSymbolString &name, const DtRangeProbabilityTable &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtRangeProbabilityTable & | operator= (const DtRangeProbabilityTable &orig) |
| virtual | ~DtRangeProbabilityTable () |
| destructor | |
| virtual DtRangeProbabilityTable * | clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) const |
| virtual DtRangeProbabilityTable * | clone (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) const |
| virtual void | addDetectionProbabilityEntry (const DtRangeProbEntry &detectEntry) |
| Adds a detection probability entry. | |
| virtual bool | getProbabilities (const DtEntityType &entityType, DtReal range, DtPrbRangeTableEntry *rangeEntry, DtEntityType *bestMatch=NULL) const |
| Fills in the DtPrbRangeTableEntry with a category/value pair for each item on its list (including the actual calculation of the probability value. | |
Protected Member Functions | |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings) |
| Creates the right kind of DtRangeProbEntry, reads it, and adds it to the list. | |
| virtual DtListItem * | lookupDetectProbEntry (const DtEntityType &entityType) const |
| virtual void | emptyList () |
| virtual void | copyList (const DtRangeProbabilityTable &orig) |
| virtual void | addDetectionProbabilityEntry (DtRangeProbEntry *detectEntry) |
DtRangeProbabilityTable is a readable/writable list of DtRangeProbEntrys.
It's sorted by the entity type in the entry, and will return a DtPrbRangeTableEntry based on the specified range and the best match found for the entity type indicated.
| DtRangeProbabilityTable::DtRangeProbabilityTable | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
constructor with parameters to set up read/writability correctly
| DtRangeProbabilityTable::DtRangeProbabilityTable | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
| DtRangeProbabilityTable::DtRangeProbabilityTable | ( | const DtString & | name, |
| const DtRangeProbabilityTable & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
| DtRangeProbabilityTable::DtRangeProbabilityTable | ( | const DtSymbolString & | name, |
| const DtRangeProbabilityTable & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
| virtual DtRangeProbabilityTable::~DtRangeProbabilityTable | ( | ) | [virtual] |
destructor
| const DtRangeProbabilityTable& DtRangeProbabilityTable::operator= | ( | const DtRangeProbabilityTable & | orig | ) |
| virtual DtRangeProbabilityTable* DtRangeProbabilityTable::clone | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) | const [virtual] |
| virtual DtRangeProbabilityTable* DtRangeProbabilityTable::clone | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) | const [virtual] |
| virtual void DtRangeProbabilityTable::addDetectionProbabilityEntry | ( | const DtRangeProbEntry & | detectEntry | ) | [virtual] |
Adds a detection probability entry.
List is kept in ascending order (by the entity type specified in the entry).
| virtual bool DtRangeProbabilityTable::getProbabilities | ( | const DtEntityType & | entityType, |
| DtReal | range, | ||
| DtPrbRangeTableEntry * | rangeEntry, | ||
| DtEntityType * | bestMatch = NULL |
||
| ) | const [virtual] |
Fills in the DtPrbRangeTableEntry with a category/value pair for each item on its list (including the actual calculation of the probability value.
Returns false if no entry found for entityType specified. (Note: if no entry is found for the range specified, the range entry will have 0.0s filled in for probabilities.)
| virtual DtlObjPtr DtRangeProbabilityTable::getData | ( | DtlObjPtr | args, |
| const DtFilename & | searchPath, | ||
| const DtVariableBindingsList & | variableBindings | ||
| ) | [protected, virtual] |
Creates the right kind of DtRangeProbEntry, reads it, and adds it to the list.
Implements DtRwList.
| virtual DtListItem* DtRangeProbabilityTable::lookupDetectProbEntry | ( | const DtEntityType & | entityType | ) | const [protected, virtual] |
| virtual void DtRangeProbabilityTable::emptyList | ( | ) | [protected, virtual] |
| virtual void DtRangeProbabilityTable::copyList | ( | const DtRangeProbabilityTable & | orig | ) | [protected, virtual] |
| virtual void DtRangeProbabilityTable::addDetectionProbabilityEntry | ( | DtRangeProbEntry * | detectEntry | ) | [protected, virtual] |