Mercurial > hg > orthanc-stone
changeset 2214:b66c827a4a5c
removed pointless method DicomStructureSet::GetStructureCenter()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Apr 2025 15:40:50 +0200 (5 weeks ago) |
parents | 9672a22d013d |
children | d888cc7d7820 |
files | Applications/StoneWebViewer/WebAssembly/IStoneWebViewerContext.h Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp OrthancStone/Sources/Toolbox/DicomStructureSet.cpp OrthancStone/Sources/Toolbox/DicomStructureSet.h |
diffstat | 4 files changed, 9 insertions(+), 36 deletions(-) [+] |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebAssembly/IStoneWebViewerContext.h Tue Apr 22 14:50:34 2025 +0200 +++ b/Applications/StoneWebViewer/WebAssembly/IStoneWebViewerContext.h Tue Apr 22 15:40:50 2025 +0200 @@ -28,6 +28,15 @@ #include <Images/ImageAccessor.h> +static const int LAYER_TEXTURE = 0; +static const int LAYER_OVERLAY = 1; +static const int LAYER_ORIENTATION_MARKERS = 2; +static const int LAYER_REFERENCE_LINES = 3; +static const int LAYER_ANNOTATIONS_STONE = 5; +static const int LAYER_ANNOTATIONS_OSIRIX = 4; +static const int LAYER_STRUCTURED_REPORT = 6; + + #define DISPATCH_JAVASCRIPT_EVENT(name) \ EM_ASM( \ const customEvent = document.createEvent("CustomEvent"); \
--- a/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp Tue Apr 22 14:50:34 2025 +0200 +++ b/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp Tue Apr 22 15:40:50 2025 +0200 @@ -73,14 +73,6 @@ static const double PI = boost::math::constants::pi<double>(); -static const int LAYER_TEXTURE = 0; -static const int LAYER_OVERLAY = 1; -static const int LAYER_ORIENTATION_MARKERS = 2; -static const int LAYER_REFERENCE_LINES = 3; -static const int LAYER_ANNOTATIONS_STONE = 5; -static const int LAYER_ANNOTATIONS_OSIRIX = 4; -static const int LAYER_STRUCTURED_REPORT = 6; - #if !defined(STONE_WEB_VIEWER_EXPORT) // We are not running ParseWebAssemblyExports.py, but we're compiling the wasm
--- a/OrthancStone/Sources/Toolbox/DicomStructureSet.cpp Tue Apr 22 14:50:34 2025 +0200 +++ b/OrthancStone/Sources/Toolbox/DicomStructureSet.cpp Tue Apr 22 15:40:50 2025 +0200 @@ -722,32 +722,6 @@ #endif - Vector DicomStructureSet::GetStructureCenter(size_t index) const - { - const Structure& structure = GetStructure(index); - - Vector center; - LinearAlgebra::AssignVector(center, 0, 0, 0); - if (structure.polygons_.empty()) - { - return center; - } - - double n = static_cast<double>(structure.polygons_.size()); - - for (Polygons::const_iterator polygon = structure.polygons_.begin(); - polygon != structure.polygons_.end(); ++polygon) - { - if (!polygon->GetPoints().empty()) - { - center += polygon->GetPoints().front() / n; - } - } - - return center; - } - - const std::string& DicomStructureSet::GetStructureName(size_t index) const { return GetStructure(index).name_;
--- a/OrthancStone/Sources/Toolbox/DicomStructureSet.h Tue Apr 22 14:50:34 2025 +0200 +++ b/OrthancStone/Sources/Toolbox/DicomStructureSet.h Tue Apr 22 15:40:50 2025 +0200 @@ -182,8 +182,6 @@ return structures_.size(); } - Vector GetStructureCenter(size_t index) const; - const std::string& GetStructureName(size_t index) const; const std::string& GetStructureInterpretation(size_t index) const;