comparison 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
comparison
equal deleted inserted replaced
1574:fb5e620430ae 1575:e4a52cbbdd70
1904 interactor->SetRightButtonAction(rightAction); 1904 interactor->SetRightButtonAction(rightAction);
1905 1905
1906 assert(viewport_ != NULL); 1906 assert(viewport_ != NULL);
1907 viewport_->AcquireInteractor(interactor.release()); 1907 viewport_->AcquireInteractor(interactor.release());
1908 } 1908 }
1909
1910
1911
1912 void FitForPrint() // TODO - REMOVE
1913 {
1914 viewport_->FitForPrint();
1915 }
1909 }; 1916 };
1910 1917
1911 1918
1912 1919
1913 1920
2456 it->second->SetMouseButtonActions(leftButtonAction_, middleButtonAction_, rightButtonAction_); 2463 it->second->SetMouseButtonActions(leftButtonAction_, middleButtonAction_, rightButtonAction_);
2457 } 2464 }
2458 } 2465 }
2459 EXTERN_CATCH_EXCEPTIONS; 2466 EXTERN_CATCH_EXCEPTIONS;
2460 } 2467 }
2468
2469
2470 EMSCRIPTEN_KEEPALIVE
2471 void FitForPrint() // TODO - REMOVE
2472 {
2473 try
2474 {
2475 for (Viewports::iterator it = allViewports_.begin(); it != allViewports_.end(); ++it)
2476 {
2477 assert(it->second != NULL);
2478 it->second->FitForPrint();
2479 }
2480 }
2481 EXTERN_CATCH_EXCEPTIONS;
2482 }
2461 } 2483 }