#include <coVRIOReader.h>
Enumerator |
---|
Idle |
|
Loading |
|
Finished |
|
Failed |
|
opencover::coVRIOReader::coVRIOReader |
( |
| ) |
|
virtual opencover::coVRIOReader::~coVRIOReader |
( |
| ) |
|
|
virtual |
virtual bool opencover::coVRIOReader::canLoadParts |
( |
| ) |
const |
|
pure virtual |
Is used by the file manager to check if a handler can chunk its loading process into parts. Loading chunks instead of the full file enhances the responsiveness of the renderer. For the actual loading, the method loadPart has to be implemented. By the handler
- Returns
- true If the plugin supports partial loads.
virtual bool opencover::coVRIOReader::canUnload |
( |
| ) |
const |
|
pure virtual |
Is used by the file manager to check if a handler can unload a file.
- Returns
- true If the plugin supports unloading.
virtual osg::Node* opencover::coVRIOReader::getLoaded |
( |
| ) |
|
|
virtual |
Gets the loaded subgraph after finishing the partial load.
- Returns
- The node loaded or 0 if nothing was loaded.
virtual const std::list<std::string>& opencover::coVRIOReader::getSupportedReadFileExtensions |
( |
| ) |
const |
|
virtual |
virtual const std::list<std::string>& opencover::coVRIOReader::getSupportedReadMimeTypes |
( |
| ) |
const |
|
virtual |
virtual bool opencover::coVRIOReader::inLoading |
( |
| ) |
const |
|
pure virtual |
Is used by the file manager to check if a handler is currently loading a file.
- Returns
- true If the handler is loading data.
virtual bool opencover::coVRIOReader::isReader |
( |
| ) |
const |
|
inlinevirtual |
Check the IO capability of the handler
- Returns
- true if the handler can read data
Reimplemented from opencover::coVRIOBase.
virtual osg::Node* opencover::coVRIOReader::load |
( |
const std::string & |
location, |
|
|
osg::Group * |
group = 0 |
|
) |
| |
|
pure virtual |
This method is called for loading a full file. The loader must load the complete file and should attach it to the group node passed to the loader.
- Parameters
-
location | The location to load the data from. |
group | An optional group node the loaded scene should be attached to. |
- Returns
- A node that all loaded nodes are attached to or 0 on error.
virtual IOStatus opencover::coVRIOReader::loadPart |
( |
const std::string & |
location, |
|
|
osg::Group * |
group = 0 |
|
) |
| |
|
virtual |
Loads the next (or first) part of the current data set. This method must be implemented by handlers claiming to canLoadParts. It is called by the file manager every frame. The file manager ensures, that new partial load operations are only initiated after all previous operations have been completed. The current progress of the load operation should be reflected in the return value of getProgress.
- Parameters
-
location | The location to load the data from. |
group | An optional group node the loaded scene should be attached to. |
- Returns
- The current status of file loading.
virtual bool opencover::coVRIOReader::unload |
( |
osg::Node * |
node | ) |
|
|
virtual |
This method is called for unloading data. This method must be implemented by handlers claiming to canUnload.
- Returns
- If the scene was successfully unloaded.
std::list<std::string> opencover::coVRIOReader::supportedReadFileExtensions |
|
protected |
std::list<std::string> opencover::coVRIOReader::supportedReadFileTypes |
|
protected |
The documentation for this class was generated from the following file: