if( a_current_index <= mySlider->maximum() )
mySlider->setMaximum( aLength-1 );
+
+ using namespace VISU;
+ SALOMEDS::Study_var aStudy = GetDSStudy( GetCStudy( GetAppStudy( myModule ) ) );
+ VISU::ColoredPrs3dCache_var aCache = GetVisuGen( myModule )->GetColoredPrs3dCache( aStudy );
+
+ long aMb = 1024 * 1024;
+ double aLimitedMemory = aCache->GetLimitedMemory();
+ myLimitedMemory->setValue( aLimitedMemory );
+
+ double aFreeMemory = (double)VISU_PipeLine::GetAvailableMemory( 2048 * aMb ) / (double)aMb;
+ double anUsedMemory = aCache->GetMemorySize();
+ double aLimitedMemoryMax = max( anUsedMemory + aFreeMemory, aLimitedMemory );
+ myLimitedMemory->setMaximum( aLimitedMemoryMax );
}
else
{