comparison Applications/Samples/SingleFrameEditorApplication.h @ 1070:d7887f88710f broker

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 15 Oct 2019 21:28:46 +0200
parents b537002f83a9
children 998d9e4402e0
comparison
equal deleted inserted replaced
1069:5d1b0d2f4b15 1070:d7887f88710f
343 tags.SetValue(Orthanc::DICOM_TAG_STUDY_ID, "STUDY", false); 343 tags.SetValue(Orthanc::DICOM_TAG_STUDY_ID, "STUDY", false);
344 tags.SetValue(Orthanc::DICOM_TAG_VIEW_POSITION, "", false); 344 tags.SetValue(Orthanc::DICOM_TAG_VIEW_POSITION, "", false);
345 345
346 if (context_ != NULL) 346 if (context_ != NULL)
347 { 347 {
348 widget.GetScene().ExportDicom(context_->GetOrthancApiClient(), 348 widget.GetScene().ExportDicom(*context_->GetOrthancApiClient(),
349 tags, std::string(), 0.1, 0.1, widget.IsInverted(), 349 tags, std::string(), 0.1, 0.1, widget.IsInverted(),
350 widget.GetInterpolation(), EXPORT_USING_PAM); 350 widget.GetInterpolation(), EXPORT_USING_PAM);
351 } 351 }
352 352
353 break; 353 break;
482 482
483 fontRegistry_.AddFromResource(Orthanc::EmbeddedResources::FONT_UBUNTU_MONO_BOLD_16); 483 fontRegistry_.AddFromResource(Orthanc::EmbeddedResources::FONT_UBUNTU_MONO_BOLD_16);
484 484
485 scene_.reset(new RadiographyScene); 485 scene_.reset(new RadiographyScene);
486 486
487 RadiographyLayer& dicomLayer = scene_->LoadDicomFrame(context->GetOrthancApiClient(), instance, 0, false, NULL); 487 RadiographyLayer& dicomLayer = scene_->LoadDicomFrame(*context->GetOrthancApiClient(), instance, 0, false, NULL);
488 //scene_->LoadDicomFrame(instance, frame, false); //.SetPan(200, 0); 488 //scene_->LoadDicomFrame(instance, frame, false); //.SetPan(200, 0);
489 // = scene_->LoadDicomFrame(context->GetOrthancApiClient(), "61f3143e-96f34791-ad6bbb8d-62559e75-45943e1b", 0, false, NULL); 489 // = scene_->LoadDicomFrame(context->GetOrthancApiClient(), "61f3143e-96f34791-ad6bbb8d-62559e75-45943e1b", 0, false, NULL);
490 490
491 #if !defined(ORTHANC_ENABLE_WASM) || ORTHANC_ENABLE_WASM != 1 491 #if !defined(ORTHANC_ENABLE_WASM) || ORTHANC_ENABLE_WASM != 1
492 Orthanc::HttpClient::ConfigureSsl(true, "/etc/ssl/certs/ca-certificates.crt"); 492 Orthanc::HttpClient::ConfigureSsl(true, "/etc/ssl/certs/ca-certificates.crt");
512 RadiographyLayer& layer = scene_->LoadTestBlock(100, 50, NULL); 512 RadiographyLayer& layer = scene_->LoadTestBlock(100, 50, NULL);
513 layer.SetResizeable(true); 513 layer.SetResizeable(true);
514 layer.SetPan(0, 200); 514 layer.SetPan(0, 200);
515 } 515 }
516 516
517 517 boost::shared_ptr<RadiographyWidget> widget(new RadiographyWidget(scene_, "main-widget"));
518 mainWidget_ = new RadiographyWidget(scene_, "main-widget"); 518 widget->SetTransmitMouseOver(true);
519 mainWidget_->SetTransmitMouseOver(true); 519 widget->SetInteractor(interactor_);
520 mainWidget_->SetInteractor(interactor_); 520 SetCentralWidget(widget);
521 521
522 //scene_->SetWindowing(128, 256); 522 //scene_->SetWindowing(128, 256);
523 } 523 }
524 }; 524 };
525 } 525 }