Mercurial > hg > orthanc-stone
changeset 1663:fc883105ee11
enable cache of ParsedDicomFile in oracle
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 19 Nov 2020 11:24:03 +0100 |
parents | 0f161841f837 |
children | 32e765ca7193 |
files | Applications/StoneWebViewer/TODO Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp |
diffstat | 2 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/TODO Thu Nov 19 10:52:05 2020 +0100 +++ b/Applications/StoneWebViewer/TODO Thu Nov 19 11:24:03 2020 +0100 @@ -1,3 +1,10 @@ + + +New features +============ + +* Display video files + Wish list ========= @@ -6,4 +13,4 @@ specific images. For example I start the Viewer with dicomFile and open slide1, slide4, slide8, slide12 ?" https://groups.google.com/g/orthanc-users/c/6KSe0WEEfco/m/nOIl57EzAAAJ - \ No newline at end of file +
--- a/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp Thu Nov 19 10:52:05 2020 +0100 +++ b/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp Thu Nov 19 11:24:03 2020 +0100 @@ -2358,7 +2358,7 @@ static boost::shared_ptr<OrthancStone::WebAssemblyLoadersContext> context_; static std::string stringBuffer_; static bool softwareRendering_ = false; -static WebViewerAction leftButtonAction_ = WebViewerAction_Crosshair; //WebViewerAction_GrayscaleWindowing; +static WebViewerAction leftButtonAction_ = WebViewerAction_GrayscaleWindowing; static WebViewerAction middleButtonAction_ = WebViewerAction_Pan; static WebViewerAction rightButtonAction_ = WebViewerAction_Zoom; @@ -2429,6 +2429,8 @@ //Orthanc::Logging::EnableTraceLevel(true); context_.reset(new OrthancStone::WebAssemblyLoadersContext(1, 4, 1)); + context_->SetDicomCacheSize(128 * 1024 * 1024); // 128MB + cache_.reset(new FramesCache); annotations_.reset(new OrthancStone::OsiriX::CollectionOfAnnotations);