X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicer.cxx;h=43583571456b3d12d6253bc27e7fb17449eb893a;hb=369c7dae5e7f834096e7c9cee50f27112b420705;hp=af3f0e6d864f06ca90203c4b4419599f131dfa5a;hpb=8eed6bc78fb0ef451329c9aaa1df10271bda1129;p=clitk.git diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index af3f0e6..4358357 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -1243,7 +1243,9 @@ void vvSlicer::Render() int ix, iy, iz; double value = this->GetScalarComponentAsDouble(this->GetInput(), X, Y, Z, ix, iy, iz); - worldPos << "data value : " << value << std::endl; + if(ImageActor->GetVisibility()) + worldPos << "data value : " << value << std::endl; + worldPos << "mm : " << lrint(mCurrent[0]) << ' ' << lrint(mCurrent[1]) << ' ' << lrint(mCurrent[2]) << ' ' @@ -1303,13 +1305,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; } //----------------------------------------------------------------------------