Blue Brain BioExplorer
core::XYZBLoader Class Reference

#include <XYZBLoader.h>

Inheritance diagram for core::XYZBLoader:
Collaboration diagram for core::XYZBLoader:

Public Member Functions

 XYZBLoader (Scene &scene)
 
std::vector< std::string > getSupportedStorage () const final
 
std::string getName () const final
 
bool isSupported (const std::string &storage, const std::string &extension) const final
 
ModelDescriptorPtr importFromBlob (Blob &&blob, const LoaderProgress &callback, const PropertyMap &properties) const final
 
ModelDescriptorPtr importFromStorage (const std::string &storage, const LoaderProgress &callback, const PropertyMap &properties) const final
 
- Public Member Functions inherited from core::Loader
 Loader (Scene &scene)
 
virtual ~Loader ()=default
 
virtual PropertyMap getProperties () const
 

Additional Inherited Members

- Protected Attributes inherited from core::Loader
Scene_scene
 

Detailed Description

Definition at line 29 of file XYZBLoader.h.

Constructor & Destructor Documentation

◆ XYZBLoader()

core::XYZBLoader::XYZBLoader ( Scene scene)

Definition at line 48 of file XYZBLoader.cpp.

Member Function Documentation

◆ getName()

std::string core::XYZBLoader::getName ( ) const
finalvirtual
Returns
The loader name

Implements core::Loader.

Definition at line 156 of file XYZBLoader.cpp.

◆ getSupportedStorage()

std::vector< std::string > core::XYZBLoader::getSupportedStorage ( ) const
finalvirtual
Returns
The loaders supported file extensions

Implements core::Loader.

Definition at line 161 of file XYZBLoader.cpp.

◆ importFromBlob()

ModelDescriptorPtr core::XYZBLoader::importFromBlob ( Blob &&  blob,
const LoaderProgress callback,
const PropertyMap properties 
) const
finalvirtual

Import the data from the blob and return the created model.

Parameters
blobthe blob containing the data to import
callbackCallback for loader progress
propertiesProperties used for loading
Returns
the model that has been created by the loader

Implements core::Loader.

Definition at line 59 of file XYZBLoader.cpp.

◆ importFromStorage()

ModelDescriptorPtr core::XYZBLoader::importFromStorage ( const std::string &  storage,
const LoaderProgress callback,
const PropertyMap properties 
) const
finalvirtual

Import the data from the given file or database schema and return the created model.

Parameters
storagethe file or database schema containing the data to import
callbackCallback for loader progress
propertiesProperties used for loading
Returns
the model that has been created by the loader

Implements core::Loader.

Definition at line 146 of file XYZBLoader.cpp.

◆ isSupported()

bool core::XYZBLoader::isSupported ( const std::string &  filename,
const std::string &  extension 
) const
finalvirtual

Query the loader if it can load the given file

Implements core::Loader.

Definition at line 53 of file XYZBLoader.cpp.


The documentation for this class was generated from the following files: