annotate Applications/Samples/CtPetDoseStructFusion/Wasm/CtPetDoseStructFusionWasmApplicationAdapter.h @ 540:7428c5dfa5df ct-pet-dose-struct

Initial commit non working app
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 19 Mar 2019 16:29:07 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
540
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
1 /**
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
2 * Stone of Orthanc
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
5 * Copyright (C) 2017-2019 Osimis S.A., Belgium
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
6 *
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
7 * This program is free software: you can redistribute it and/or
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
8 * modify it under the terms of the GNU Affero General Public License
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
9 * as published by the Free Software Foundation, either version 3 of
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
10 * the License, or (at your option) any later version.
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
11 *
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful, but
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
15 * Affero General Public License for more details.
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
16 *
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
17 * You should have received a copy of the GNU Affero General Public License
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
19 **/
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
20
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
21 #pragma once
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
22
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
23 #include <string>
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
24 #include <Framework/Messages/IObserver.h>
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
25 #include <Platforms/Wasm/WasmPlatformApplicationAdapter.h>
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
26
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
27 #include "../CtPetDoseStructFusionApplication.h"
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
28
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
29 namespace CtPetDoseStructFusion {
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
30
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
31 class CtPetDoseStructFusionWasmApplicationAdapter : public WasmPlatformApplicationAdapter
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
32 {
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
33 CtPetDoseStructFusionApplication& viewerApplication_;
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
34
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
35 public:
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
36 CtPetDoseStructFusionWasmApplicationAdapter(MessageBroker& broker, CtPetDoseStructFusionApplication& application);
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
37
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
38 private:
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
39 void OnStatusUpdated(const CtPetDoseStructFusionApplication::StatusUpdatedMessage& message);
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
40
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
41 };
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
42
7428c5dfa5df Initial commit non working app
Benjamin Golinvaux <bgo@osimis.io>
parents:
diff changeset
43 }