comparison ViewerPlugin/Plugin.cpp @ 69:d529d9ce3c7e

cache for DicomPyramidInstance
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Nov 2016 21:56:07 +0100
parents 147bd6dc28db
children a8c90aa32ca6
comparison
equal deleted inserted replaced
68:c619c8bd72ed 69:d529d9ce3c7e
50 // Mutex is assumed to be locked 50 // Mutex is assumed to be locked
51 51
52 if (pyramid_.get() == NULL || 52 if (pyramid_.get() == NULL ||
53 pyramid_->GetSeriesId() != seriesId) 53 pyramid_->GetSeriesId() != seriesId)
54 { 54 {
55 pyramid_.reset(new DicomPyramid(orthanc_, seriesId)); 55 pyramid_.reset(new DicomPyramid(orthanc_, seriesId, true /* use metadata cache */));
56 } 56 }
57 57
58 if (pyramid_.get() == NULL) 58 if (pyramid_.get() == NULL)
59 { 59 {
60 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); 60 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);