![]() |
Blue Brain BioExplorer
|
#include <MorphologyLoader.h>
Public Member Functions | |
MorphologyLoader (core::Scene &scene, core::PropertyMap &&loaderParams, const core::Transformation &transformation=core::Transformation()) | |
std::string | getName () const final |
strings | getSupportedStorage () const final |
bool | isSupported (const std::string &storage, const std::string &extension) const final |
core::PropertyMap | getProperties () const final |
core::ModelDescriptorPtr | importFromBlob (core::Blob &&blob, const core::LoaderProgress &callback, const core::PropertyMap &properties) const final |
core::ModelDescriptorPtr | importFromStorage (const std::string &storage, const core::LoaderProgress &callback, const core::PropertyMap &properties) const final |
ParallelModelContainer | importMorphology (const Gid &gid, const core::PropertyMap &properties, const std::string &source, const uint64_t index, const SynapsesInfo &synapsesInfo, const core::Matrix4f &transformation=core::Matrix4f(), CompartmentReportPtr compartmentReport=nullptr, const float mitochondriaDensity=0.f, const float voltageScaling=1.f, const floats &voltages=floats()) const |
importMorphology imports a single morphology from a specified URI More... | |
void | setBaseMaterialId (const size_t materialId) |
setBaseMaterialId Set the base material ID for the morphology More... | |
![]() | |
Loader (Scene &scene) | |
virtual | ~Loader ()=default |
Static Public Member Functions | |
static core::PropertyMap | getCLIProperties () |
static void | createMissingMaterials (core::Model &model, const bool castUserData=false) |
createMissingMaterials Checks that all materials exist for existing geometry in the model. Missing materials are created with the default parameters More... | |
static const brain::neuron::SectionTypes | getSectionTypesFromProperties (const core::PropertyMap &properties) |
Additional Inherited Members | |
![]() | |
Scene & | _scene |
Loads morphologies from SWC and H5, and Circuit Config files
Definition at line 49 of file MorphologyLoader.h.
sonataexplorer::neuroscience::common::MorphologyLoader::MorphologyLoader | ( | core::Scene & | scene, |
core::PropertyMap && | loaderParams, | ||
const core::Transformation & | transformation = core::Transformation() |
||
) |
Definition at line 73 of file MorphologyLoader.cpp.
|
static |
createMissingMaterials Checks that all materials exist for existing geometry in the model. Missing materials are created with the default parameters
Definition at line 1227 of file MorphologyLoader.cpp.
|
static |
Definition at line 1187 of file MorphologyLoader.cpp.
|
finalvirtual |
|
finalvirtual |
Reimplemented from core::Loader.
Definition at line 1182 of file MorphologyLoader.cpp.
|
static |
Definition at line 1213 of file MorphologyLoader.cpp.
|
finalvirtual |
Implements core::Loader.
Definition at line 85 of file MorphologyLoader.cpp.
|
finalvirtual |
Import the data from the blob and return the created model.
blob | the blob containing the data to import |
callback | Callback for loader progress |
properties | Properties used for loading |
Implements core::Loader.
Definition at line 1157 of file MorphologyLoader.cpp.
|
finalvirtual |
Implements core::Loader.
Definition at line 1163 of file MorphologyLoader.cpp.
ParallelModelContainer sonataexplorer::neuroscience::common::MorphologyLoader::importMorphology | ( | const Gid & | gid, |
const core::PropertyMap & | properties, | ||
const std::string & | source, | ||
const uint64_t | index, | ||
const SynapsesInfo & | synapsesInfo, | ||
const core::Matrix4f & | transformation = core::Matrix4f() , |
||
CompartmentReportPtr | compartmentReport = nullptr , |
||
const float | mitochondriaDensity = 0.f , |
||
const float | voltageScaling = 1.f , |
||
const floats & | voltages = floats() |
||
) | const |
importMorphology imports a single morphology from a specified URI
uri | URI of the morphology |
index | Index of the morphology |
defaultMaterialId | Material to use |
compartmentReport | Compartment report to map to the morphology |
Definition at line 96 of file MorphologyLoader.cpp.
|
finalvirtual |
Query the loader if it can load the given file
Implements core::Loader.
Definition at line 90 of file MorphologyLoader.cpp.
|
inline |
setBaseMaterialId Set the base material ID for the morphology
materialId | Id of the base material ID for the morphology |
Definition at line 98 of file MorphologyLoader.h.