LT-301: Addeing Stack Scroll, Reset, Rotate, Flip H, Flip V, Invert, Magnify, Elliptical ROI, Clear and Toggle CINE dialog buttons to More Tools panel
This commit is contained in:
1 parent
5d02b76453
commit
c004aee40f
10 files changed
+179
-6
No files matched your search
@@ -18,8 +18,8 @@ var initialized = false;
|
||||
function configureTools() {
|
||||
|
||||
// Get Cornerstone Tools
|
||||
const { panMultiTouch, textStyle, toolStyle, toolColors,
|
||||
length, bidirectional, arrowAnnotate, zoom } = cornerstoneTools;
|
||||
const { panMultiTouch, textStyle, toolStyle, toolColors, length,
|
||||
bidirectional, arrowAnnotate, zoom, ellipticalRoi } = cornerstoneTools;
|
||||
|
||||
// Set the configuration for the multitouch pan tool
|
||||
const multiTouchPanConfig = {
|
||||
@@ -52,6 +52,7 @@ function configureTools() {
|
||||
// Get some tools config to not override them
|
||||
const lengthConfig = length.getConfiguration();
|
||||
const bidirectionalConfig = bidirectional.getConfiguration();
|
||||
const ellipticalRoiConfig = ellipticalRoi.getConfiguration();
|
||||
|
||||
// Add shadow to length tool
|
||||
length.setConfiguration({
|
||||
@@ -65,6 +66,12 @@ function configureTools() {
|
||||
...shadowConfig
|
||||
});
|
||||
|
||||
// Add shadow to length tool
|
||||
ellipticalRoi.setConfiguration({
|
||||
...ellipticalRoiConfig,
|
||||
...shadowConfig
|
||||
});
|
||||
|
||||
// Set the configuration values for the text annotation (Arrow) tool
|
||||
const annotateConfig = {
|
||||
getTextCallback: getAnnotationTextCallback,
|
||||
@@ -132,6 +139,11 @@ toolManager = {
|
||||
touch: cornerstoneTools.arrowAnnotateTouch
|
||||
});
|
||||
|
||||
toolManager.addTool('rotate', {
|
||||
mouse: cornerstoneTools.rotate,
|
||||
touch: cornerstoneTools.rotateTouchDrag
|
||||
});
|
||||
|
||||
if (OHIF.viewer.defaultTool) {
|
||||
activeTool = OHIF.viewer.defaultTool;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user