Mercurial > hg > orthanc-stone
annotate Applications/Samples/Common/RtViewerApp.cpp @ 1689:fad38c4525f9
nicer modal for user preferences
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Nov 2020 17:07:32 +0100 |
parents | fb5e620430ae |
children | 9ac2a65d4172 |
rev | line source |
---|---|
1404
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
1 /** |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
2 * Stone of Orthanc |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
4 * Department, University Hospital of Liege, Belgium |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
6 * |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
7 * This program is free software: you can redistribute it and/or |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
8 * modify it under the terms of the GNU Affero General Public License |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
9 * as published by the Free Software Foundation, either version 3 of |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
10 * the License, or (at your option) any later version. |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
11 * |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
12 * This program is distributed in the hope that it will be useful, but |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
13 * WITHOUT ANY WARRANTY; without even the implied warranty of |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
15 * Affero General Public License for more details. |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
16 * |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
17 * You should have received a copy of the GNU Affero General Public License |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
19 **/ |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
20 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
21 // Sample app |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
22 #include "RtViewerApp.h" |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
23 #include "RtViewerView.h" |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
24 #include "SampleHelpers.h" |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
25 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
26 // Stone of Orthanc |
1542 | 27 #include "../../../OrthancStone/Sources/StoneInitialization.h" |
28 #include "../../../OrthancStone/Sources/Scene2D/CairoCompositor.h" | |
29 #include "../../../OrthancStone/Sources/Scene2D/ColorTextureSceneLayer.h" | |
30 #include "../../../OrthancStone/Sources/Scene2D/OpenGLCompositor.h" | |
31 #include "../../../OrthancStone/Sources/Scene2D/PanSceneTracker.h" | |
32 #include "../../../OrthancStone/Sources/Scene2D/ZoomSceneTracker.h" | |
33 #include "../../../OrthancStone/Sources/Scene2D/RotateSceneTracker.h" | |
34 #include "../../../OrthancStone/Sources/Scene2DViewport/UndoStack.h" | |
35 #include "../../../OrthancStone/Sources/Scene2DViewport/CreateLineMeasureTracker.h" | |
36 #include "../../../OrthancStone/Sources/Scene2DViewport/CreateAngleMeasureTracker.h" | |
37 #include "../../../OrthancStone/Sources/Scene2DViewport/IFlexiblePointerTracker.h" | |
38 #include "../../../OrthancStone/Sources/Scene2DViewport/MeasureTool.h" | |
39 #include "../../../OrthancStone/Sources/Scene2DViewport/PredeclaredTypes.h" | |
40 #include "../../../OrthancStone/Sources/Volumes/VolumeSceneLayerSource.h" | |
41 #include "../../../OrthancStone/Sources/Oracle/GetOrthancWebViewerJpegCommand.h" | |
42 #include "../../../OrthancStone/Sources/Scene2D/GrayscaleStyleConfigurator.h" | |
43 #include "../../../OrthancStone/Sources/Scene2D/LookupTableStyleConfigurator.h" | |
44 #include "../../../OrthancStone/Sources/Volumes/DicomVolumeImageMPRSlicer.h" | |
45 #include "../../../OrthancStone/Sources/StoneException.h" | |
1404
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
46 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
47 // Orthanc |
1457 | 48 #include <Logging.h> |
49 #include <OrthancException.h> | |
1404
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
50 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
51 // System |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
52 #include <boost/shared_ptr.hpp> |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
53 #include <boost/weak_ptr.hpp> |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
54 #include <boost/make_shared.hpp> |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
55 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
56 #include <stdio.h> |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
57 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
58 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
59 namespace OrthancStone |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
60 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
61 void RtViewerApp::InvalidateAllViewports() |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
62 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
63 for (size_t i = 0; i < views_.size(); ++i) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
64 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
65 views_[i]->Invalidate(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
66 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
67 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
68 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
69 const VolumeImageGeometry& RtViewerApp::GetMainGeometry() |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
70 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
71 ORTHANC_ASSERT(geometryProvider_.get() != NULL); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
72 ORTHANC_ASSERT(geometryProvider_->HasGeometry()); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
73 const VolumeImageGeometry& geometry = geometryProvider_->GetImageGeometry(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
74 return geometry; |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
75 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
76 |
1573 | 77 RtViewerApp::RtViewerApp() : |
78 // Create the volumes that will be filled later on | |
79 ctVolume_(boost::make_shared<DicomVolumeImage>()), | |
1574 | 80 doseVolume_(boost::make_shared<DicomVolumeImage>()), |
81 undoStack_(new UndoStack) | |
1404
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
82 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
83 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
84 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
85 boost::shared_ptr<RtViewerApp> RtViewerApp::Create() |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
86 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
87 boost::shared_ptr<RtViewerApp> thisOne(new RtViewerApp()); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
88 return thisOne; |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
89 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
90 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
91 void RtViewerApp::DisableTracker() |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
92 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
93 if (activeTracker_) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
94 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
95 activeTracker_->Cancel(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
96 activeTracker_.reset(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
97 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
98 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
99 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
100 void RtViewerApp::CreateView(const std::string& canvasId, VolumeProjection projection) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
101 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
102 boost::shared_ptr<RtViewerView> |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
103 view(new RtViewerView(shared_from_this(), canvasId, projection)); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
104 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
105 view->RegisterMessages(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
106 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
107 view->CreateLayers(ctLoader_, doseLoader_, doseVolume_, rtstructLoader_); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
108 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
109 views_.push_back(view); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
110 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
111 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
112 void RtViewerApp::CreateLoaders() |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
113 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
114 // the viewport hosts the scene |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
115 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
116 // "true" means use progressive quality (jpeg 50 --> jpeg 90 --> 16-bit raw) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
117 // "false" means only using hi quality |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
118 // TODO: add flag for quality |
1525
31b0449a163a
JPEG mode re-enabled in MPR RT viewer + some docs
Benjamin Golinvaux <bgo@osimis.io>
parents:
1523
diff
changeset
|
119 ctLoader_ = OrthancSeriesVolumeProgressiveLoader::Create(*loadersContext_, ctVolume_, true); |
1448
dad6a2fe6fc7
Added setters to control relative priority of CT series loader requests.
Benjamin Golinvaux <bgo@osimis.io>
parents:
1427
diff
changeset
|
120 |
dad6a2fe6fc7
Added setters to control relative priority of CT series loader requests.
Benjamin Golinvaux <bgo@osimis.io>
parents:
1427
diff
changeset
|
121 // better priority for CT vs dose and struct |
dad6a2fe6fc7
Added setters to control relative priority of CT series loader requests.
Benjamin Golinvaux <bgo@osimis.io>
parents:
1427
diff
changeset
|
122 ctLoader_->SetSchedulingPriority(-100); |
dad6a2fe6fc7
Added setters to control relative priority of CT series loader requests.
Benjamin Golinvaux <bgo@osimis.io>
parents:
1427
diff
changeset
|
123 |
1404
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
124 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
125 // we need to store the CT loader to ask from geometry details later on when geometry is loaded |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
126 geometryProvider_ = ctLoader_; |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
127 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
128 doseLoader_ = OrthancMultiframeVolumeLoader::Create(*loadersContext_, doseVolume_); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
129 rtstructLoader_ = DicomStructureSetLoader::Create(*loadersContext_); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
130 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
131 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
132 /** |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
133 Register for notifications issued by the loaders |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
134 */ |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
135 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
136 Register<DicomVolumeImage::GeometryReadyMessage> |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
137 (*ctLoader_, &RtViewerApp::HandleGeometryReady); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
138 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
139 Register<OrthancSeriesVolumeProgressiveLoader::VolumeImageReadyInHighQuality> |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
140 (*ctLoader_, &RtViewerApp::HandleCTLoaded); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
141 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
142 Register<DicomVolumeImage::ContentUpdatedMessage> |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
143 (*ctLoader_, &RtViewerApp::HandleCTContentUpdated); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
144 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
145 Register<DicomVolumeImage::ContentUpdatedMessage> |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
146 (*doseLoader_, &RtViewerApp::HandleDoseLoaded); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
147 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
148 Register<DicomStructureSetLoader::StructuresReady> |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
149 (*rtstructLoader_, &RtViewerApp::HandleStructuresReady); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
150 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
151 Register<DicomStructureSetLoader::StructuresUpdated> |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
152 (*rtstructLoader_, &RtViewerApp::HandleStructuresUpdated); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
153 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
154 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
155 void RtViewerApp::StartLoaders() |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
156 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
157 ORTHANC_ASSERT(HasArgument("ctseries") && HasArgument("rtdose") && HasArgument("rtstruct")); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
158 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
159 LOG(INFO) << "About to load:"; |
1522
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
160 |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
161 if (GetArgument("ctseries") == "") |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
162 { |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
163 LOG(INFO) << " CT : <unspecified>"; |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
164 } |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
165 else |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
166 { |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
167 LOG(INFO) << " CT : " << GetArgument("ctseries"); |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
168 ctLoader_->LoadSeries(GetArgument("ctseries")); |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
169 } |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
170 |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
171 if (GetArgument("rtdose") == "") |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
172 { |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
173 LOG(INFO) << " RTDOSE : <unspecified>"; |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
174 } |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
175 else |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
176 { |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
177 LOG(INFO) << " RTDOSE : " << GetArgument("rtdose"); |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
178 doseLoader_->LoadInstance(GetArgument("rtdose")); |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
179 } |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
180 |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
181 if (GetArgument("rtstruct") == "") |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
182 { |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
183 LOG(INFO) << " RTSTRUCT : : <unspecified>"; |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
184 } |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
185 else |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
186 { |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
187 LOG(INFO) << " RTSTRUCT : : " << GetArgument("rtstruct"); |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
188 rtstructLoader_->LoadInstanceFullVisibility(GetArgument("rtstruct")); |
fa30f275cd80
Removed requirement for a non-empty RTDOSE
Benjamin Golinvaux <bgo@osimis.io>
parents:
1512
diff
changeset
|
189 } |
1404
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
190 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
191 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
192 void RtViewerApp::HandleGeometryReady(const DicomVolumeImage::GeometryReadyMessage& message) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
193 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
194 for (size_t i = 0; i < views_.size(); ++i) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
195 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
196 views_[i]->RetrieveGeometry(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
197 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
198 FitContent(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
199 UpdateLayersInAllViews(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
200 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
201 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
202 void RtViewerApp::FitContent() |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
203 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
204 for (size_t i = 0; i < views_.size(); ++i) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
205 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
206 views_[i]->FitContent(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
207 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
208 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
209 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
210 void RtViewerApp::UpdateLayersInAllViews() |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
211 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
212 for (size_t i = 0; i < views_.size(); ++i) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
213 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
214 views_[i]->UpdateLayers(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
215 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
216 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
217 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
218 void RtViewerApp::HandleCTLoaded(const OrthancSeriesVolumeProgressiveLoader::VolumeImageReadyInHighQuality& message) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
219 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
220 for (size_t i = 0; i < views_.size(); ++i) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
221 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
222 views_[i]->RetrieveGeometry(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
223 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
224 UpdateLayersInAllViews(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
225 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
226 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
227 void RtViewerApp::HandleCTContentUpdated(const DicomVolumeImage::ContentUpdatedMessage& message) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
228 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
229 UpdateLayersInAllViews(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
230 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
231 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
232 void RtViewerApp::HandleDoseLoaded(const DicomVolumeImage::ContentUpdatedMessage& message) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
233 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
234 //TODO: compute dose extent, with outlier rejection |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
235 UpdateLayersInAllViews(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
236 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
237 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
238 void RtViewerApp::HandleStructuresReady(const DicomStructureSetLoader::StructuresReady& message) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
239 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
240 UpdateLayersInAllViews(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
241 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
242 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
243 void RtViewerApp::HandleStructuresUpdated(const DicomStructureSetLoader::StructuresUpdated& message) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
244 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
245 UpdateLayersInAllViews(); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
246 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
247 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
248 void RtViewerApp::SetArgument(const std::string& key, const std::string& value) |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
249 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
250 if (key == "loglevel") |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
251 OrthancStoneHelpers::SetLogLevel(value); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
252 else |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
253 arguments_[key] = value; |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
254 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
255 |
1427 | 256 std::string RtViewerApp::GetArgument(const std::string& key) const |
1404
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
257 { |
1427 | 258 std::map<std::string, std::string>::const_iterator found = arguments_.find(key); |
259 if (found == arguments_.end()) | |
260 { | |
261 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); | |
262 } | |
263 else | |
264 { | |
265 return found->second; | |
266 } | |
1404
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
267 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
268 |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
269 bool RtViewerApp::HasArgument(const std::string& key) const |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
270 { |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
271 return (arguments_.find(key) != arguments_.end()); |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
272 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
273 } |
3e644f6fadd4
Three-viewport is now OK in SDL and Wasm
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff
changeset
|
274 |