VisioMove SDK (iOS)
2.1.22
|
Public Member Functions | |
virtual | ~VgIDatabase () |
virtual bool | loadConfiguration (const std::string &pConfigFilename, UInt pSecretKey, const std::string &pLicenseGeneratorURL=VgEngine::msEmptyString)=0 |
virtual void | unloadConfiguration ()=0 |
virtual bool | getCachedLicenseFilenameForConfiguration (const std::string &pConfigFilename, std::string &pOutLicenseFilename)=0 |
virtual bool | selectDataset (const std::string &pDatasetName)=0 |
virtual bool | selectDataset (int pIndex)=0 |
virtual const VgIDatabaseDatasetDescriptor * | getCurrentDatasetDescriptor () const =0 |
virtual const std::vector< VgIDatabaseDatasetDescriptor > & | getDatasetDescriptors () const =0 |
Protected Member Functions | |
VgIDatabase () | |
The VgIDatabase interface is used to load and select the data that will be displayed in the 3D view.
This interface depends on how databases are bundled. First, the data structure, with all available datasets, is described in a configuration file. This file must be loaded (using the VgIDatabase::loadConfiguration method), then a particular dataset can be selected to be displayed in the 3D view (using the VgIDatabase::selectDataset method).
Example:
|
inlineprotected |
Constructor.
|
inlinevirtual |
Destructor.
References VgEngine::msEmptyString.
|
pure virtual |
returns the name of the cached license path for a given configuration filename.
pConfigFilename | path to vg_config file. must be an absolute filename |
pOutLicenseFilename | reference to a string, will receive the license file path if there is one. |
|
pure virtual |
Retrieves the descriptor of the current dataset.
|
pure virtual |
Retrieves the vector of all available datasets.
|
pure virtual |
Loads a database configuration from a mass storage.
pConfigFilename | The path of the configuration file to be loaded. This parameter may be either an abosolute path or (on iOS only) it may be a path relative to the application directory: {APPLICATIONS_DIRECTORY}/{GUID_DIRECTORY}/{NAME_OF_APP}.app/ |
pSecretKey | The secret key that matches the secret key that was used to generate the associated licence xml file's hash code. |
pLicenseGeneratorURL | The URL that will be reached to get the license if missing. |
|
pure virtual |
Selects a dataset using its name. Visual data will be rendered on the view during the preceding display.
pDatasetName | The name of the dataset. Needs to match the name of a dataset defined within the currently loaded configuration file. |
|
pure virtual |
Selects a dataset using its index. Visual data will be rendered on the view during the preceding display.
pIndex | Index of dataset, indicated by it's position relative to other datasets within the configuration file (starting at 0). |
|
pure virtual |
unloads the current configuration if there is one. It releases the resources and stops any threads created