# HG changeset patch # User Sebastien Jodogne # Date 1712246713 -7200 # Node ID ab231760799d350cb3c58157f1be8be7aaaee7d0 # Parent 3570c23764d415062432bdb365e9ec3c39b87883 added button to import STL diff -r 3570c23764d4 -r ab231760799d Sources/OrthancExplorer.js --- a/Sources/OrthancExplorer.js Thu Apr 04 17:28:03 2024 +0200 +++ b/Sources/OrthancExplorer.js Thu Apr 04 18:05:13 2024 +0200 @@ -147,6 +147,215 @@ } +function AddGenerateFromNIfTIButton(studyId) { + if (${HAS_CREATE_DICOM_STL} && + ${SHOW_NIFTI_BUTTON}) { + $('#stl-attach-nifti').remove(); + + var nifti = $('') + .attr('id', 'stl-attach-nifti') + .attr('data-role', 'button') + .attr('href', '#') + .attr('data-icon', 'search') + .attr('data-theme', 'e') + .text('Attach NIfTI 3D model') + .button(); + + nifti.insertAfter($('#study-info')); + nifti.click(function() { + + var options = $('