X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_DTM.h;h=d564d56c6728771cca43caaad7fdc0268ca6d791;hb=e7e76450be3fadf6ad263f78e10ceb8cd1f70deb;hp=59d3cd6811e8a7f60c67620e63f6512661e8cc50;hpb=10771d9fbe730be44e116052b3833e9a31cd9986;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_DTM.h b/src/HYDROData/HYDROData_DTM.h index 59d3cd68..d564d56c 100644 --- a/src/HYDROData/HYDROData_DTM.h +++ b/src/HYDROData/HYDROData_DTM.h @@ -34,6 +34,7 @@ #include #include +#include class gp_Pnt; class gp_Vec2d; @@ -133,7 +134,8 @@ protected: CurveUZ& theMidPointCurve, CurveUZ& theWidthCurve, int& intersection_nb, - double theTolerance = 1E-6 ); + double theTolerance, + QSet& warnings); static void CurveTo3D( const Handle(Geom2d_BSplineCurve)& theHydraulicAxis, const CurveUZ& theMidCurve, const CurveUZ& theWidthCurve, @@ -141,7 +143,7 @@ protected: static void Interpolate( const CurveUZ& theCurveA, const CurveUZ& theCurveB, int theNbSteps, std::vector& theInterpolation, - bool isAddSecond ); + bool isAddSecond); static std::vector Interpolate ( const Handle(Geom2d_BSplineCurve)& theHydraulicAxis, @@ -150,14 +152,18 @@ protected: const Handle(HYDROData_Profile)& theProfileB, double theXCurvB, double theDDZ, int theNbSteps, bool isAddSecond, - int& inter_nb_1, int& inter_nb_2 ); + int& inter_nb_1, int& inter_nb_2, + NCollection_DataMap>& warnings, + bool ToEstimateWarningsOnly); static AltitudePoints Interpolate( const std::vector& theProfiles, double theDDZ, double theSpatialStep, AltitudePoints& theLeft, AltitudePoints& theRight, std::vector& theMainProfiles, - std::set& invalInd ); + std::set& invalInd, + NCollection_DataMap>& warnings, + bool ToEstimateWarningsOnly); static void PointsToWire(const AltitudePoints& pnts, TopoDS_Wire& W ); @@ -189,7 +195,9 @@ protected: bool Create3dPres, bool Create2dPres, std::set& InvInd, - bool& ProjStat); + bool& ProjStat, + NCollection_DataMap>& warnings, + bool ToEstimateWarningsOnly); //static bool Get2dFaceFrom3dPres(const TopoDS_Compound& cmp, TopoDS_Face& outF, //TopTools_SequenceOfShape* Boundr = NULL, std::set ind = std::set() ); @@ -219,7 +227,14 @@ public: bool Create2dPres, std::set& InvInd, int thePntsLimit, - bool& WireIntersections); + bool& WireIntersections, + NCollection_DataMap>& warnings, + bool& ToEstimateWarnings); + + HYDRODATA_EXPORT void GetWarnings(NCollection_DataMap>& warnings); + + protected: + NCollection_DataMap> myWarnings; };