Mercurial > hg > orthanc-stl
diff Sources/Plugin.cpp @ 31:ab231760799d
added button to import STL
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Apr 2024 18:05:13 +0200 |
parents | 3570c23764d4 |
children | 976da5476810 |
line wrap: on
line diff
--- a/Sources/Plugin.cpp Thu Apr 04 17:28:03 2024 +0200 +++ b/Sources/Plugin.cpp Thu Apr 04 18:05:13 2024 +0200 @@ -1887,6 +1887,10 @@ OrthancPlugins::RegisterRestCallback<EncodeNifti>("/stl/encode-nifti", true); } + OrthancPlugins::OrthancConfiguration globalConfiguration; + OrthancPlugins::OrthancConfiguration configuration; + globalConfiguration.GetSection(configuration, "STL"); + // Extend the default Orthanc Explorer with custom JavaScript for STL std::string explorer; @@ -1895,6 +1899,7 @@ std::map<std::string, std::string> dictionary; dictionary["HAS_CREATE_DICOM_STL"] = (hasCreateDicomStl_ ? "true" : "false"); + dictionary["SHOW_NIFTI_BUTTON"] = (configuration.GetBooleanValue("NIfTI", false) ? "true" : "false"); explorer = Orthanc::Toolbox::SubstituteVariables(explorer, dictionary); OrthancPlugins::ExtendOrthancExplorer(ORTHANC_PLUGIN_NAME, explorer);