comparison Applications/Samples/SingleFrameApplication.h @ 377:8eb4fe74000f

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 05 Nov 2018 16:18:27 +0100
parents 70256a53ff21
children 20f149669c1f
comparison
equal deleted inserted replaced
376:70256a53ff21 377:8eb4fe74000f
185 void OnMainWidgetGeometryReady(const ILayerSource::GeometryReadyMessage& message) 185 void OnMainWidgetGeometryReady(const ILayerSource::GeometryReadyMessage& message)
186 { 186 {
187 // Once the geometry of the series is downloaded from Orthanc, 187 // Once the geometry of the series is downloaded from Orthanc,
188 // display its middle slice, and adapt the viewport to fit this 188 // display its middle slice, and adapt the viewport to fit this
189 // slice 189 // slice
190 if (source_ == &message.origin_) 190 if (source_ == &message.GetOrigin())
191 { 191 {
192 SetSlice(source_->GetSliceCount() / 2); 192 SetSlice(source_->GetSliceCount() / 2);
193 } 193 }
194 194
195 GetMainWidget().FitContent(); 195 GetMainWidget().FitContent();