comparison Framework/Scene2DViewport/LayerHolder.cpp @ 949:32eaf4929b08 toa2019081301

OrthancMultiframeVolumeLoader and OrthancSeriesVolumeProgressiveLoader now implement IGeometryProvider so that the geometry reference can be switched (CT or DOSE, for instance) + VolumeImageGeometry::SetSize renamed to VolumeImageGeometry::SetSizeInVoxels + prevent text layer update if text or properties do not change + a few stream operator<< for debug (Vector, Matrix,...) + fixed memory access aligment issues in ImageBuffer3D::ExtractSagittalSlice + fix for wrong screen Y offset of mpr slices in DicomVolumeImageMPRSlicer.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 13 Aug 2019 16:01:05 +0200
parents 52b1c6ff10c5
children f3bb9a6dd949 2d8ab34c8c91
comparison
equal deleted inserted replaced
948:141cc19e6b7d 949:32eaf4929b08
79 boost::shared_ptr<ViewportController> controller = controllerW_.lock(); 79 boost::shared_ptr<ViewportController> controller = controllerW_.lock();
80 ORTHANC_ASSERT(controller.get() != 0, "Zombie attack!"); 80 ORTHANC_ASSERT(controller.get() != 0, "Zombie attack!");
81 return controller->GetScene(); 81 return controller->GetScene();
82 } 82 }
83 83
84 void LayerHolder::DeleteLayersIfNeeded()
85 {
86 if (baseLayerIndex_ != -1)
87 DeleteLayers();
88 }
89
84 void LayerHolder::DeleteLayers() 90 void LayerHolder::DeleteLayers()
85 { 91 {
86 for (int i = 0; i < textLayerCount_ + polylineLayerCount_; ++i) 92 for (int i = 0; i < textLayerCount_ + polylineLayerCount_; ++i)
87 { 93 {
88 ORTHANC_ASSERT(GetScene().HasLayer(baseLayerIndex_ + i), "No layer"); 94 ORTHANC_ASSERT(GetScene().HasLayer(baseLayerIndex_ + i), "No layer");