]> Creatis software - clitk.git/blobdiff - vv/vvSlicer.cxx
Only display data value in corner annotation if ImageActor is visible
[clitk.git] / vv / vvSlicer.cxx
index bb83a259b32e3b440e7da02d328b3346cc2f5fa7..74f2fc570fa9e160d84b68b0d9171d061fce1ae5 100644 (file)
@@ -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]) << ' '