| 
					
				 | 
			
			
				@@ -12,6 +12,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // STD includes 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #include <cstdlib> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #include <iostream> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <limits> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 int ctkVTKHistogramTest4( int argc, char * argv []) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -31,6 +32,14 @@ int ctkVTKHistogramTest4( int argc, char * argv []) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   dataArray->InsertNextTuple1( 220.0001); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   dataArray->InsertNextTuple1(1234.0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   dataArray->InsertNextTuple1(220.0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if(std::numeric_limits<float>::has_quiet_NaN) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // These should be ignored. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    const float positiveNaN = std::numeric_limits<float>::quiet_NaN(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    dataArray->InsertNextTuple1(positiveNaN); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    const float negativeNaN = - positiveNaN; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    dataArray->InsertNextTuple1(negativeNaN); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   histogram.setDataArray(dataArray); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (histogram.dataArray() != dataArray) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 |