Mercurial > hg > orthanc-stone
comparison Framework/Volumes/VolumeReslicer.cpp @ 956:a7351ad54960
Made IsContextLost automatically set the flag by checking with the emscripten
WebGL wrapper + added a LOT of logging messages right before throwing
ErrorCode_BadSequenceOfCalls exceptions + increased the http request timeouts
from 60 to 600 sec (big datasets in some recent customer use cases) + added
IsContext lost through the Viewport/Context layer (to make it reachable from
external API) + the same for the underlying device context (for debug)
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 21 Aug 2019 16:16:30 +0200 |
parents | cd13a062c9bd |
children | 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
953:118fc5c85d07 | 956:a7351ad54960 |
---|---|
708 { | 708 { |
709 return extent_; | 709 return extent_; |
710 } | 710 } |
711 else | 711 else |
712 { | 712 { |
713 LOG(ERROR) << "VolumeReslicer::GetOutputExtent(): (!success_)"; | |
714 | |
713 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); | 715 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); |
714 } | 716 } |
715 } | 717 } |
716 | 718 |
717 | 719 |
722 assert(slice_.get() != NULL); | 724 assert(slice_.get() != NULL); |
723 return *slice_; | 725 return *slice_; |
724 } | 726 } |
725 else | 727 else |
726 { | 728 { |
729 LOG(ERROR) << "VolumeReslicer::GetOutputSlice(): (!success_)"; | |
727 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); | 730 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); |
728 } | 731 } |
729 } | 732 } |
730 | 733 |
731 | 734 |
737 success_ = false; | 740 success_ = false; |
738 return slice_.release(); | 741 return slice_.release(); |
739 } | 742 } |
740 else | 743 else |
741 { | 744 { |
745 LOG(ERROR) << "VolumeReslicer::ReleaseOutputSlice(): (!success_)"; | |
742 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); | 746 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); |
743 } | 747 } |
744 } | 748 } |
745 | 749 |
746 | 750 |
826 { | 830 { |
827 return pixelSpacing_; | 831 return pixelSpacing_; |
828 } | 832 } |
829 else | 833 else |
830 { | 834 { |
835 LOG(ERROR) << "VolumeReslicer::GetPixelSpacing(): (!success_)"; | |
831 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); | 836 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); |
832 } | 837 } |
833 } | 838 } |
834 } | 839 } |