From: Simon Rit Date: Tue, 31 May 2011 13:07:43 +0000 (+0200) Subject: Only display data value in corner annotation if ImageActor is visible X-Git-Tag: v1.3.0~330^2^2~1 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a79509f4d3341ffe986a70aed2bd4565b3c416e7;p=clitk.git Only display data value in corner annotation if ImageActor is visible --- diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index bb83a25..74f2fc5 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -1236,7 +1236,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]) << ' '