Blue Brain BioExplorer
core::RawVolumeLoader Class Reference

#include <VolumeLoader.h>

Inheritance diagram for core::RawVolumeLoader:
Collaboration diagram for core::RawVolumeLoader:

Public Member Functions

 RawVolumeLoader (Scene &scene)
 
std::vector< std::string > getSupportedStorage () const final
 
std::string getName () const final
 
PropertyMap getProperties () 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
 

Additional Inherited Members

- Protected Attributes inherited from core::Loader
Scene_scene
 

Detailed Description

A volume loader for raw volumes with params for dimensions.

Definition at line 47 of file VolumeLoader.h.

Constructor & Destructor Documentation

◆ RawVolumeLoader()

core::RawVolumeLoader::RawVolumeLoader ( Scene scene)

Definition at line 147 of file VolumeLoader.cpp.

Member Function Documentation

◆ getName()

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

Implements core::Loader.

Definition at line 213 of file VolumeLoader.cpp.

◆ getProperties()

PropertyMap core::RawVolumeLoader::getProperties ( ) const
finalvirtual
Returns
The loader properties

Reimplemented from core::Loader.

Definition at line 223 of file VolumeLoader.cpp.

◆ getSupportedStorage()

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

Implements core::Loader.

Definition at line 218 of file VolumeLoader.cpp.

◆ importFromBlob()

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

◆ importFromStorage()

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

◆ isSupported()

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


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