Mercurial > hg > orthanc-stone
diff Framework/Toolbox/OrthancSlicesLoader.cpp @ 77:f5f54ed8d307 wasm
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 24 May 2017 21:13:29 +0200 |
parents | ffa6dded91bd |
children | 5945e81734a3 |
line wrap: on
line diff
--- a/Framework/Toolbox/OrthancSlicesLoader.cpp Wed May 24 12:42:08 2017 +0200 +++ b/Framework/Toolbox/OrthancSlicesLoader.cpp Wed May 24 21:13:29 2017 +0200 @@ -335,6 +335,12 @@ } + bool OrthancSlicesLoader::IsGeometryReady() const + { + return state_ == State_GeometryReady; + } + + size_t OrthancSlicesLoader::GetSliceCount() const { if (state_ != State_GeometryReady) @@ -357,6 +363,18 @@ } + bool OrthancSlicesLoader::LookupSlice(size_t& index, + const SliceGeometry& plane) const + { + if (state_ != State_GeometryReady) + { + throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); + } + + return slices_.LookupSlice(index, plane); + } + + void OrthancSlicesLoader::ScheduleLoadSliceImage(size_t index) { if (state_ != State_GeometryReady)