00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 00054 00281 class RemoteVizRenderArea 00282 { 00283 00284 public: 00285 00330 RemoteVizRenderArea(String|HTMLElement container, Number containerWidth, Number containerHeight, String displayMode); 00331 00363 connectTo(String serviceUrl); 00364 00369 disconnect(); 00370 00377 Boolean isConnected(); 00378 00385 sendMessage(String|Uint8Array message); 00386 00393 requestRenderAreaSize(Number width, Number height); 00394 00398 resizeRenderAreaContainer(Number width, Number height); 00399 00401 00406 Number getRenderAreaWidth(); 00407 00413 Number getRenderAreaHeight(); 00415 00417 00422 Number getContainerWidth(); 00423 00429 Number getContainerHeight(); 00431 00433 00438 Boolean isImageStreamingSupported(); 00439 00445 Boolean isVideoStreamingSupported(); 00446 00453 String getStreamingMode(); 00455 00457 00469 addServiceListener(Function serviceHandler); 00475 removeServiceListener(Function serviceHandler); 00496 serviceHandler(Object notification); 00497 00499 00501 00509 addResizeListener(Function resizeHandler); 00515 removeResizeListener(Function resizeHandler); 00528 resizeHandler(Array size); 00529 00531 00533 00542 addReceivedFrameListener(Function receivedFrameHandler); 00548 removeReceivedFrameListener(Function receivedFrameHandler); 00564 receivedFrameHandler(Number frameId, Number dataLength, String message); 00565 00567 00569 00578 addDecodedFrameListener(Function decodedFrameHandler); 00584 removeDecodedFrameListener(Function decodedFrameHandler); 00600 decodedFrameHandler(Number frameId, Boolean isLossless, String message); 00602 00604 00613 addMessageListener(Function messageHandler); 00619 removeMessageListener(Function messageHandler); 00626 messageHandler(String|Uint8Array message); 00628 00630 00639 addMouseUpListener(Function eventHandler); 00645 removeMouseUpListener(Function eventHandler); 00647 00649 00658 addMouseDownListener(Function eventHandler); 00664 removeMouseDownListener(Function eventHandler); 00666 00668 00677 addMouseDoubleClickListener(Function eventHandler); 00683 removeMouseDoubleClickListener(Function eventHandler); 00685 00687 00696 addMouseMoveListener(Function eventHandler); 00702 removeMouseMoveListener(Function eventHandler); 00704 00706 00715 addMouseOverListener(Function eventHandler); 00721 removeMouseOverListener(Function eventHandler); 00723 00725 00734 addMouseOutListener(Function eventHandler); 00740 removeMouseOutListener(Function eventHandler); 00742 00744 00753 addMouseWheelListener(Function eventHandler); 00759 removeMouseWheelListener(Function eventHandler); 00761 00763 00772 addTouchStartListener(Function eventHandler); 00778 removeTouchStartListener(Function eventHandler); 00780 00782 00791 addTouchEndListener(Function eventHandler); 00797 removeTouchEndListener(Function eventHandler); 00799 00801 00810 addTouchCancelListener(Function eventHandler); 00816 removeTouchCancelListener(Function eventHandler); 00818 00820 00829 addTouchMoveListener(Function eventHandler); 00835 removeTouchMoveListener(Function eventHandler); 00837 00839 00848 addKeyUpListener(Function eventHandler); 00854 removeKeyUpListener(Function eventHandler); 00856 00858 00867 addKeyDownListener(Function eventHandler); 00873 removeKeyDownListener(Function eventHandler); 00875 00885 Boolean eventHandler(Event event); 00886 00887 }; 00888 00889