Blue Brain BioExplorer
core::MHDVolumeLoader Class Reference

#include <VolumeLoader.h>

Inheritance diagram for core::MHDVolumeLoader:
Collaboration diagram for core::MHDVolumeLoader:

Public Member Functions

 MHDVolumeLoader (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

A volume loader for mhd volumes.

Definition at line 29 of file VolumeLoader.h.

Constructor & Destructor Documentation

◆ MHDVolumeLoader()

core::MHDVolumeLoader::MHDVolumeLoader ( Scene scene)

Definition at line 233 of file VolumeLoader.cpp.

Member Function Documentation

◆ getName()

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

Implements core::Loader.

Definition at line 283 of file VolumeLoader.cpp.

◆ getSupportedStorage()

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

Implements core::Loader.

Definition at line 288 of file VolumeLoader.cpp.

◆ importFromBlob()

ModelDescriptorPtr core::MHDVolumeLoader::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 243 of file VolumeLoader.cpp.

◆ importFromStorage()

ModelDescriptorPtr core::MHDVolumeLoader::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 249 of file VolumeLoader.cpp.

◆ isSupported()

bool core::MHDVolumeLoader::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 238 of file VolumeLoader.cpp.


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