Mercurial > hg > orthanc-stone
comparison Applications/Samples/SingleFrameEditorApplication.h @ 418:c23df8b3433b
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 15 Nov 2018 18:32:48 +0100 |
parents | aee3d7941c9b |
children | f87f28624b96 751fb354149e b70e9be013e4 |
comparison
equal
deleted
inserted
replaced
417:aee3d7941c9b | 418:c23df8b3433b |
---|---|
30 #include "../../Framework/Radiography/RadiographyScene.h" | 30 #include "../../Framework/Radiography/RadiographyScene.h" |
31 #include "../../Framework/Radiography/RadiographySceneCommand.h" | 31 #include "../../Framework/Radiography/RadiographySceneCommand.h" |
32 #include "../../Framework/Radiography/RadiographyWidget.h" | 32 #include "../../Framework/Radiography/RadiographyWidget.h" |
33 #include "../../Framework/Radiography/RadiographyWindowingTracker.h" | 33 #include "../../Framework/Radiography/RadiographyWindowingTracker.h" |
34 | 34 |
35 #include <Core/HttpClient.h> | |
35 #include <Core/Images/FontRegistry.h> | 36 #include <Core/Images/FontRegistry.h> |
36 #include <Core/Logging.h> | 37 #include <Core/Logging.h> |
37 #include <Core/OrthancException.h> | 38 #include <Core/OrthancException.h> |
38 | 39 |
39 | 40 |
443 fonts.AddFromResource(Orthanc::EmbeddedResources::FONT_UBUNTU_MONO_BOLD_16); | 444 fonts.AddFromResource(Orthanc::EmbeddedResources::FONT_UBUNTU_MONO_BOLD_16); |
444 | 445 |
445 scene_.reset(new RadiographyScene(GetBroker())); | 446 scene_.reset(new RadiographyScene(GetBroker())); |
446 //scene_->LoadDicomFrame(instance, frame, false); //.SetPan(200, 0); | 447 //scene_->LoadDicomFrame(instance, frame, false); //.SetPan(200, 0); |
447 scene_->LoadDicomFrame(context->GetOrthancApiClient(), "61f3143e-96f34791-ad6bbb8d-62559e75-45943e1b", 0, false); | 448 scene_->LoadDicomFrame(context->GetOrthancApiClient(), "61f3143e-96f34791-ad6bbb8d-62559e75-45943e1b", 0, false); |
449 | |
450 #if !defined(ORTHANC_ENABLE_WASM) || ORTHANC_ENABLE_WASM != 1 | |
451 Orthanc::HttpClient::ConfigureSsl(true, "/etc/ssl/certs/ca-certificates.crt"); | |
452 #endif | |
453 | |
448 //scene_->LoadDicomWebFrame(context->GetWebService()); | 454 //scene_->LoadDicomWebFrame(context->GetWebService()); |
449 | 455 |
450 { | 456 { |
451 RadiographyLayer& layer = scene_->LoadText(fonts.GetFont(0), "Hello\nworld"); | 457 RadiographyLayer& layer = scene_->LoadText(fonts.GetFont(0), "Hello\nworld"); |
452 layer.SetResizeable(true); | 458 layer.SetResizeable(true); |