Blue Brain BioExplorer
|
#include <CacheLoader.h>
Public Member Functions | |
CacheLoader (core::Scene &scene, core::PropertyMap &&loaderParams={}) | |
Construct a new Bio Explorer Loader object. More... | |
std::string | getName () const final |
Get the name of the loader. More... | |
strings | getSupportedStorage () const final |
Get the list of extensions supported by loaded. More... | |
bool | isSupported (const std::string &storage, const std::string &extension) const final |
Returns whever a file extention is supported by the loader. More... | |
core::PropertyMap | getProperties () const final |
Returns the list of loader properties. More... | |
core::ModelDescriptorPtr | importFromBlob (core::Blob &&blob, const core::LoaderProgress &callback, const core::PropertyMap &properties) const final |
Imports a 3D scene from an in-memory blob storage. More... | |
core::ModelDescriptorPtr | importFromStorage (const std::string &storage, const core::LoaderProgress &callback, const core::PropertyMap &properties) const final |
Imports a 3D scene from file. More... | |
std::vector< core::ModelDescriptorPtr > | importModelsFromFile (const std::string &filename, const int32_t brickId=UNDEFINED_BOX_ID, const core::LoaderProgress &callback=core::LoaderProgress(), const core::PropertyMap &properties=core::PropertyMap()) const |
void | exportToFile (const std::string &filename, const core::Boxd &bounds) const |
Exports an optimized binary representation the 3D scene to a file. More... | |
std::vector< core::ModelDescriptorPtr > | importBrickFromDB (const int32_t brickId) const |
void | exportBrickToDB (const int32_t brickId, const core::Boxd &bounds) const |
Exports an optimized binary representation the 3D scene to a DB. More... | |
void | exportToXYZ (const std::string &filename, const common::XYZFileFormat format) const |
Exports atom information from the 3D scene to a file. More... | |
Public Member Functions inherited from core::Loader | |
Loader (Scene &scene) | |
virtual | ~Loader ()=default |
Static Public Member Functions | |
static core::PropertyMap | getCLIProperties () |
Returns the list of loader command line arguments. More... | |
Additional Inherited Members | |
Protected Attributes inherited from core::Loader | |
Scene & | _scene |
Load molecular systems from an optimized binary representation of the 3D scene
Definition at line 40 of file CacheLoader.h.
bioexplorer::io::CacheLoader::CacheLoader | ( | core::Scene & | scene, |
core::PropertyMap && | loaderParams = {} |
||
) |
Construct a new Bio Explorer Loader object.
scene | Scene to which the file contents should be loaded |
loaderParams | Loader parameters |
Definition at line 67 of file CacheLoader.cpp.
void bioexplorer::io::CacheLoader::exportBrickToDB | ( | const int32_t | brickId, |
const core::Boxd & | bounds | ||
) | const |
Exports an optimized binary representation the 3D scene to a DB.
Definition at line 770 of file CacheLoader.cpp.
void bioexplorer::io::CacheLoader::exportToFile | ( | const std::string & | filename, |
const core::Boxd & | bounds | ||
) | const |
Exports an optimized binary representation the 3D scene to a file.
filename | Full path of the file |
Definition at line 725 of file CacheLoader.cpp.
void bioexplorer::io::CacheLoader::exportToXYZ | ( | const std::string & | filename, |
const common::XYZFileFormat | format | ||
) | const |
Exports atom information from the 3D scene to a file.
filename | Full path of the file |
format | File format to be used for the export |
Definition at line 786 of file CacheLoader.cpp.
|
static |
Returns the list of loader command line arguments.
Definition at line 862 of file CacheLoader.cpp.
|
finalvirtual |
Get the name of the loader.
Implements core::Loader.
Definition at line 73 of file CacheLoader.cpp.
|
finalvirtual |
Returns the list of loader properties.
Reimplemented from core::Loader.
Definition at line 857 of file CacheLoader.cpp.
|
finalvirtual |
Get the list of extensions supported by loaded.
Implements core::Loader.
Definition at line 78 of file CacheLoader.cpp.
std::vector< ModelDescriptorPtr > bioexplorer::io::CacheLoader::importBrickFromDB | ( | const int32_t | brickId | ) | const |
brickId |
Definition at line 752 of file CacheLoader.cpp.
|
finalvirtual |
Imports a 3D scene from an in-memory blob storage.
blob | In-memory blob storage |
callback | Callback object providing the status of the loading process |
properties | Loader properties |
Implements core::Loader.
Definition at line 89 of file CacheLoader.cpp.
|
finalvirtual |
Imports a 3D scene from file.
filename | Full path of the file |
callback | Callback object providing the status of the loading process |
properties | Loader properties |
Implements core::Loader.
Definition at line 418 of file CacheLoader.cpp.
std::vector< ModelDescriptorPtr > bioexplorer::io::CacheLoader::importModelsFromFile | ( | const std::string & | filename, |
const int32_t | brickId = UNDEFINED_BOX_ID , |
||
const core::LoaderProgress & | callback = core::LoaderProgress() , |
||
const core::PropertyMap & | properties = core::PropertyMap() |
||
) | const |
filename | |
callback | |
properties |
Definition at line 379 of file CacheLoader.cpp.
|
finalvirtual |
Returns whever a file extention is supported by the loader.
filename | Name of the file |
extension | Extension of the file |
Implements core::Loader.
Definition at line 83 of file CacheLoader.cpp.