From f4b2e6a33b96bc01d5c4fb2710f971c71eeed301 Mon Sep 17 00:00:00 2001 From: Erik Ziegler Date: Thu, 15 Feb 2018 11:42:07 +0100 Subject: [PATCH] Add Rotate and Flip buttons to OHIF Viewer and Standalone Viewer --- .../toolbarSection/toolbarSection.js | 21 +++++++++++++++++++ .../toolbarSection/toolbarSection.js | 21 +++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/OHIFViewer/client/components/toolbarSection/toolbarSection.js b/OHIFViewer/client/components/toolbarSection/toolbarSection.js index 2f835cf97..17105db6a 100644 --- a/OHIFViewer/client/components/toolbarSection/toolbarSection.js +++ b/OHIFViewer/client/components/toolbarSection/toolbarSection.js @@ -126,6 +126,27 @@ Template.toolbarSection.helpers({ iconClasses: 'fa fa-adjust' }); + extraTools.push({ + id: 'rotateR', + title: 'Rotate Right', + classes: 'imageViewerCommand', + svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-rotate-right' + }); + + extraTools.push({ + id: 'flipH', + title: 'Flip H', + classes: 'imageViewerCommand', + svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-flip-horizontal' + }); + + extraTools.push({ + id: 'flipV', + title: 'Flip V', + classes: 'imageViewerCommand', + svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-flip-vertical' + }); + extraTools.push({ id: 'clearTools', title: 'Clear', diff --git a/StandaloneViewer/StandaloneViewer/client/components/toolbarSection/toolbarSection.js b/StandaloneViewer/StandaloneViewer/client/components/toolbarSection/toolbarSection.js index f4ca9c8ec..611f0fc38 100644 --- a/StandaloneViewer/StandaloneViewer/client/components/toolbarSection/toolbarSection.js +++ b/StandaloneViewer/StandaloneViewer/client/components/toolbarSection/toolbarSection.js @@ -86,6 +86,27 @@ Template.toolbarSection.helpers({ iconClasses: 'fa fa-adjust' }); + extraTools.push({ + id: 'rotateR', + title: 'Rotate Right', + classes: 'imageViewerCommand', + svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-rotate-right' + }); + + extraTools.push({ + id: 'flipH', + title: 'Flip H', + classes: 'imageViewerCommand', + svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-flip-horizontal' + }); + + extraTools.push({ + id: 'flipV', + title: 'Flip V', + classes: 'imageViewerCommand', + svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-flip-vertical' + }); + extraTools.push({ id: 'clearTools', title: 'Clear',