X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_VTKPrsShape.cxx;h=af8b9bf89502ebdaa90f3363c142c8ef10265665;hb=58bb6b7459bebeeb089c9ed486c4683a8bae7288;hp=5d152ea5de908ae1e658e085875f617948a40033;hpb=2cf9e838e652ae811d9b3931914771ad1836c6b8;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_VTKPrsShape.cxx b/src/HYDROGUI/HYDROGUI_VTKPrsShape.cxx index 5d152ea5..af8b9bf8 100644 --- a/src/HYDROGUI/HYDROGUI_VTKPrsShape.cxx +++ b/src/HYDROGUI/HYDROGUI_VTKPrsShape.cxx @@ -186,14 +186,13 @@ void HYDROGUI_VTKPrsShape::buildShape() else { // Generate the filling color for zone - QStringList aGeomObjectsNames; + QStringList anObjectsNames; - HYDROData_SequenceOfObjects aRefObjects = aZone->GetGeometryObjects(); + HYDROData_SequenceOfObjects aRefObjects = aZone->GetObjects(); HYDROData_SequenceOfObjects::Iterator anIter( aRefObjects ); for ( ; anIter.More(); anIter.Next() ) { - Handle(HYDROData_Object) aRefbject = - Handle(HYDROData_Object)::DownCast( anIter.Value() ); + Handle(HYDROData_Entity) aRefbject = anIter.Value(); if ( aRefbject.IsNull() ) continue; @@ -201,7 +200,7 @@ void HYDROGUI_VTKPrsShape::buildShape() if ( aRefObjectName.isEmpty() ) continue; - aGeomObjectsNames.append( aRefObjectName ); + anObjectsNames.append( aRefObjectName ); } //setFillingColor( HYDROGUI_Tool::GenerateFillingColor( aDocument, aGeomObjectsNames ) );