Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp @ 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 | 66e5fcdf5597 |
children | f62f685e0eb2 |
comparison
equal
deleted
inserted
replaced
1662:0f161841f837 | 1663:fc883105ee11 |
---|---|
2356 static OrthancStone::DicomSource source_; | 2356 static OrthancStone::DicomSource source_; |
2357 static boost::shared_ptr<FramesCache> cache_; | 2357 static boost::shared_ptr<FramesCache> cache_; |
2358 static boost::shared_ptr<OrthancStone::WebAssemblyLoadersContext> context_; | 2358 static boost::shared_ptr<OrthancStone::WebAssemblyLoadersContext> context_; |
2359 static std::string stringBuffer_; | 2359 static std::string stringBuffer_; |
2360 static bool softwareRendering_ = false; | 2360 static bool softwareRendering_ = false; |
2361 static WebViewerAction leftButtonAction_ = WebViewerAction_Crosshair; //WebViewerAction_GrayscaleWindowing; | 2361 static WebViewerAction leftButtonAction_ = WebViewerAction_GrayscaleWindowing; |
2362 static WebViewerAction middleButtonAction_ = WebViewerAction_Pan; | 2362 static WebViewerAction middleButtonAction_ = WebViewerAction_Pan; |
2363 static WebViewerAction rightButtonAction_ = WebViewerAction_Zoom; | 2363 static WebViewerAction rightButtonAction_ = WebViewerAction_Zoom; |
2364 | 2364 |
2365 | 2365 |
2366 static void FormatTags(std::string& target, | 2366 static void FormatTags(std::string& target, |
2427 Orthanc::InitializeFramework("", true); | 2427 Orthanc::InitializeFramework("", true); |
2428 Orthanc::Logging::EnableInfoLevel(true); | 2428 Orthanc::Logging::EnableInfoLevel(true); |
2429 //Orthanc::Logging::EnableTraceLevel(true); | 2429 //Orthanc::Logging::EnableTraceLevel(true); |
2430 | 2430 |
2431 context_.reset(new OrthancStone::WebAssemblyLoadersContext(1, 4, 1)); | 2431 context_.reset(new OrthancStone::WebAssemblyLoadersContext(1, 4, 1)); |
2432 context_->SetDicomCacheSize(128 * 1024 * 1024); // 128MB | |
2433 | |
2432 cache_.reset(new FramesCache); | 2434 cache_.reset(new FramesCache); |
2433 annotations_.reset(new OrthancStone::OsiriX::CollectionOfAnnotations); | 2435 annotations_.reset(new OrthancStone::OsiriX::CollectionOfAnnotations); |
2434 | 2436 |
2435 DISPATCH_JAVASCRIPT_EVENT("StoneInitialized"); | 2437 DISPATCH_JAVASCRIPT_EVENT("StoneInitialized"); |
2436 } | 2438 } |