comparison Applications/Samples/SimpleViewerApplicationSingleFile.h @ 330:7a364e44fbb4 am-2

renamed SetDefaultView in FitContent
author am@osimis.io
date Wed, 17 Oct 2018 12:45:52 +0200
parents 8716176ff7f0
children c34784e5f299
comparison
equal deleted inserted replaced
329:b10dfdb96866 330:7a364e44fbb4
161 IStatusBar* statusBar) 161 IStatusBar* statusBar)
162 { 162 {
163 switch (keyChar) 163 switch (keyChar)
164 { 164 {
165 case 's': 165 case 's':
166 widget.SetDefaultView(); 166 widget.FitContent();
167 break; 167 break;
168 168
169 default: 169 default:
170 break; 170 break;
171 } 171 }
373 orthancApiClient_->GetJsonAsync("/studies/" + studyId, new Callable<SimpleViewerApplication, OrthancApiClient::JsonResponseReadyMessage>(*this, &SimpleViewerApplication::OnStudyReceived)); 373 orthancApiClient_->GetJsonAsync("/studies/" + studyId, new Callable<SimpleViewerApplication, OrthancApiClient::JsonResponseReadyMessage>(*this, &SimpleViewerApplication::OnStudyReceived));
374 } 374 }
375 375
376 void OnWidgetGeometryChanged(const LayerWidget::GeometryChangedMessage& message) 376 void OnWidgetGeometryChanged(const LayerWidget::GeometryChangedMessage& message)
377 { 377 {
378 message.origin_.SetDefaultView(); 378 message.origin_.FitContent();
379 } 379 }
380 380
381 void SelectSeriesInMainViewport(const std::string& seriesId) 381 void SelectSeriesInMainViewport(const std::string& seriesId)
382 { 382 {
383 smartLoader_->SetFrameInWidget(*mainWidget_, 0, instancesIdsPerSeriesId_[seriesId][0], 0); 383 smartLoader_->SetFrameInWidget(*mainWidget_, 0, instancesIdsPerSeriesId_[seriesId][0], 0);