Permalink
Browse files

STYLE: DataProbe: Remove unused code setting 'currentLayoutName' ivar

This commit removes code initially introduced in r22253 (BUG: #3262
update data probe on non-mouse-move events) that later became obsolete
with r23387 (ENH: Added mouse cursor position to vtkMRMLCrosshairNode.)

From: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@24547 3bd1e089-480b-0410-8dfb-8563597acbee
  • Loading branch information...
jcfr committed Sep 15, 2015
1 parent 4f2e9dc commit 27de5a06c33ed98fb5ef2296456b38543ac0b086
Showing with 0 additions and 9 deletions.
  1. +0 −9 Modules/Scripted/DataProbe/DataProbe.py
@@ -76,12 +76,6 @@ class DataProbeInfoWidget(object):
def __init__(self, parent=None,type='small'):
self.type = type
self.nameSize = 24
# the currentLayoutName is tag on the slice node that corresponds
# view which should currently be shown in the DataProbe window.
# Keeping track of this allows us to respond to non-interactor updates
# to the slice (like from an external tracker) but only in the view where
# the mouse has most recently entered.
self.currentLayoutName = None

self.CrosshairNode = None
self.CrosshairNodeObserverTag = None
@@ -216,7 +210,6 @@ def processEvent(self,observee,event):
sliceLogic = appLogic.GetSliceLogic(sliceNode)

if not insideView or not sliceNode or not sliceLogic:
self.currentLayoutName = None
# reset all the readouts
self.viewerColor.text = ""
self.viewInfo.text = ""
@@ -237,8 +230,6 @@ def processEvent(self,observee,event):
self.viewerFrame.show()
self.showImageBox.hide()

self.currentLayoutName = sliceNode.GetLayoutName()

# populate the widgets
self.viewerColor.setText( " " )
rgbColor = sliceNode.GetLayoutColor();

0 comments on commit 27de5a0

Please sign in to comment.