Commit 9ab7ff85d980717c1d7227c82c3b0b8d3be88d8f

Authored by Amrita Vishnoi
2 parents 1370b620 1fb4c9bb

Defect fix:

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -49,7 +49,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -49,7 +49,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
49 $scope.zoomInOut = 75; 49 $scope.zoomInOut = 75;
50 $scope.i = 0; 50 $scope.i = 0;
51 $scope.speachBubbleArray = []; 51 $scope.speachBubbleArray = [];
52 - $rootScope.multiAnnotationIsON = false; 52 + $scope.multiAnnotationIsON = false;
53 $scope.previousGrayImageDataVar; 53 $scope.previousGrayImageDataVar;
54 $scope.previousGrayCanvas; 54 $scope.previousGrayCanvas;
55 55
@@ -471,7 +471,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -471,7 +471,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
471 //calculate coordinates for body region images 471 //calculate coordinates for body region images
472 $scope.CalculateImageCordinates = function (viewOrientationId) { 472 $scope.CalculateImageCordinates = function (viewOrientationId) {
473 473
474 - debugger; 474 + // debugger;
475 //remove the previous layer mask data from array 475 //remove the previous layer mask data from array
476 var n = $rootScope.MaskCanvasData.length 476 var n = $rootScope.MaskCanvasData.length
477 477
@@ -1401,7 +1401,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -1401,7 +1401,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
1401 $scope.highLightBodyBasedOnIcolor = function (RGBColor) { 1401 $scope.highLightBodyBasedOnIcolor = function (RGBColor) {
1402 1402
1403 // debugger; 1403 // debugger;
1404 - //terminate previous running workers to create space for new workers 1404 +
1405 var workerCount = $scope.runningWorkers.length; 1405 var workerCount = $scope.runningWorkers.length;
1406 if (workerCount > 0) { 1406 if (workerCount > 0) {
1407 for (var i = workerCount - 1; i >= 0; i--) { 1407 for (var i = workerCount - 1; i >= 0; i--) {
@@ -1422,7 +1422,24 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -1422,7 +1422,24 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
1422 1422
1423 //4. 1423 //4.
1424 1424
1425 - $scope.machedTermNoLocation = []; 1425 + $scope.HighlightBodyByTermList(TermList);
  1426 +
  1427 +
  1428 + }
  1429 +
  1430 + $scope.HighlightBodyByTermList = function (TermList) {
  1431 +
  1432 +
  1433 + //terminate previous running workers to create space for new workers
  1434 + var workerCount = $scope.runningWorkers.length;
  1435 + if (workerCount > 0) {
  1436 + for (var i = workerCount - 1; i >= 0; i--) {
  1437 + var runningWorker = $scope.runningWorkers[i].workerName;
  1438 + runningWorker.terminate();
  1439 + $scope.runningWorkers.splice(i, 1);
  1440 + // workerCount--;
  1441 + }
  1442 + }
1426 1443
1427 1444
1428 var n = $rootScope.MaskCanvasData.length; 1445 var n = $rootScope.MaskCanvasData.length;
@@ -1466,6 +1483,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -1466,6 +1483,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
1466 1483
1467 } 1484 }
1468 1485
  1486 +
  1487 + grayImageDataVar = $rootScope.grayImageMRDataListCurrent[bodyRegionId]
  1488 + }
  1489 + else
  1490 + grayImageDataVar = $rootScope.whiteImageMRDataList[bodyRegionId];
  1491 + }
1469 } 1492 }
1470 1493
1471 else { 1494 else {
@@ -1492,6 +1515,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -1492,6 +1515,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
1492 grayImageDataVar = $rootScope.grayImageDataList[bodyRegionId - 1]; 1515 grayImageDataVar = $rootScope.grayImageDataList[bodyRegionId - 1];
1493 1516
1494 } 1517 }
  1518 + if ($rootScope.isExtract) {
  1519 + if ($scope.multiAnnotationIsON == true) {
  1520 +
  1521 + grayImageDataVar = $rootScope.grayImageDataListCurrent[bodyRegionId]
  1522 + }
  1523 + else
  1524 + grayImageDataVar = $rootScope.whiteImageDataList[bodyRegionId];
  1525 + }
1495 } 1526 }
1496 1527
1497 if ($rootScope.isExtract == true) 1528 if ($rootScope.isExtract == true)
@@ -3410,7 +3441,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -3410,7 +3441,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
3410 // debugger; 3441 // debugger;
3411 3442
3412 var zeroPoint = new Point(); 3443 var zeroPoint = new Point();
3413 - DAData.applyFilter(DAData, DAData.rect, zeroPoint, colorMode); 3444 + var grayScale = new ColorMatrixFilter(matrix);
  3445 + DAData.applyFilter(DAData, DAData.rect, zeroPoint, grayScale);
3414 3446
3415 context_gray.putImageData(DAData.data, 0, 0) 3447 context_gray.putImageData(DAData.data, 0, 0)
3416 3448
@@ -3470,6 +3502,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -3470,6 +3502,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
3470 } 3502 }
3471 } 3503 }
3472 3504
  3505 + // for (var i = 0; i < $scope.previousSelectedTermList.length; i++) {
  3506 + // $scope.highLightBodyBasedOnIcolor($scope.previousSelectedTermList[i]);
  3507 +
  3508 + // }
  3509 + //}
3473 3510
3474 } 3511 }
3475 3512
@@ -3829,17 +3866,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -3829,17 +3866,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
3829 $scope.highLightBody(); 3866 $scope.highLightBody();
3830 //now highlight the selected body system in whole body 3867 //now highlight the selected body system in whole body
3831 3868
3832 - var termNumber = parseInt(systemMatchedTermList[0]._TermNumber);  
3833 3869
3834 - //Match Term No List in each bodyRegion  
3835 - $scope.getLocationsForMatchedTermsInWholeBody(termNumber);  
3836 - //for (var i = 0; i < systemMatchedTermList.length; i++) { 3870 + $timeout(function(){ $scope.HighlightBodyByTermList(systemMatchedTermList)},100);
3837 3871
3838 - // var termNumber = parseInt(systemMatchedTermList[i]._TermNumber);  
3839 -  
3840 - // //Match Term No List in each bodyRegion  
3841 - // $scope.getLocationsForMatchedTermsInWholeBody(termNumber, 0, 0);  
3842 - //}  
3843 } 3872 }
3844 3873
3845 }] 3874 }]
400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css
@@ -395,7 +395,7 @@ footer.dark { @@ -395,7 +395,7 @@ footer.dark {
395 width: 110px; 395 width: 110px;
396 padding-top: 20px; 396 padding-top: 20px;
397 /*overflow: hidden;*/ 397 /*overflow: hidden;*/
398 - position: fixed !important; 398 + position: absolute !important;
399 left: 0; 399 left: 0;
400 /*nk*/ 400 /*nk*/
401 /*top: 70px;*/ 401 /*top: 70px;*/