Mercurial > hg > orthanc-stone
comparison Framework/Viewport/ViewportBase.cpp @ 1055:af456106576c
moving GetCanvasIdentifier from IViewport to WebAssemblyViewport
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Oct 2019 16:07:58 +0200 |
parents | 32b403a47b19 |
children | 6dd90b8d1589 |
comparison
equal
deleted
inserted
replaced
1054:3c9529edf5fd | 1055:af456106576c |
---|---|
24 | 24 |
25 #include <boost/make_shared.hpp> | 25 #include <boost/make_shared.hpp> |
26 | 26 |
27 namespace OrthancStone | 27 namespace OrthancStone |
28 { | 28 { |
29 ViewportBase::ViewportBase(const std::string& identifier) : | 29 ViewportBase::ViewportBase() : |
30 identifier_(identifier), | |
31 scene_(boost::make_shared<Scene2D>()) | 30 scene_(boost::make_shared<Scene2D>()) |
32 { | 31 { |
33 } | 32 } |
34 | 33 |
35 | 34 |
36 ViewportBase::ViewportBase(const std::string& identifier, | 35 ViewportBase::ViewportBase(boost::shared_ptr<Scene2D>& scene) : |
37 boost::shared_ptr<Scene2D>& scene) : | |
38 identifier_(identifier), | |
39 scene_(scene) | 36 scene_(scene) |
40 { | 37 { |
41 if (scene.get() == NULL) | 38 if (scene.get() == NULL) |
42 { | 39 { |
43 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer); | 40 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer); |