From a79509f4d3341ffe986a70aed2bd4565b3c416e7 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Tue, 31 May 2011 15:07:43 +0200 Subject: [PATCH] Only display data value in corner annotation if ImageActor is visible --- vv/vvSlicer.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]) << ' ' -- 2.45.1