void HYDROData_CalculationCase::SetBoundaryPolyline( const Handle(HYDROData_Polyline)& thePolyline )
{
+ Handle(HYDROData_Polyline) aPrevPolyline = GetBoundaryPolyline();
+
SetReferenceObject( thePolyline, DataTag_Polyline );
+
+ // Indicate model of the need to update zones splitting
+ SetToUpdate( !IsEqual( aPrevPolyline, thePolyline ) || IsMustBeUpdated() );
}
Handle(HYDROData_Polyline) HYDROData_CalculationCase::GetBoundaryPolyline() const
void HYDROData_CalculationCase::RemoveBoundaryPolyline()
{
+ Handle(HYDROData_Polyline) aPrevPolyline = GetBoundaryPolyline();
+
ClearReferenceObjects( DataTag_Polyline );
+
+ // Indicate model of the need to update zones splitting
+ SetToUpdate( !aPrevPolyline.IsNull() || IsMustBeUpdated() );
}
Handle(HYDROData_Region) HYDROData_CalculationCase::AddNewRegion( const Handle(HYDROData_Zone)& theZone )