40 using namespace common;
47 , _defaults(loaderParams)
69 PLUGIN_THROW(
"Loading astrocytes from blob is not supported");
76 props.
merge(properties);
79 const auto baseName = std::filesystem::path(storage).filename();
83 props.
getProperty<std::string>(LOADER_PROPERTY_ASTROCYTES_VASCULATURE_SCHEMA.name);
87 props.
getProperty<std::string>(LOADER_PROPERTY_POPULATION_COLOR_SCHEME.name));
89 props.
getProperty<std::string>(LOADER_PROPERTY_MORPHOLOGY_COLOR_SCHEME.name));
102 props.
getProperty<std::string>(LOADER_PROPERTY_MORPHOLOGY_REPRESENTATION.name));
104 const auto position = props.
getProperty<std::array<double, 3>>(LOADER_PROPERTY_POSITION.name);
106 const auto rotation = props.
getProperty<std::array<double, 4>>(LOADER_PROPERTY_ROTATION.name);
108 const auto scale = props.
getProperty<std::array<double, 3>>(LOADER_PROPERTY_SCALE.name);
109 details.
scale = {scale[0], scale[1], scale[2]};
122 pm.
setProperty(LOADER_PROPERTY_DATABASE_SQL_FILTER);
125 pm.
setProperty(LOADER_PROPERTY_POPULATION_COLOR_SCHEME);
126 pm.
setProperty(LOADER_PROPERTY_MORPHOLOGY_COLOR_SCHEME);
127 pm.
setProperty(LOADER_PROPERTY_MORPHOLOGY_REPRESENTATION);
128 pm.
setProperty(LOADER_PROPERTY_MORPHOLOGY_LOAD_SOMA);
129 pm.
setProperty(LOADER_PROPERTY_MORPHOLOGY_LOAD_DENDRITES);
130 pm.
setProperty(LOADER_PROPERTY_MORPHOLOGY_GENERATE_INTERNALS);
131 pm.
setProperty(LOADER_PROPERTY_ASTROCYTES_LOAD_MICRO_DOMAINS);
132 pm.
setProperty(LOADER_PROPERTY_ASTROCYTES_VASCULATURE_SCHEMA);
133 pm.
setProperty(LOADER_PROPERTY_MORPHOLOGY_REALISM_LEVEL_SOMA);
134 pm.
setProperty(LOADER_PROPERTY_MORPHOLOGY_REALISM_LEVEL_DENDRITE);
const core::ModelDescriptorPtr getModelDescriptor() const
Get the Model Descriptor object.
std::string getName() const final
strings getSupportedStorage() const final
core::ModelDescriptorPtr importFromStorage(const std::string &storage, const core::LoaderProgress &callback, const core::PropertyMap &properties) const final
bool isSupported(const std::string &storage, const std::string &extension) const final
static core::PropertyMap getCLIProperties()
core::PropertyMap getProperties() const final
core::ModelDescriptorPtr importFromBlob(core::Blob &&blob, const core::LoaderProgress &callback, const core::PropertyMap &properties) const final
void setProperty(const Property &newProperty)
T getProperty(const std::string &name, T valIfNotFound) const
void merge(const PropertyMap &input)
Scene object This object contains collections of geometries, materials and light sources that are use...
const std::string LOADER_NAME
const std::string SUPPORTED_PROTOCOL_ASTROCYTES
glm::vec< 3, double > Vector3d
std::shared_ptr< ModelDescriptor > ModelDescriptorPtr
glm::tquat< double, glm::highp > Quaterniond
Double quaternion.
morphology::MorphologyRepresentation morphologyRepresentation
morphology::PopulationColorScheme populationColorScheme
std::string vasculaturePopulationName
morphology::MorphologyColorScheme morphologyColorScheme
std::string populationName