2015-10-15 15:05:41 +02:00
|
|
|
Template.viewerMain.helpers({
|
2016-01-11 11:32:20 +01:00
|
|
|
toolbarOptions: function() {
|
2015-10-15 15:05:41 +02:00
|
|
|
var toolbarOptions = {};
|
|
|
|
|
|
|
|
|
|
var buttonData = [];
|
|
|
|
|
|
2016-03-02 18:09:05 +01:00
|
|
|
var btnGroup = [];
|
|
|
|
|
|
2015-11-06 20:38:23 +01:00
|
|
|
buttonData.push({
|
|
|
|
|
id: 'resetViewport',
|
|
|
|
|
title: 'Reset Viewport',
|
|
|
|
|
classes: 'imageViewerCommand',
|
|
|
|
|
iconClasses: 'fa fa-undo'
|
|
|
|
|
});
|
|
|
|
|
|
2015-10-15 15:05:41 +02:00
|
|
|
buttonData.push({
|
|
|
|
|
id: 'wwwc',
|
|
|
|
|
title: 'WW/WC',
|
|
|
|
|
classes: 'imageViewerTool',
|
|
|
|
|
iconClasses: 'fa fa-sun-o'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
buttonData.push({
|
|
|
|
|
id: 'zoom',
|
|
|
|
|
title: 'Zoom',
|
|
|
|
|
classes: 'imageViewerTool',
|
|
|
|
|
iconClasses: 'fa fa-search'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
buttonData.push({
|
|
|
|
|
id: 'pan',
|
|
|
|
|
title: 'Pan',
|
|
|
|
|
classes: 'imageViewerTool',
|
|
|
|
|
iconClasses: 'fa fa-arrows'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
buttonData.push({
|
|
|
|
|
id: 'stackScroll',
|
|
|
|
|
title: 'Stack Scroll',
|
|
|
|
|
classes: 'imageViewerTool',
|
|
|
|
|
iconClasses: 'fa fa-bars'
|
|
|
|
|
});
|
2016-01-06 22:45:52 +01:00
|
|
|
|
|
|
|
|
buttonData.push({
|
|
|
|
|
id: 'length',
|
|
|
|
|
title: 'Length Measurement',
|
|
|
|
|
classes: 'imageViewerTool',
|
|
|
|
|
iconClasses: 'fa fa-arrows-v'
|
|
|
|
|
});
|
2016-02-13 18:57:04 +01:00
|
|
|
|
|
|
|
|
buttonData.push({
|
|
|
|
|
id: 'ellipticalRoi',
|
|
|
|
|
title: 'Elliptical ROI Measurement',
|
|
|
|
|
classes: 'imageViewerTool',
|
|
|
|
|
iconClasses: 'fa fa-circle-o'
|
|
|
|
|
});
|
2015-10-15 15:05:41 +02:00
|
|
|
|
|
|
|
|
buttonData.push({
|
2016-03-05 01:03:16 +01:00
|
|
|
id: 'bidirectional',
|
2015-11-10 15:25:44 +01:00
|
|
|
title: 'Target Tool',
|
2015-10-15 15:05:41 +02:00
|
|
|
classes: 'imageViewerTool',
|
2015-11-05 21:19:00 +01:00
|
|
|
iconClasses: 'fa fa-arrows-alt'
|
2015-10-15 15:05:41 +02:00
|
|
|
});
|
|
|
|
|
|
2015-11-09 14:08:50 +01:00
|
|
|
buttonData.push({
|
|
|
|
|
id: 'nonTarget',
|
|
|
|
|
title: 'Non-Target Tool',
|
|
|
|
|
classes: 'imageViewerTool',
|
2015-11-10 15:25:44 +01:00
|
|
|
iconClasses: 'fa fa-long-arrow-up'
|
2015-11-09 14:08:50 +01:00
|
|
|
});
|
|
|
|
|
|
2015-11-24 16:57:02 +01:00
|
|
|
buttonData.push({
|
|
|
|
|
id: 'clearTools',
|
|
|
|
|
title: 'Clear tools',
|
|
|
|
|
classes: 'imageViewerCommand',
|
|
|
|
|
iconClasses: 'fa fa-trash'
|
|
|
|
|
});
|
|
|
|
|
|
2015-12-11 17:55:19 +01:00
|
|
|
buttonData.push({
|
|
|
|
|
id: 'toggleLesionTrackerTools',
|
|
|
|
|
title: 'Show / hide tools',
|
|
|
|
|
classes: 'imageViewerCommand',
|
|
|
|
|
iconClasses: 'fa fa-eye'
|
|
|
|
|
});
|
|
|
|
|
|
2016-03-02 18:09:05 +01:00
|
|
|
// CR/UN/EX Tools
|
|
|
|
|
var crunexToolsBtns = {
|
|
|
|
|
id: 'crunexTools',
|
|
|
|
|
tools:[{
|
|
|
|
|
id: 'crTool',
|
|
|
|
|
title: 'CR Tool',
|
|
|
|
|
classes: 'imageViewerTool',
|
|
|
|
|
iconClasses: 'fa fa-cr'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'unTool',
|
|
|
|
|
title: 'UN Tool',
|
|
|
|
|
classes: 'imageViewerTool',
|
|
|
|
|
iconClasses: 'fa fa-un'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'exTool',
|
|
|
|
|
title: 'EX Tool',
|
|
|
|
|
classes: 'imageViewerTool',
|
|
|
|
|
iconClasses: 'fa fa-ex'
|
|
|
|
|
}],
|
|
|
|
|
title: "CR/UN/EX",
|
|
|
|
|
groupIcon: 'fa fa-exchange'
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
btnGroup.push(crunexToolsBtns);
|
|
|
|
|
|
2015-10-15 15:05:41 +02:00
|
|
|
toolbarOptions.buttonData = buttonData;
|
2015-11-05 21:19:00 +01:00
|
|
|
toolbarOptions.includePlayClipButton = false;
|
|
|
|
|
toolbarOptions.includeLayoutButton = false;
|
2015-11-23 00:48:08 +01:00
|
|
|
toolbarOptions.includeHangingProtocolButtons = false;
|
2016-03-02 18:09:05 +01:00
|
|
|
toolbarOptions.btnGroup = btnGroup;
|
2015-10-15 15:05:41 +02:00
|
|
|
return toolbarOptions;
|
|
|
|
|
}
|
2016-01-11 11:32:20 +01:00
|
|
|
});
|