-// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
+// Copyright (C) 2014-2015 EDF-R&D
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
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 =
+ Handle(HYDROData_Entity)::DownCast( anIter.Value() );
if ( aRefbject.IsNull() )
continue;
if ( aRefObjectName.isEmpty() )
continue;
- aGeomObjectsNames.append( aRefObjectName );
+ anObjectsNames.append( aRefObjectName );
}
//setFillingColor( HYDROGUI_Tool::GenerateFillingColor( aDocument, aGeomObjectsNames ) );