Handle(HYDROData_StricklerTable)::DownCast( anIterator.Current() );
if ( !aStricklerTableObj.IsNull() )
{
- // TODO: implement GetTypes method in data model
- //QStringList aTypes = aStricklerTableObj->GetTypes();
- // The code below is a sample of data filling list of Strickler types
- QStringList aTypes;
- aTypes.append("Zones de champs, prairies, sans cultures");
- aTypes.append("Canaux naturels");
- aTypes.append("Zones à faible urbanization (bourg)");
- QStringList::const_iterator anIt = aTypes.begin(), aLast = aTypes.end();
- for( ; anIt!=aLast; anIt++ )
+ // Get Strickler table data from the data model
+ TColStd_SequenceOfExtendedString aTypes = aStricklerTableObj->GetTypes();
+ for ( int i = 1; i <= aTypes.Length(); i++ )
{
- QString aType = *anIt;
+ QString aType = HYDROGUI_Tool::ToQString( aTypes.Value( i ) );
if ( !aType.isEmpty() && !aStricklerTypes.contains( aType ))
aStricklerTypes.append( aType );
}
if ( aViewManager && myPreviewPrs )
{
- // TODO: Temporary commented until GetFillingColor, DefaultFillingColor,
- // GetBorderColor and DefaultBorderColor data model methods will be implemented
- /*
QColor aFillingColor = HYDROData_LandCover::DefaultFillingColor();
QColor aBorderColor = HYDROData_LandCover::DefaultBorderColor();
if ( !myEditedObject.IsNull() ) {
myPreviewPrs->setFillingColor( aFillingColor, false, false );
myPreviewPrs->setBorderColor( aBorderColor, false, false );
- */
TopoDS_Face aFace;
if( !aZoneShape.IsNull() )