]> Creatis software - clitk.git/commitdiff
Always UpdateCursorPosition even if ImageActor is not visible, drawing
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 31 May 2011 13:05:59 +0000 (15:05 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 31 May 2011 13:05:59 +0000 (15:05 +0200)
of slicer is handled by the renderer draw mode

vv/vvSlicer.cxx

index 22f0eedae4f55b95b38f306ab0838aefd0114b7a..bb83a259b32e3b440e7da02d328b3346cc2f5fa7 100644 (file)
@@ -1296,13 +1296,11 @@ void vvSlicer::Render()
 //----------------------------------------------------------------------------
 void vvSlicer::UpdateCursorPosition()
 {
-  if (this->GetImageActor()->GetVisibility()) {
-    pdmA->SetVisibility(true);
-    mCursor[0] = mCurrent[0];
-    mCursor[1] = mCurrent[1];
-    mCursor[2] = mCurrent[2];
-    mCursor[3] = mCurrentTSlice;
-  }
+  pdmA->SetVisibility(true);
+  mCursor[0] = mCurrent[0];
+  mCursor[1] = mCurrent[1];
+  mCursor[2] = mCurrent[2];
+  mCursor[3] = mCurrentTSlice;
 }
 //----------------------------------------------------------------------------