Credit and notice for the frontend's virtual trackball

cootTrackball.ts (via AareDB) follows Coot's trackball, which is SGI's
trackball.c (Gavin Bell et al.) with Coot's changes under GPL-3.0-or-later.
The SGI notice asks for its copyright and permission notice in all copies;
the file only named its origin.

- cootTrackball.ts: SGI copyright and permission notice, Coot origin and
  licence, SPDX GPL-3.0-only AND GPL-3.0-or-later AND
  LicenseRef-SGI-trackball, and a one-line credit to Chen, Mountford &
  Sellen (1988), the paper the trackball code cites.
- licenses/sgi-trackball.txt: the notice verbatim from Coot's
  src/graphics-info-trackball.cc (hand-kept, listed in COLLECT.sh).
- THIRD_PARTY_NOTICES.md: row for the adapted file.
- ACKNOWLEDGEMENT.md: the trackball sentence names Coot's licence, the
  original SGI authors and the 1988 paper (DOI verified on Crossref).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HVeDQrPqZ52Tp6rzzZGxf3
(cherry picked from commit b02772c2182a80a25f648ccb19e488bc7113c604)
(cherry picked from commit d729b7c6d4)
This commit is contained in:
leonarski_f committed 2026-11-24 17:25:23 +01:00
1 parent 7533031a8a
commit 9bfc376e93
5 files changed
+66 -5

No files matched your search

+3 -1
View File
@@ -76,8 +76,10 @@ These live in the source tree (see the path) rather than being fetched; traccc,
| [traccc (ACTS)](https://github.com/acts-project/traccc) | `image_analysis/spot_finding/StrongPixelSet.cpp`, `SpotExtractorGPU.cu` | CERN, for the benefit of the ACTS project | MPL-2.0 | [traccc.txt](licenses/traccc.txt) |
| [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`, `ModelMaskGPU.cu`, `ModelStructureFactorsGPU.cpp`, `ModelDensityMetal.metal`, `AtomGradientMetal.metal` | Global Phasing Ltd. | MPL-2.0 | [gemmi.txt](licenses/gemmi.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) |
| [dxtbx](https://github.com/cctbx/dxtbx) (followed) | `reader/SMV.cpp` | Diamond Light Source, Lawrence Berkeley National Laboratory and the Science and Technology Facilities Council | BSD-3-Clause | [dxtbx.txt](licenses/dxtbx.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) |
| [wingetopt](https://github.com/alex85k/wingetopt) | `tools/wingetopt/` | Todd C. Miller; The NetBSD Foundation | ISC AND BSD-2-Clause | [wingetopt.txt](licenses/wingetopt.txt) |
+5 -1
View File
@@ -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
@@ -1,9 +1,21 @@
/*
* SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
* 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.
+4 -2
View File
@@ -99,6 +99,8 @@ copy_license NVIDIA-CUDA-EULA.txt \
/usr/local/cuda/EULA.txt /usr/local/cuda-12.8/EULA.txt
# dxtbx.txt (followed by reader/SMV.cpp; dxtbx's LICENSE.txt, BSD-3-Clause) is kept by hand.
# hpcn-uam.txt (fpga/hls/icmp.cpp, ip_header_checksum.h) and stb_sprintf.txt (gemmi_gph/stb/stb_sprintf.h)
# 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, dxtbx.txt, traccc.txt, rapidjson.txt, hpcn-uam.txt, stb_sprintf.txt, Qt6-NOTICE.txt and NVIDIA-CUDA-NOTICE.txt are maintained by hand."
echo "Done. base64-macaron.txt, dxtbx.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."
+41
View File
@@ -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.