Mercurial > hg > orthanc-stone
changeset 1589:8c5f9864545f
adding missing headers
line wrap: on
line diff
--- a/Applications/Resources/Colormaps/GenerateColormaps.py Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Resources/Colormaps/GenerateColormaps.py Thu Oct 22 16:59:23 2020 +0200 @@ -1,5 +1,24 @@ #!/usr/bin/python +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + import array import matplotlib.pyplot as plt
--- a/Applications/Resources/LinuxStandardBaseUic.py Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Resources/LinuxStandardBaseUic.py Thu Oct 22 16:59:23 2020 +0200 @@ -1,5 +1,24 @@ #!/usr/bin/env python +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + import subprocess import sys
--- a/Applications/Resources/RunCppCheck.sh Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Resources/RunCppCheck.sh Thu Oct 22 16:59:23 2020 +0200 @@ -1,5 +1,24 @@ #!/bin/bash +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + set -ex CPPCHECK=cppcheck
--- a/Applications/Resources/SyncOrthancFolder.py Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Resources/SyncOrthancFolder.py Thu Oct 22 16:59:23 2020 +0200 @@ -1,5 +1,24 @@ #!/usr/bin/python +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + # # This maintenance script updates the content of the "Orthanc" folder # to match the latest version of the Orthanc source code.
--- a/Applications/Samples/RtViewerPlugin/CMakeLists.txt Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Samples/RtViewerPlugin/CMakeLists.txt Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,22 @@ +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + cmake_minimum_required(VERSION 2.8.3) project(StoneWebViewerPlugin)
--- a/Applications/Samples/RtViewerPlugin/OrthancExplorer.js Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Samples/RtViewerPlugin/OrthancExplorer.js Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,24 @@ +/** + * Stone of Orthanc + * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics + * Department, University Hospital of Liege, Belgium + * Copyright (C) 2017-2020 Osimis S.A., Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + **/ + + $('#series').live('pagebeforecreate', function() { var b = $('<a>') .attr('data-role', 'button')
--- a/Applications/Samples/Sdl/CMakeLists.txt Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Samples/Sdl/CMakeLists.txt Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,22 @@ +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + cmake_minimum_required(VERSION 2.8.10) project(OrthancStone)
--- a/Applications/Samples/Sdl/Utilities.cmake Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Samples/Sdl/Utilities.cmake Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,20 @@ +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. macro(GetFilenameFromPath TargetVariable Path)
--- a/Applications/Samples/WebAssembly/CMakeLists.txt Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Samples/WebAssembly/CMakeLists.txt Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,22 @@ +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + cmake_minimum_required(VERSION 2.8.3) project(OrthancStone)
--- a/Applications/Samples/WebAssembly/RtViewer/RtViewerWasmApp.js Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Samples/WebAssembly/RtViewer/RtViewerWasmApp.js Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,23 @@ +/** + * Stone of Orthanc + * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics + * Department, University Hospital of Liege, Belgium + * Copyright (C) 2017-2020 Osimis S.A., Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + **/ + // This object wraps the functions exposed by the wasm module
--- a/Applications/Samples/WebAssembly/RtViewer/RtViewerWasmWrapper.js Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Samples/WebAssembly/RtViewer/RtViewerWasmWrapper.js Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,23 @@ +/** + * Stone of Orthanc + * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics + * Department, University Hospital of Liege, Belgium + * Copyright (C) 2017-2020 Osimis S.A., Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + **/ + const Stone = function() { this._InitializeViewport = undefined;
--- a/Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewerApp.js Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewerApp.js Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,23 @@ +/** + * Stone of Orthanc + * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics + * Department, University Hospital of Liege, Belgium + * Copyright (C) 2017-2020 Osimis S.A., Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + **/ + // This object wraps the functions exposed by the wasm module
--- a/Applications/Samples/WebAssembly/docker-build.sh Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Samples/WebAssembly/docker-build.sh Thu Oct 22 16:59:23 2020 +0200 @@ -1,5 +1,24 @@ #!/bin/bash +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + set -ex IMAGE=jodogne/wasm-builder:1.39.17-upstream
--- a/Applications/Samples/WebAssembly/docker-internal.sh Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Samples/WebAssembly/docker-internal.sh Thu Oct 22 16:59:23 2020 +0200 @@ -1,4 +1,24 @@ #!/bin/bash + +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + set -ex source /opt/emsdk/emsdk_env.sh
--- a/Applications/Samples/build-wasm-samples.sh Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/Samples/build-wasm-samples.sh Thu Oct 22 16:59:23 2020 +0200 @@ -1,4 +1,24 @@ #!/bin/bash + +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + # # usage: # to build the samples in RelWithDebInfo: @@ -6,6 +26,7 @@ # # to build the samples in Release: # ./build-wasm-samples.sh Release +# set -e @@ -45,4 +66,4 @@ echo "If all went well, the output files can be found in $installFolderName:" -ls $installFolderName \ No newline at end of file +ls $installFolderName
--- a/Applications/StoneWebViewer/Plugin/CMakeLists.txt Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/StoneWebViewer/Plugin/CMakeLists.txt Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,22 @@ +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + cmake_minimum_required(VERSION 2.8.3) project(StoneWebViewerPlugin)
--- a/Applications/StoneWebViewer/Plugin/OrthancExplorer.js Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/StoneWebViewer/Plugin/OrthancExplorer.js Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,24 @@ +/** + * Stone of Orthanc + * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics + * Department, University Hospital of Liege, Belgium + * Copyright (C) 2017-2020 Osimis S.A., Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + **/ + + $('#study').live('pagebeforecreate', function() { var b = $('<a>') .attr('data-role', 'button')
--- a/Applications/StoneWebViewer/Resources/Graveyard/print.js Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/StoneWebViewer/Resources/Graveyard/print.js Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,24 @@ +/** + * Stone of Orthanc + * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics + * Department, University Hospital of Liege, Belgium + * Copyright (C) 2017-2020 Osimis S.A., Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + **/ + + function beforePrint(event){ console.log('beforePrint'); var $body = $('body');
--- a/Applications/StoneWebViewer/WebApplication/print.js Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/StoneWebViewer/WebApplication/print.js Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,24 @@ +/** + * Stone of Orthanc + * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics + * Department, University Hospital of Liege, Belgium + * Copyright (C) 2017-2020 Osimis S.A., Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + **/ + + function beforePrint(event) { var body = $('body'); body.addClass('print');
--- a/Applications/StoneWebViewer/WebAssembly/CMakeLists.txt Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/StoneWebViewer/WebAssembly/CMakeLists.txt Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,22 @@ +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + cmake_minimum_required(VERSION 2.8.3) project(OrthancStone)
--- a/Applications/StoneWebViewer/WebAssembly/JavaScriptLibraries.cmake Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/StoneWebViewer/WebAssembly/JavaScriptLibraries.cmake Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,22 @@ +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + set(BASE_URL "http://orthanc.osimis.io/ThirdPartyDownloads") DownloadPackage(
--- a/Applications/StoneWebViewer/WebAssembly/StoneModule/CMakeLists.txt Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/StoneWebViewer/WebAssembly/StoneModule/CMakeLists.txt Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,22 @@ +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + cmake_minimum_required(VERSION 2.8.3) project(OrthancStone)
--- a/Applications/StoneWebViewer/WebAssembly/docker-build.sh Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/StoneWebViewer/WebAssembly/docker-build.sh Thu Oct 22 16:59:23 2020 +0200 @@ -1,5 +1,24 @@ #!/bin/bash +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + set -ex IMAGE=jodogne/wasm-builder:1.39.17-upstream
--- a/Applications/StoneWebViewer/WebAssembly/docker-internal.sh Thu Oct 22 16:29:08 2020 +0200 +++ b/Applications/StoneWebViewer/WebAssembly/docker-internal.sh Thu Oct 22 16:59:23 2020 +0200 @@ -1,4 +1,24 @@ #!/bin/bash + +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + set -ex source /opt/emsdk/emsdk_env.sh
--- a/OrthancStone/Resources/CMake/FreetypeConfiguration.cmake Thu Oct 22 16:29:08 2020 +0200 +++ b/OrthancStone/Resources/CMake/FreetypeConfiguration.cmake Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,22 @@ +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + if (STATIC_BUILD OR NOT USE_SYSTEM_FREETYPE) set(FREETYPE_SOURCES_DIR ${CMAKE_BINARY_DIR}/freetype-2.9.1) set(FREETYPE_URL "http://orthanc.osimis.io/ThirdPartyDownloads/freetype-2.9.1.tar.gz")
--- a/OrthancStone/Resources/CMake/Version.cmake Thu Oct 22 16:29:08 2020 +0200 +++ b/OrthancStone/Resources/CMake/Version.cmake Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,22 @@ +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + set(ORTHANC_STONE_VERSION "mainline") add_definitions(
--- a/OrthancStone/Resources/Computations/ComputeShearOnSlice.py Thu Oct 22 16:29:08 2020 +0200 +++ b/OrthancStone/Resources/Computations/ComputeShearOnSlice.py Thu Oct 22 16:59:23 2020 +0200 @@ -1,5 +1,24 @@ #!/usr/bin/python +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + from sympy import * import pprint
--- a/OrthancStone/Resources/Computations/ComputeShearParameters.py Thu Oct 22 16:29:08 2020 +0200 +++ b/OrthancStone/Resources/Computations/ComputeShearParameters.py Thu Oct 22 16:59:23 2020 +0200 @@ -1,5 +1,24 @@ #!/usr/bin/python +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + from sympy import * import pprint
--- a/OrthancStone/Resources/Computations/ComputeWarp.py Thu Oct 22 16:29:08 2020 +0200 +++ b/OrthancStone/Resources/Computations/ComputeWarp.py Thu Oct 22 16:59:23 2020 +0200 @@ -1,5 +1,24 @@ #!/usr/bin/python +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + from sympy import * from sympy.solvers import solve import pprint
--- a/OrthancStone/Resources/Computations/IntersectSegmentAndHorizontalLine.py Thu Oct 22 16:29:08 2020 +0200 +++ b/OrthancStone/Resources/Computations/IntersectSegmentAndHorizontalLine.py Thu Oct 22 16:59:23 2020 +0200 @@ -1,5 +1,24 @@ #!/usr/bin/env python +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + from sympy import * # Intersection between the 2D line segment (prevX,prevY)-(curX,curY) and the
--- a/OrthancStone/Resources/Computations/IntersectSegmentAndVerticalLine.py Thu Oct 22 16:29:08 2020 +0200 +++ b/OrthancStone/Resources/Computations/IntersectSegmentAndVerticalLine.py Thu Oct 22 16:59:23 2020 +0200 @@ -1,5 +1,24 @@ #!/usr/bin/env python +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + from sympy import * # Intersection between the 2D line segment (prevX,prevY)-(curX,curY) and the
--- a/OrthancStone/Resources/SyncOrthancFolder.py Thu Oct 22 16:29:08 2020 +0200 +++ b/OrthancStone/Resources/SyncOrthancFolder.py Thu Oct 22 16:59:23 2020 +0200 @@ -1,5 +1,24 @@ #!/usr/bin/python +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + # # This maintenance script updates the content of the "Orthanc" folder # to match the latest version of the Orthanc source code.
--- a/OrthancStone/SharedLibrary/OrthancStone.h.in Thu Oct 22 16:29:08 2020 +0200 +++ b/OrthancStone/SharedLibrary/OrthancStone.h.in Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,24 @@ +/** + * Stone of Orthanc + * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics + * Department, University Hospital of Liege, Belgium + * Copyright (C) 2017-2020 Osimis S.A., Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + **/ + + #pragma once /**
--- a/OrthancStone/SharedLibrary/WebAssembly/CMakeLists.txt Thu Oct 22 16:29:08 2020 +0200 +++ b/OrthancStone/SharedLibrary/WebAssembly/CMakeLists.txt Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,22 @@ +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + cmake_minimum_required(VERSION 2.8.3) project(OrthancStoneModule)
--- a/OrthancStone/Sources/OrthancStone.h Thu Oct 22 16:29:08 2020 +0200 +++ b/OrthancStone/Sources/OrthancStone.h Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,24 @@ +/** + * Stone of Orthanc + * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics + * Department, University Hospital of Liege, Belgium + * Copyright (C) 2017-2020 Osimis S.A., Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + **/ + + #pragma once /**
--- a/UnitTestsSources/CMakeLists.txt Thu Oct 22 16:29:08 2020 +0200 +++ b/UnitTestsSources/CMakeLists.txt Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,22 @@ +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + cmake_minimum_required(VERSION 2.8.10) project(UnitTests)
--- a/UnitTestsSources/Graveyard/TestStructureSet_BGO.cpp Thu Oct 22 16:29:08 2020 +0200 +++ b/UnitTestsSources/Graveyard/TestStructureSet_BGO.cpp Thu Oct 22 16:59:23 2020 +0200 @@ -1,3 +1,24 @@ +/** + * Stone of Orthanc + * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics + * Department, University Hospital of Liege, Belgium + * Copyright (C) 2017-2020 Osimis S.A., Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + **/ + + /* these tests are single-threaded... no worries for old buggy compilers (I'm talking to YOU, cl.exe v100! And to your ancestors!)
--- a/UnitTestsSources/SortedFramesCreateTest.py Thu Oct 22 16:29:08 2020 +0200 +++ b/UnitTestsSources/SortedFramesCreateTest.py Thu Oct 22 16:59:23 2020 +0200 @@ -1,5 +1,24 @@ #!/usr/bin/env python +# Stone of Orthanc +# Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics +# Department, University Hospital of Liege, Belgium +# Copyright (C) 2017-2020 Osimis S.A., Belgium +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + import pprint import requests import sys