Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyScene.cpp @ 1222:21c2b0eee53c broker
deprecating MessageHandler
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 07 Dec 2019 18:18:07 +0100 |
parents | b519c1c878f1 |
children | 37bc7f115f81 |
comparison
equal
deleted
inserted
replaced
1218:6f3f1ef347a3 | 1222:21c2b0eee53c |
---|---|
423 Deprecated::IWebService::HttpHeaders headers; | 423 Deprecated::IWebService::HttpHeaders headers; |
424 std::string uri = "/instances/" + instance + "/tags"; | 424 std::string uri = "/instances/" + instance + "/tags"; |
425 | 425 |
426 orthanc.GetBinaryAsync( | 426 orthanc.GetBinaryAsync( |
427 uri, headers, | 427 uri, headers, |
428 new Callable<RadiographyScene, Deprecated::OrthancApiClient::BinaryResponseReadyMessage> | 428 new Deprecated::DeprecatedCallable<RadiographyScene, Deprecated::OrthancApiClient::BinaryResponseReadyMessage> |
429 (GetSharedObserver(), &RadiographyScene::OnTagsReceived), NULL, | 429 (GetSharedObserver(), &RadiographyScene::OnTagsReceived), NULL, |
430 new Orthanc::SingleValueObject<size_t>(layer.GetIndex())); | 430 new Orthanc::SingleValueObject<size_t>(layer.GetIndex())); |
431 } | 431 } |
432 | 432 |
433 { | 433 { |
442 std::string uri = ("/instances/" + instance + "/frames/" + | 442 std::string uri = ("/instances/" + instance + "/frames/" + |
443 boost::lexical_cast<std::string>(frame) + "/image-uint16"); | 443 boost::lexical_cast<std::string>(frame) + "/image-uint16"); |
444 | 444 |
445 orthanc.GetBinaryAsync( | 445 orthanc.GetBinaryAsync( |
446 uri, headers, | 446 uri, headers, |
447 new Callable<RadiographyScene, Deprecated::OrthancApiClient::BinaryResponseReadyMessage> | 447 new Deprecated::DeprecatedCallable<RadiographyScene, Deprecated::OrthancApiClient::BinaryResponseReadyMessage> |
448 (GetSharedObserver(), &RadiographyScene::OnFrameReceived), NULL, | 448 (GetSharedObserver(), &RadiographyScene::OnFrameReceived), NULL, |
449 new Orthanc::SingleValueObject<size_t>(layer.GetIndex())); | 449 new Orthanc::SingleValueObject<size_t>(layer.GetIndex())); |
450 } | 450 } |
451 | 451 |
452 return layer; | 452 return layer; |
782 | 782 |
783 ExportToCreateDicomRequest(createDicomRequestContent, dicomTags, parentOrthancId, pixelSpacingX, pixelSpacingY, invert, interpolation, usePam); | 783 ExportToCreateDicomRequest(createDicomRequestContent, dicomTags, parentOrthancId, pixelSpacingX, pixelSpacingY, invert, interpolation, usePam); |
784 | 784 |
785 orthanc.PostJsonAsyncExpectJson( | 785 orthanc.PostJsonAsyncExpectJson( |
786 "/tools/create-dicom", createDicomRequestContent, | 786 "/tools/create-dicom", createDicomRequestContent, |
787 new Callable<RadiographyScene, Deprecated::OrthancApiClient::JsonResponseReadyMessage> | 787 new Deprecated::DeprecatedCallable<RadiographyScene, Deprecated::OrthancApiClient::JsonResponseReadyMessage> |
788 (GetSharedObserver(), &RadiographyScene::OnDicomExported), | 788 (GetSharedObserver(), &RadiographyScene::OnDicomExported), |
789 NULL, NULL); | 789 NULL, NULL); |
790 | 790 |
791 } | 791 } |
792 | 792 |