#include "HYDROGUI_LandCoverDlg.h"
#include "HYDROGUI_Module.h"
+#include "HYDROGUI_OCCDisplayer.h"
#include "HYDROGUI_Shape.h"
#include "HYDROGUI_Tool.h"
#include "HYDROGUI_UpdateFlags.h"
if ( !aStricklerTableObj.IsNull() )
{
// Get Strickler table data from the data model
- TColStd_SequenceOfExtendedString aTypes = aStricklerTableObj->GetTypes();
- for ( int i = 1; i <= aTypes.Length(); i++ )
+ QStringList aTypes = aStricklerTableObj->GetTypes();
+ for ( QStringList::iterator it = aTypes.begin(); it != aTypes.end(); ++it )
{
- QString aType = HYDROGUI_Tool::ToQString( aTypes.Value( i ) );
- if ( !aType.isEmpty() && !aStricklerTypes.contains( aType ))
+ QString aType = *it;
+ if ( !aType.isEmpty() && !aStricklerTypes.contains( aType ) )
aStricklerTypes.append( aType );
}
}
}
+
aStricklerTypes.sort();
aPanel->setAdditionalParams( aStricklerTypes );
}
module()->setIsToUpdate( aZoneObj );
+ module()->getOCCDisplayer()->SetToUpdateColorScale();
theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced | UF_VTKViewer;