std::string ZDvidUrl::getThumbnailUrl( int bodyId, const std::string &bodyLabelName) const { if (bodyId < 0) { return ""; } ZString str; str.appendNumber(bodyId); return getKeyUrl(ZDvidData::GetName(ZDvidData::ROLE_THUMBNAIL, ZDvidData::ROLE_BODY_LABEL, bodyLabelName), str + "_mraw"); // return getThumbnailUrl(bodyLabelName) + "/" + str + ".mraw"; }
std::string ZDvidUrl::getDataMapUrl() const { return getKeyUrl("default_instances", "data_map"); }
std::string ZDvidUrl::getDefaultDataInstancesUrl() const { return getKeyUrl("default_instances", "data"); }
std::string ZDvidUrl::getMirrorInfoUrl() const { return getKeyUrl("branches", "mirror"); }
std::string ZDvidUrl::getMasterUrl() const { return getKeyUrl("branches", "master"); }
std::string ZDvidUrl::getTestTaskUrl(const std::string &key) { return getKeyUrl(ZDvidData::GetName(ZDvidData::ROLE_TEST_TASK_KEY), key); }
std::string ZDvidUrl::getContrastUrl() const { return getKeyUrl("neutu_config", "contrast"); }
std::string ZDvidUrl::getRoiMeshUrl(const std::string &key) const { return getKeyUrl(ZDvidData::GetName(ZDvidData::ROLE_ROI_DATA_KEY), key); }
std::string ZDvidUrl::getManagedRoiUrl(const std::string &key) const { return getKeyUrl(ZDvidData::GetName(ZDvidData::ROLE_ROI_KEY), key); }
std::string ZDvidUrl::getCustomBookmarkUrl(const std::string &userName) const { return getKeyUrl(ZDvidData::GetName(ZDvidData::ROLE_BOOKMARK_KEY), userName); }
std::string ZDvidUrl::getBodyInfoUrl(uint64_t bodyId, const std::string &bodyName) const { return getKeyUrl(ZDvidData::GetName(ZDvidData::ROLE_BODY_INFO, ZDvidData::ROLE_BODY_LABEL, bodyName), ZString::num2str(bodyId)); }