From: asl Date: Tue, 30 Jun 2015 06:44:25 +0000 (+0300) Subject: #refs 585: the method IsCustom() X-Git-Tag: v1.4.2~7^2~1^2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b4cac59e90d65d42c74ec15671b9d21e58dd412f;p=modules%2Fhydro.git #refs 585: the method IsCustom() --- diff --git a/src/HYDROData/HYDROData_PolylineXY.cxx b/src/HYDROData/HYDROData_PolylineXY.cxx index ab34af79..8071d35c 100755 --- a/src/HYDROData/HYDROData_PolylineXY.cxx +++ b/src/HYDROData/HYDROData_PolylineXY.cxx @@ -1080,6 +1080,11 @@ HYDROData_PolylineXY::PointsList HYDROData_PolylineXY::GetPoints( const int theS { PointsList aResList; + if( IsCustom() ) + { + //TODO: make interpolation to fill the list + } + Handle(TDataStd_RealList) aListX, aListY; getPointsLists( theSectionIndex, aListX, aListY, false ); if ( aListX.IsNull() || aListY.IsNull() || aListX->IsEmpty() ) @@ -1174,3 +1179,12 @@ void HYDROData_PolylineXY::Transform( const QTransform& theTrsf ) Update(); } +bool HYDROData_PolylineXY::IsCustom() const +{ + bool isNull = getPolylineShape().IsNull(); + int aNbPoints = 0; + for( int i=0, n=NbSections(); i