Mercurial > hg > orthanc-stone
comparison Applications/Samples/SimpleViewer/SimpleViewerApplication.cpp @ 330:7a364e44fbb4 am-2
renamed SetDefaultView in FitContent
author | am@osimis.io |
---|---|
date | Wed, 17 Oct 2018 12:45:52 +0200 |
parents | 56b2e47d3c0c |
children | 8eb4fe74000f |
comparison
equal
deleted
inserted
replaced
329:b10dfdb96866 | 330:7a364e44fbb4 |
---|---|
164 orthancApiClient_->GetJsonAsync("/studies/" + studyId, new Callable<SimpleViewerApplication, OrthancApiClient::JsonResponseReadyMessage>(*this, &SimpleViewerApplication::OnStudyReceived)); | 164 orthancApiClient_->GetJsonAsync("/studies/" + studyId, new Callable<SimpleViewerApplication, OrthancApiClient::JsonResponseReadyMessage>(*this, &SimpleViewerApplication::OnStudyReceived)); |
165 } | 165 } |
166 | 166 |
167 void SimpleViewerApplication::OnWidgetGeometryChanged(const LayerWidget::GeometryChangedMessage& message) | 167 void SimpleViewerApplication::OnWidgetGeometryChanged(const LayerWidget::GeometryChangedMessage& message) |
168 { | 168 { |
169 message.origin_.SetDefaultView(); | 169 message.origin_.FitContent(); |
170 } | 170 } |
171 | 171 |
172 void SimpleViewerApplication::SelectSeriesInMainViewport(const std::string& seriesId) | 172 void SimpleViewerApplication::SelectSeriesInMainViewport(const std::string& seriesId) |
173 { | 173 { |
174 smartLoader_->SetFrameInWidget(*mainWidget_, 0, instancesIdsPerSeriesId_[seriesId][0], 0); | 174 smartLoader_->SetFrameInWidget(*mainWidget_, 0, instancesIdsPerSeriesId_[seriesId][0], 0); |