From: Simon Rit Date: Tue, 31 May 2011 13:05:59 +0000 (+0200) Subject: Always UpdateCursorPosition even if ImageActor is not visible, drawing X-Git-Tag: v1.3.0~330^2^2~2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=75674d28faaaa08a3725309c42093483ce6d6a54;p=clitk.git Always UpdateCursorPosition even if ImageActor is not visible, drawing of slicer is handled by the renderer draw mode --- diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 22f0eed..bb83a25 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -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; } //----------------------------------------------------------------------------