]> Creatis software - clitk.git/commitdiff
Only display data value in corner annotation if ImageActor is visible
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 31 May 2011 13:07:43 +0000 (15:07 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 31 May 2011 13:07:43 +0000 (15:07 +0200)
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]) << ' '