diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 511f495a2..ed79dd183 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -77,6 +77,7 @@ These live in the source tree (see the path) rather than being fetched; traccc a | [fast-feedback-indexer](https://github.com/paulscherrerinstitute/fast-feedback-indexer) (adapted) | `image_analysis/indexing/FFBIDXIndexerCPU.cpp` | PSI | BSD-3-Clause | [fast-feedback-indexer.txt](licenses/fast-feedback-indexer.txt) | | [Ceres Solver](https://github.com/ceres-solver/ceres-solver) (adapted) | `image_analysis/geom_refinement/LMSolver.h`, `LMSolver.cpp` | Google Inc. | BSD-3-Clause | [ceres-solver.txt](licenses/ceres-solver.txt) | | [GEMMI](https://github.com/project-gemmi/gemmi) (adapted) | `image_analysis/structure_refinement/ModelScaling.cpp`, `ModelScaleGPU.cu`, `ModelGrid.cpp`, `ModelFFT.cpp`, `ModelMaskGPU.cu`, `ModelStructureFactorsGPU.cpp`, `ModelStructureFactorsGPU.cu`, `ModelDensityGPU.cu`, `RefinementGPU.cu`, `RigidBodyGPU.cu`, `ModelDensityMetal.metal`, `AtomGradientMetal.metal` | Global Phasing Ltd. | MPL-2.0 | [gemmi.txt](licenses/gemmi.txt) | +| SGI `trackball.c` virtual trackball (adapted, via [Coot](https://github.com/pemsley/coot) and AareDB) | `frontend/src/components/structure/cootTrackball.ts` | Silicon Graphics, Inc. (Gavin Bell et al.); Coot's version Paul Emsley | SGI permission notice (LicenseRef-SGI-trackball); Coot's changes GPL-3.0-or-later | [sgi-trackball.txt](licenses/sgi-trackball.txt) | | [SIMD-math-prims](https://github.com/jhjourdan/SIMD-math-prims) (`expapprox()`, as GEMMI's `unsafe_expapprox()` adapts it) | `gemmi_gph/gemmi/formfact.hpp`; `image_analysis/structure_refinement/ModelDensityGPU.cu`, `RefinementGPU.cu`, `ModelDensityMetal.metal`, `AtomGradientMetal.metal` | Jacques-Henri Jourdan | MIT | [simd-math-prims.txt](licenses/simd-math-prims.txt) | | [Durin](https://github.com/DiamondLightSource/durin) (adapted) | `xds-plugin/plugin.h`, `plugin.cpp` | Diamond Light Source Ltd.; Global Phasing Ltd. | BSD-3-Clause | [durin.txt](licenses/durin.txt) | | [xbflash.qspi](https://github.com/Xilinx/XRT) | `tools/xbflash.qspi/` | Xilinx / AMD | Apache-2.0 | [xbflash-qspi.txt](licenses/xbflash-qspi.txt) | diff --git a/docs/ACKNOWLEDGEMENT.md b/docs/ACKNOWLEDGEMENT.md index 2910d46d3..a0e2c679c 100644 --- a/docs/ACKNOWLEDGEMENT.md +++ b/docs/ACKNOWLEDGEMENT.md @@ -879,7 +879,11 @@ M. Deshpande, R. Svobodová, K. Berka, V. Bazgier, S. Velankar, S. K. Burley, J. Its setup follows the one Guillaume Gotthard (PSI) tuned for [AareDB](https://gitea.psi.ch/mx/aaredb), the sample-management and data-pipeline system of the PSI MX beamlines: the Coot-style mouse controls, the model representations and colours, and the display of the density maps. The virtual -trackball is a port of Coot's, itself a port of SGI's `trackball.c` by Gavin Bell. +trackball is a port of Coot's (Paul Emsley, GPL-3.0-or-later), itself SGI's `trackball.c` by Gavin +Bell after D. M. Ciemiewicz, M. Grossman, H. Moreton and P. Haeberli (notice in +`licenses/sgi-trackball.txt`), which follows M. Chen, S. J. Mountford and A. Sellen, "A study in +interactive 3-D rotation using 2-D control devices" (1988), Computer Graphics 22(4), 121-129 +[doi:10.1145/378456.378497](https://doi.org/10.1145/378456.378497). ## File formats read from a published specification diff --git a/frontend/src/components/structure/cootTrackball.ts b/frontend/src/components/structure/cootTrackball.ts index 56df802f4..5e385a837 100644 --- a/frontend/src/components/structure/cootTrackball.ts +++ b/frontend/src/components/structure/cootTrackball.ts @@ -1,9 +1,21 @@ /* * SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute - * SPDX-License-Identifier: GPL-3.0-only + * SPDX-FileCopyrightText: 1993, 1994 Silicon Graphics, Inc. + * SPDX-License-Identifier: GPL-3.0-only AND GPL-3.0-or-later AND LicenseRef-SGI-trackball + * + * The trackball follows SGI's trackball.c (Gavin Bell; original code by David M. Ciemiewicz, Mark Grossman, + * Henry Moreton and Paul Haeberli) as Coot carries it in src/graphics-info-trackball.cc + * (https://github.com/pemsley/coot, Paul Emsley, GNU GPL version 3 or later). + * (c) Copyright 1993, 1994, Silicon Graphics, Inc. ALL RIGHTS RESERVED. Permission to use, copy, modify, + * and distribute this software for any purpose and without fee is hereby granted, provided that the above + * copyright notice appear in all copies and that both the copyright notice and this permission notice appear + * in supporting documentation, and that the name of Silicon Graphics, Inc. not be used in advertising or + * publicity pertaining to distribution of the software without specific, written prior permission. + * The full notice, with its warranty disclaimer, is in licenses/sgi-trackball.txt. */ // Adapted from aaredb (gitea.psi.ch/mx/aaredb, the PSI MX group's own code), frontend/src/components/Structure/molstar/cootTrackball.ts at 8ece2c2. +// Virtual trackball after Chen, Mountford & Sellen (1988) Computer Graphics 22(4), 121-129. // Coot 0.9.8's virtual trackball — a port of the SGI trackball.c call Coot made // on every mouse-motion event (globjects.cc, glarea_motion_notify): spherical // surface, trackball_size 0.8, incremental from the previous pointer position. diff --git a/licenses/COLLECT.sh b/licenses/COLLECT.sh index ca0d6d650..4fe0c3731 100644 --- a/licenses/COLLECT.sh +++ b/licenses/COLLECT.sh @@ -98,7 +98,8 @@ copy_license Qt6-LGPL-3.0.txt /usr/share/common-licenses/LGPL-3 copy_license NVIDIA-CUDA-EULA.txt \ /usr/local/cuda/EULA.txt /usr/local/cuda-12.8/EULA.txt -# hpcn-uam.txt (fpga/hls/icmp.cpp, ip_header_checksum.h), stb_sprintf.txt (gemmi_gph/stb/stb_sprintf.h) and -# simd-math-prims.txt (the LICENSE of github.com/jhjourdan/SIMD-math-prims, whose expapprox() GEMMI adapts) +# hpcn-uam.txt (fpga/hls/icmp.cpp, ip_header_checksum.h), stb_sprintf.txt (gemmi_gph/stb/stb_sprintf.h), +# simd-math-prims.txt (the LICENSE of github.com/jhjourdan/SIMD-math-prims, whose expapprox() GEMMI adapts) and +# sgi-trackball.txt (the SGI notice of Coot's src/graphics-info-trackball.cc, for frontend/.../cootTrackball.ts) # are the licence comments of those files, kept by hand - re-extract them if the files change. -echo "Done. base64-macaron.txt, traccc.txt, rapidjson.txt, hpcn-uam.txt, stb_sprintf.txt, simd-math-prims.txt, Qt6-NOTICE.txt and NVIDIA-CUDA-NOTICE.txt are maintained by hand." +echo "Done. base64-macaron.txt, traccc.txt, rapidjson.txt, hpcn-uam.txt, stb_sprintf.txt, simd-math-prims.txt, sgi-trackball.txt, Qt6-NOTICE.txt and NVIDIA-CUDA-NOTICE.txt are maintained by hand." diff --git a/licenses/sgi-trackball.txt b/licenses/sgi-trackball.txt new file mode 100644 index 000000000..b0880593f --- /dev/null +++ b/licenses/sgi-trackball.txt @@ -0,0 +1,41 @@ +SGI trackball.c (virtual trackball), as carried in Coot's src/graphics-info-trackball.cc +(https://github.com/pemsley/coot). Notice reproduced verbatim: + +(c) Copyright 1993, 1994, Silicon Graphics, Inc. +ALL RIGHTS RESERVED +Permission to use, copy, modify, and distribute this software for +any purpose and without fee is hereby granted, provided that the above +copyright notice appear in all copies and that both the copyright notice +and this permission notice appear in supporting documentation, and that +the name of Silicon Graphics, Inc. not be used in advertising +or publicity pertaining to distribution of the software without specific, +written prior permission. + +THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS" +AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, +INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR +FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON +GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT, +SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY +KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION, +LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF +THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN +ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE +POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE. + +US Government Users Restricted Rights +Use, duplication, or disclosure by the Government is subject to +restrictions set forth in FAR 52.227.19(c)(2) or subparagraph +(c)(1)(ii) of the Rights in Technical Data and Computer Software +clause at DFARS 252.227-7013 and/or in similar or successor +clauses in the FAR or the DOD or NASA FAR Supplement. +Unpublished-- rights reserved under the copyright laws of the +United States. Contractor/manufacturer is Silicon Graphics, +Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311. + +OpenGL(TM) is a trademark of Silicon Graphics, Inc. + +Trackball code: implemented by Gavin Bell, lots of ideas from Thant Tessman and the August '88 issue +of Siggraph's "Computer Graphics," pp. 121-129. Original code from David M. Ciemiewicz, Mark Grossman, +Henry Moreton and Paul Haeberli. GLM conversion: Paul Emsley.