comparison Applications/Samples/SingleFrameEditorApplication.h @ 428:751fb354149e am-vsol-upgrade

ability to change the scene of the RadiographyWidget
author am@osimis.io
date Wed, 28 Nov 2018 10:44:28 +0100
parents c23df8b3433b
children b85f635f1eb5
comparison
equal deleted inserted replaced
426:660fe6f6bf4a 428:751fb354149e
301 tags.SetValue(Orthanc::DICOM_TAG_VIEW_POSITION, "", false); 301 tags.SetValue(Orthanc::DICOM_TAG_VIEW_POSITION, "", false);
302 302
303 if (context_ != NULL) 303 if (context_ != NULL)
304 { 304 {
305 widget.GetScene().ExportDicom(context_->GetOrthancApiClient(), 305 widget.GetScene().ExportDicom(context_->GetOrthancApiClient(),
306 tags, 0.1, 0.1, widget.IsInverted(), 306 tags, std::string(), 0.1, 0.1, widget.IsInverted(),
307 widget.GetInterpolation(), EXPORT_USING_PAM); 307 widget.GetInterpolation(), EXPORT_USING_PAM);
308 } 308 }
309 309
310 break; 310 break;
311 } 311 }
378 class SingleFrameEditorApplication : 378 class SingleFrameEditorApplication :
379 public SampleSingleCanvasApplicationBase, 379 public SampleSingleCanvasApplicationBase,
380 public IObserver 380 public IObserver
381 { 381 {
382 private: 382 private:
383 std::auto_ptr<RadiographyScene> scene_; 383 boost::shared_ptr<RadiographyScene> scene_;
384 RadiographyEditorInteractor interactor_; 384 RadiographyEditorInteractor interactor_;
385 385
386 public: 386 public:
387 SingleFrameEditorApplication(MessageBroker& broker) : 387 SingleFrameEditorApplication(MessageBroker& broker) :
388 IObserver(broker), 388 IObserver(broker),
463 layer.SetResizeable(true); 463 layer.SetResizeable(true);
464 layer.SetPan(0, 200); 464 layer.SetPan(0, 200);
465 } 465 }
466 466
467 467
468 mainWidget_ = new RadiographyWidget(GetBroker(), *scene_, "main-widget"); 468 mainWidget_ = new RadiographyWidget(GetBroker(), scene_, "main-widget");
469 mainWidget_->SetTransmitMouseOver(true); 469 mainWidget_->SetTransmitMouseOver(true);
470 mainWidget_->SetInteractor(interactor_); 470 mainWidget_->SetInteractor(interactor_);
471 471
472 //scene_->SetWindowing(128, 256); 472 //scene_->SetWindowing(128, 256);
473 } 473 }