comparison Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp @ 1701:b5a8bf32d969

new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 27 Nov 2020 12:21:26 +0100
parents a691ab50d416
children bc40b6450261
comparison
equal deleted inserted replaced
1700:f1bd464dc3e1 1701:b5a8bf32d969
127 }; 127 };
128 128
129 129
130 enum STONE_WEB_VIEWER_EXPORT WebViewerAction 130 enum STONE_WEB_VIEWER_EXPORT WebViewerAction
131 { 131 {
132 WebViewerAction_GrayscaleWindowing, 132 WebViewerAction_Windowing,
133 WebViewerAction_Zoom, 133 WebViewerAction_Zoom,
134 WebViewerAction_Pan, 134 WebViewerAction_Pan,
135 WebViewerAction_Rotate, 135 WebViewerAction_Rotate,
136 WebViewerAction_Crosshair 136 WebViewerAction_Crosshair
137 }; 137 };
140 140
141 static OrthancStone::MouseAction ConvertWebViewerAction(int action) 141 static OrthancStone::MouseAction ConvertWebViewerAction(int action)
142 { 142 {
143 switch (action) 143 switch (action)
144 { 144 {
145 case WebViewerAction_GrayscaleWindowing: 145 case WebViewerAction_Windowing:
146 return OrthancStone::MouseAction_GrayscaleWindowing; 146 return OrthancStone::MouseAction_GrayscaleWindowing;
147 147
148 case WebViewerAction_Zoom: 148 case WebViewerAction_Zoom:
149 return OrthancStone::MouseAction_Zoom; 149 return OrthancStone::MouseAction_Zoom;
150 150
2656 static OrthancStone::DicomSource source_; 2656 static OrthancStone::DicomSource source_;
2657 static boost::shared_ptr<FramesCache> framesCache_; 2657 static boost::shared_ptr<FramesCache> framesCache_;
2658 static boost::shared_ptr<OrthancStone::WebAssemblyLoadersContext> context_; 2658 static boost::shared_ptr<OrthancStone::WebAssemblyLoadersContext> context_;
2659 static std::string stringBuffer_; 2659 static std::string stringBuffer_;
2660 static bool softwareRendering_ = false; 2660 static bool softwareRendering_ = false;
2661 static WebViewerAction leftButtonAction_ = WebViewerAction_GrayscaleWindowing; 2661 static WebViewerAction leftButtonAction_ = WebViewerAction_Windowing;
2662 static WebViewerAction middleButtonAction_ = WebViewerAction_Pan; 2662 static WebViewerAction middleButtonAction_ = WebViewerAction_Pan;
2663 static WebViewerAction rightButtonAction_ = WebViewerAction_Zoom; 2663 static WebViewerAction rightButtonAction_ = WebViewerAction_Zoom;
2664 2664
2665 2665
2666 static void FormatTags(std::string& target, 2666 static void FormatTags(std::string& target,