From c5ae2ec8ffa7b30a77bcef4fbb316c6ece4928b5 Mon Sep 17 00:00:00 2001 From: asl Date: Tue, 15 Nov 2016 14:56:42 +0300 Subject: [PATCH] correct update status of stream and DTM --- src/HYDROData/HYDROData_DTM.cxx | 9 ++++++++- src/HYDROData/HYDROData_Stream.cxx | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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 ) -- 2.39.2