#=========================================================
# Find libstatgrab is installed, add clitkMemoryUsage.cxx in the library
-if(NOT DEFINED CLITK_MEMORY_INFO OR CLITK_MEMORY_INFO)
- find_library(LIBSTATGRAB NAMES statgrab PATHS)
- if(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
+#if(NOT DEFINED CLITK_MEMORY_INFO OR CLITK_MEMORY_INFO)
+# find_library(LIBSTATGRAB NAMES statgrab PATHS)
+# if(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
# message("Install libstatgrab (http://www.i-scream.org/libstatgrab/) for memory usage information")
set(CLITK_MEMORY_INFO OFF)
- else(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
- set(CLITK_MEMORY_INFO ON)
- endif(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
-endif()
+# else(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
+# set(CLITK_MEMORY_INFO ON)
+# endif(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
+#endif()
#=========================================================
int vvSlicer::GetMaxCurrentTSlice()
{
int t = mCurrentTSlice;
- if(mOverlay)
+ if(mOverlay && mOverlayActor->GetVisibility())
t = std::max(t, mCurrentOverlayTSlice);
- if(mFusion&& (mFusionSequenceCode<0)) //ignore fusionSequence data: for these, the times are not to be related (this way)
+ if(mFusion&& (mFusionSequenceCode<0) && mFusionActor->GetVisibility()) //ignore fusionSequence data: for these, the times are not to be related (this way)
t = std::max(t, mCurrentFusionTSlice);
return t;
}