Mercurial > hg > orthanc-stone
diff Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp @ 1575:e4a52cbbdd70
working on print
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Sep 2020 17:25:25 +0200 |
parents | 32e0c007789d |
children | 92fca2b3ba3d |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp Mon Sep 21 18:29:53 2020 +0200 +++ b/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp Wed Sep 23 17:25:25 2020 +0200 @@ -1906,6 +1906,13 @@ assert(viewport_ != NULL); viewport_->AcquireInteractor(interactor.release()); } + + + + void FitForPrint() // TODO - REMOVE + { + viewport_->FitForPrint(); + } }; @@ -2458,4 +2465,19 @@ } EXTERN_CATCH_EXCEPTIONS; } + + + EMSCRIPTEN_KEEPALIVE + void FitForPrint() // TODO - REMOVE + { + try + { + for (Viewports::iterator it = allViewports_.begin(); it != allViewports_.end(); ++it) + { + assert(it->second != NULL); + it->second->FitForPrint(); + } + } + EXTERN_CATCH_EXCEPTIONS; + } }