diff --git a/bluelight/scripts/mark.js b/bluelight/scripts/mark.js index 6a35678..95bd911 100644 --- a/bluelight/scripts/mark.js +++ b/bluelight/scripts/mark.js @@ -282,30 +282,6 @@ function drawPOLYLINE(canvas, mark, viewport) { console.log(x1, y1, x2, y2) }; ctx.closePath(); - - if (openWriteGraphic == true || (getByid("GspsPOLYLINE").selected == true && openWriteGSPS == true)) { - if (mark.RotationAngle && mark.RotationPoint) { - [x1, y1] = rotatePoint([x1, y1], -mark.RotationAngle, mark.RotationPoint); - [x2, y2] = rotatePoint([x2, y2], -mark.RotationAngle, mark.RotationPoint); - } - ctx.lineWidth = "" + parseInt(ctx.lineWidth) * 2; - var fillstyle = ctx.fillStyle; - - if (Graphic_now_choose && Graphic_now_choose.mark == mark) ctx.strokeStyle = getRGBFrom0xFF(ctx.strokeStyle, false, true); - ctx.beginPath(); - ctx.arc(x1 / 2 + x2 / 2, y1 / 2 + y2 / 2, parseInt(ctx.lineWidth), 0, 2 * Math.PI); - ctx.stroke(); - ctx.closePath(); - - for (var fil = 0; fil < 2; fil++) { - ctx.fillStyle = fillstyle; - ctx.beginPath(); - ctx.arc(x1 / 2 + x2 / 2, y1 / 2 + y2 / 2, parseInt(ctx.lineWidth), 0, 2 * Math.PI); - ctx.fill(); - ctx.closePath(); - } - ctx.lineWidth = "" + parseInt(ctx.lineWidth) / 2; - } } } diff --git a/bluelight/scripts/newscript/angle.js b/bluelight/scripts/newscript/angle.js index e2296c3..2ce420a 100644 --- a/bluelight/scripts/newscript/angle.js +++ b/bluelight/scripts/newscript/angle.js @@ -1,4 +1,9 @@ +//存放量角器 +var AngleXY0 = []; +var AngleXY1 = []; +var AngleXY2 = []; + function angle() { if (BL_mode == 'angle') { DeleteMouseEvent(); diff --git a/bluelight/scripts/newscript/windowlevel.js b/bluelight/scripts/newscript/windowlevel.js index 91a4673..5dfbf03 100644 --- a/bluelight/scripts/newscript/windowlevel.js +++ b/bluelight/scripts/newscript/windowlevel.js @@ -1,4 +1,7 @@ +//表示現在正在調整WindowLevel +var WindowOpen = false; + function windowlevel() { if (BL_mode == 'windowlevel') { DeleteMouseEvent(); diff --git a/bluelight/scripts/plugin/graphic_annotation.js b/bluelight/scripts/plugin/graphic_annotation.js index 63891bc..85a739d 100644 --- a/bluelight/scripts/plugin/graphic_annotation.js +++ b/bluelight/scripts/plugin/graphic_annotation.js @@ -1,5 +1,7 @@ //代表GSPS標記模式為開啟狀態 var openWriteGSPS = false; +//代表Graphic Annotation標記模式為開啟狀態 +var openWriteGraphic = false; function loadWriteGraphic() { var span = document.createElement("SPAN") diff --git a/bluelight/scripts/plugin/vr.js b/bluelight/scripts/plugin/vr.js index f3d251f..1e60fa6 100644 --- a/bluelight/scripts/plugin/vr.js +++ b/bluelight/scripts/plugin/vr.js @@ -4,7 +4,17 @@ var openVR = false; var openRendering = false; //VR橫切片與縱切片數量 var o3Dcount = 0; - +//3D VR的貼皮數量 +var o3d_3degree = -1; +//3D VR的切片數量 +var o3DListLength = 0; + +//3D VR模型的透明度百分比 +var o3DAlphaValue = 100; +//代表3D挖掘模式為開啟狀態 +var openCave = false; +//代表切片厚度 +var Thickness = 1; var degerrX = 0; var degerrY = 0; diff --git a/bluelight/scripts/variable.js b/bluelight/scripts/variable.js index 7979311..8c91bf2 100644 --- a/bluelight/scripts/variable.js +++ b/bluelight/scripts/variable.js @@ -4,21 +4,10 @@ const Viewport_Total = 16; let Viewport_row = 1; let Viewport_col = 1; -//3D VR的貼皮數量 -var o3d_3degree = -1; -//暫時用的Pixeldata -var tempPixeldata; -//3D VR的切片數量 -var o3DListLength = 0; //當前選擇的Viewport的canvas //var canvas; //var ctx; -//存放量角器 -var AngleXY0 = []; -var AngleXY1 = []; -var AngleXY2 = []; - //表示按住了滑鼠左鍵 var MouseDownCheck = false; //表示按住了滑鼠右鍵 @@ -36,8 +25,6 @@ var openWindow = false; var openZoom = false; //表示Viewport為連接狀態 var openLink = false; -//表示現在正在調整WindowLevel -var WindowOpen = false; //表示左側的影像可以點擊 var openLeftImgClick = true; @@ -47,13 +34,6 @@ var openPenDraw = false; var openAngle = 0; //表示目前icon圖示的RWD收合功能為開啟狀態 var openRWD = true; -//3D VR模型的透明度百分比 -var o3DAlphaValue = 100; -//代表3D挖掘模式為開啟狀態 -var openCave = false; - -//代表Graphic Annotation標記模式為開啟狀態 -var openWriteGraphic = false; //紀錄滑鼠座標 var windowMouseX = 0, @@ -84,8 +64,6 @@ var openRotate = false; //代表目前從左側面板拖曳中的影像的Series UID var dragseries = ""; -//代表切片厚度 -var Thickness = 1; //代表原始影像,通常被用於放大鏡的參考 var originalCanvas; var originalCtx; diff --git a/bluelight/scripts/viewer.js b/bluelight/scripts/viewer.js index 3ab9eca..94b330d 100644 --- a/bluelight/scripts/viewer.js +++ b/bluelight/scripts/viewer.js @@ -459,6 +459,8 @@ function parseDicom(image, pixelData, viewportNum0) { DicomCanvas.height = image.height var ctx2 = DicomCanvas.getContext("2d"); var imgData2 = ctx2.createImageData(image.width, image.height); + if (element.SeriesInstanceUID && element.SeriesInstanceUID != image.data.string("x0020000e")) + element.windowCenterList = element.windowWidthList = null; var windowCenter = element.windowCenterList ? element.windowCenterList : image.windowCenter; var windowWidth = element.windowWidthList ? element.windowWidthList : image.windowWidth; var high = windowCenter + (windowWidth / 2);