Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test Strickler
[modules/hydro.git]
/
src
/
HYDROData
/
HYDROData_ProfileUZ.cxx
diff --git
a/src/HYDROData/HYDROData_ProfileUZ.cxx
b/src/HYDROData/HYDROData_ProfileUZ.cxx
old mode 100755
(executable)
new mode 100644
(file)
index
1189970
..
5dccf20
--- a/
src/HYDROData/HYDROData_ProfileUZ.cxx
+++ b/
src/HYDROData/HYDROData_ProfileUZ.cxx
@@
-36,7
+36,6
@@
#include <HYDROData_PolylineXY.h>
#include <HYDROData_PolylineXY.h>
-IMPLEMENT_STANDARD_HANDLE(HYDROData_ProfileUZ, HYDROData_IPolyline)
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_ProfileUZ, HYDROData_IPolyline)
HYDROData_ProfileUZ::HYDROData_ProfileUZ()
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_ProfileUZ, HYDROData_IPolyline)
HYDROData_ProfileUZ::HYDROData_ProfileUZ()
@@
-82,6
+81,7
@@
double HYDROData_ProfileUZ::GetDepthFromDistance( const PointsList& thePoints,
aResDepth = ( aPrevPoint.Y() + aRatio * aCurPoint.Y() ) / ( 1 + aRatio );
break;
}
aResDepth = ( aPrevPoint.Y() + aRatio * aCurPoint.Y() ) / ( 1 + aRatio );
break;
}
+ else aResDepth = aCurPoint.Y(); // TODO: workaround for normalized flat altitudes
aPrevPoint = aCurPoint;
}
aPrevPoint = aCurPoint;
}
@@
-258,7
+258,7
@@
void HYDROData_ProfileUZ::RemovePoint( const int /*theSectionIndex*/,
}
}
}
}
-HYDROData_ProfileUZ::PointsList HYDROData_ProfileUZ::GetPoints( const int /*theSectionIndex*/ ) const
+HYDROData_ProfileUZ::PointsList HYDROData_ProfileUZ::GetPoints( const int /*theSectionIndex*/
, bool /*IsConvertToGlobal*/
) const
{
PointsList aResList;
{
PointsList aResList;
@@
-278,7
+278,7
@@
HYDROData_ProfileUZ::PointsList HYDROData_ProfileUZ::GetPoints( const int /*theS
return aResList;
}
return aResList;
}
-void HYDROData_ProfileUZ::CalculateAndAddPoints(const NCollection_Sequence<gp_XYZ>& theXYZPoints, Handle
_HYDROData_PolylineXY
& thePolylineXY)
+void HYDROData_ProfileUZ::CalculateAndAddPoints(const NCollection_Sequence<gp_XYZ>& theXYZPoints, Handle
(HYDROData_PolylineXY)
& thePolylineXY)
{
// Fill 2D polyline
for ( int i = 1; i <= theXYZPoints.Size(); i++ ) {
{
// Fill 2D polyline
for ( int i = 1; i <= theXYZPoints.Size(); i++ ) {