class DtMtlParameterDbReader:
Instances of DtMtlParameterDbReader are used to load MTL format parameter database files (.opd) into a given DtMtlParameterDb object.
|
| virtual DtMtlParameterDbFileData * | createParameterDbFileData () |
| |
| virtual bool | load (const DtFilename ¶meterDbFile, DtMtlParameterDbFileData *paramDbFileData, DtFilename &dataPath, bool preloadParameters=false) |
| |
| virtual bool | load (const DtFilename ¶meterDbFile, DtVrfObjectParametersList *objectParamList) |
| |
| virtual bool | putFileDataInParameterDb (const DtMtlParameterDbFileData ¶mDbFileData, const DtFilename &opdLocation, DtMtlParameterDb *parameterDb, bool preloadParameters=false) |
| |
| virtual bool | putFileDataInParameterDb (const DtVrfObjectParametersList &objectParamList, DtMtlParameterDb *parameterDb, bool preloadParameters=false) |
| |
| virtual void | setFilenamePathsRelativeToFile (const DtFilename ¶meterDbFile, DtMtlParameterDbFileData *paramDbFileData) |
| |
| virtual bool | readFileData (const DtFilename &, DtMtlParameterDbFileData *, FILE *, DtFilename &dataPath) |
| |
| virtual void | entryAddedFor (DtMtlParameterDbFileEntry *oldEntry, DtMtlParameterDbEntry *newEntry) |
| |
| DtMtlParameterDbReader::DtMtlParameterDbReader |
( |
| ) |
|
| virtual DtMtlParameterDbReader::~DtMtlParameterDbReader |
( |
| ) |
|
|
virtual |
copy constructor - not implemented
| virtual bool DtMtlParameterDbReader::loadParameterDb |
( |
const DtFilename & |
parameterDbFile, |
|
|
DtMtlParameterDb * |
parameterDb, |
|
|
bool |
preloadParameters = false |
|
) |
| |
|
virtual |
Loads the given parameter database file. If the preloadParameters value is true will load all the parameters found in the database from disk (versus waiting until it is needed)
| virtual bool DtMtlParameterDbReader::load |
( |
const DtFilename & |
parameterDbFile, |
|
|
DtMtlParameterDbFileData * |
paramDbFileData, |
|
|
DtFilename & |
dataPath, |
|
|
bool |
preloadParameters = false |
|
) |
| |
|
protectedvirtual |
Load contents of parameter database file (.opd) into DtMtlParameterDbFileData object. dataPath is set to the path where the data files can be found.
Load contents of legacy format parameter database file (pre-VR-Forces version 3.7 *.opd file) into DtVrfObjectParametersList object.
Set contents of parameter database from DtMtlParameterDbFileData object. opdLocation specifies the path to the opd file being loaded. This is used to know the start of the paths to the OPE entries inside the OPD.
| virtual void DtMtlParameterDbReader::setFilenamePathsRelativeToFile |
( |
const DtFilename & |
parameterDbFile, |
|
|
DtMtlParameterDbFileData * |
paramDbFileData |
|
) |
| |
|
protectedvirtual |
Sets all of the filenames referenced in given parameter file to a path relative to to given filename.
dataPath is set to the directory where the data files can be found.
Called when an item is added to the database, this lets the developer know that a previous entry is being replaced by the new entry.
assignment operator - not implemented
The documentation for this class was generated from the following file: