Fix double-click to enlarge viewport bugs. Add annotation dialog box to OHIF Viewer

This commit is contained in:
Erik Ziegler committed 2016-08-05 12:16:47 +02:00
1 parent f963fec586
commit 81b011f111
15 files changed
+773 -1214

No files matched your search

+10 -1
View File
@@ -7,7 +7,7 @@ var tools = {};
var toolDefaultStates = {
activate: [],
deactivate: [],
deactivate: ['length', 'angle', 'annotate', 'ellipticalRoi', 'rectangleRoi'],
enable: [],
disable: [],
disabledToolButtons: []
@@ -35,6 +35,15 @@ function configureTools() {
// Set color for active tools
cornerstoneTools.toolColors.setActiveColor('#00ffff'); //rgb(0, 255, 0)'
// Set the configuration values for the text annotation (Arrow) tool
var annotateConfig = {
getTextCallback: getAnnotationTextCallback,
changeTextCallback: changeAnnotationTextCallback,
drawHandles: false,
arrowFirst: true
};
cornerstoneTools.arrowAnnotate.setConfiguration(annotateConfig);
}
toolManager = {