return TopoDS_Shape();
}
+bool HYDROData_Zone::IsMergingNeed() const
+{
+ Handle(HYDROData_Bathymetry) aRefBathymetry;
+
+ HYDROData_SequenceOfObjects aGeomObjects = GetGeometryObjects();
+ HYDROData_SequenceOfObjects::Iterator aGeomObjsIter( aGeomObjects );
+ for ( ; aGeomObjsIter.More(); aGeomObjsIter.Next() )
+ {
+ Handle(HYDROData_Object) aRefGeomObj =
+ Handle(HYDROData_Object)::DownCast( aGeomObjsIter.Value() );
+ if ( aRefGeomObj.IsNull() )
+ continue;
+
+ Handle(HYDROData_Bathymetry) anObjBathymetry = aRefGeomObj->GetBathymetry();
+ if ( anObjBathymetry.IsNull() )
+ continue;
+
+ if ( aRefBathymetry.IsNull() )
+ {
+ aRefBathymetry = anObjBathymetry;
+ continue;
+ }
+
+ if ( !IsEqual( aRefBathymetry, anObjBathymetry ) )
+ return true;
+ }
+
+ return false;
+}
+
void HYDROData_Zone::SetMergeType( const MergeBathymetriesType& theType )
{
Handle(TDataStd_Integer) anInt;
HYDRODATA_EXPORT virtual TopoDS_Shape GetShape() const;
+ /**
+ * Returns true if zone needs merge of bathymetries.
+ */
+ HYDRODATA_EXPORT virtual bool IsMergingNeed() const;
+
+
/**
* Sets the merging type for conflict bathymetries.
* By default it is set to Merge_UNKNOWN.