# HG changeset patch # User Sebastien Jodogne # Date 1605781443 -3600 # Node ID fc883105ee114f2efca61f89a552d6b2398eea4d # Parent 0f161841f837741c7c682c7a633192429a1cb323 enable cache of ParsedDicomFile in oracle diff -r 0f161841f837 -r fc883105ee11 Applications/StoneWebViewer/TODO --- 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 + diff -r 0f161841f837 -r fc883105ee11 Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp --- 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 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);