Mercurial > hg > orthanc-stone
diff Applications/Platforms/WebAssembly/WebAssemblyLoadersContext.h @ 1675:6fa05252b085
don't load low-quality image if the parsed dicom file is cached by the oracle
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 23 Nov 2020 18:09:14 +0100 |
parents | 4fb8fdf03314 |
children | 9ac2a65d4172 |
line wrap: on
line diff
--- a/Applications/Platforms/WebAssembly/WebAssemblyLoadersContext.h Mon Nov 23 17:05:24 2020 +0100 +++ b/Applications/Platforms/WebAssembly/WebAssemblyLoadersContext.h Mon Nov 23 18:09:14 2020 +0100 @@ -58,6 +58,11 @@ oracle_.SetDicomCacheSize(size); } + WebAssemblyOracle::CachedInstanceAccessor* AccessCachedInstance(const std::string& sopInstanceUid) + { + return new WebAssemblyOracle::CachedInstanceAccessor(oracle_, sopInstanceUid); + } + virtual ILock* Lock() ORTHANC_OVERRIDE; }; }