From: asl Date: Tue, 15 Nov 2016 11:56:42 +0000 (+0300) Subject: correct update status of stream and DTM X-Git-Tag: v1.6~43 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5ae2ec8ffa7b30a77bcef4fbb316c6ece4928b5;p=modules%2Fhydro.git correct update status of stream and DTM --- diff --git a/src/HYDROData/HYDROData_DTM.cxx b/src/HYDROData/HYDROData_DTM.cxx index e2bbbdea..c3246969 100644 --- a/src/HYDROData/HYDROData_DTM.cxx +++ b/src/HYDROData/HYDROData_DTM.cxx @@ -80,7 +80,11 @@ double HYDROData_DTM::CurveUZ::DeltaZ() const HYDROData_DTM::CurveUZ HYDROData_DTM::CurveUZ::operator + ( const CurveUZ& c ) const { HYDROData_DTM::CurveUZ res( Xcurv() + c.Xcurv(), ProfileDir() + c.ProfileDir(), DeltaZ() + c.DeltaZ() ); - size_t n = size(); + size_t n = size(), n1 = c.size(); + if( n!=n1 ) + { + std::cout << "Warning: different number of points in curves: " << n << ", " << n1 << std::endl; + } res.reserve( n ); for( int i=0; iUpdate(); UpdatePrs( dtm ); + + HYDROData_NaturalObject::Update(); } bool HYDROData_Stream::IsHas2dPrs() const @@ -337,6 +339,7 @@ double HYDROData_Stream::GetDDZ() const void HYDROData_Stream::SetDDZ( double theDDZ ) { DTM()->SetDDZ( theDDZ ); + Changed( Geom_3d ); } double HYDROData_Stream::GetSpatialStep() const @@ -347,6 +350,7 @@ double HYDROData_Stream::GetSpatialStep() const void HYDROData_Stream::SetSpatialStep( double theSpatialStep ) { DTM()->SetSpatialStep( theSpatialStep ); + Changed( Geom_3d ); } bool HYDROData_Stream::SetHydraulicAxis( const Handle(HYDROData_PolylineXY)& theAxis )