{
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() )
Update();
}
+bool HYDROData_PolylineXY::IsCustom() const
+{
+ bool isNull = getPolylineShape().IsNull();
+ int aNbPoints = 0;
+
+ //TODO: to check if there is no points
+ //for( int i=0, n=NbSections(); i<n; i++ )
+ // aNbPoints += NbPoints( i );
+
+ return !isNull && aNbPoints == 0;
+}