From: szy Date: Mon, 13 Jan 2014 14:17:50 +0000 (+0000) Subject: 13.01.2014. Adde debugging method SetFileNames. X-Git-Tag: BR_hydro_v_1_0~103 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fdf964c463d1b26d45057bc3e7963aa8b3d4c20f;p=modules%2Fhydro.git 13.01.2014. Adde debugging method SetFileNames. --- diff --git a/src/HYDROData/HYDROData_SplitToZonesTool.cxx b/src/HYDROData/HYDROData_SplitToZonesTool.cxx index 42b8a1b6..3658fa5c 100644 --- a/src/HYDROData/HYDROData_SplitToZonesTool.cxx +++ b/src/HYDROData/HYDROData_SplitToZonesTool.cxx @@ -76,6 +76,23 @@ Standard_Boolean buildLimFace(const TopoDS_Wire& theBndWire, TopoDS_Face& outFac return Standard_False; } //====================================================================================== + +void HYDROData_SplitToZonesTool::SetFileNames(const QString& theNameBefore, const QString& theNameAfter) +{ +#ifdef DEB_SPLIT_TO_ZONES_CHECK_PARTITION + if(!theNameBefore.isNull() && !theNameBefore.isEmpty()) + { + TCollection_AsciiString aName (theNameBefore.toStdString().data()); + fileNameBefore = aName; + } + if(!theNameAfter.isNull() && !theNameAfter.isEmpty()) + { + TCollection_AsciiString aName (theNameAfter.toStdString().data()); + HYDROData_Transform::SetFileName (aName); + } +#endif +} +//====================================================================================== Standard_Integer HYDROData_SplitToZonesTool::SplitFaces(const TopoDS_Compound& theComp, HYDROData_Transform& theTool) { diff --git a/src/HYDROData/HYDROData_SplitToZonesTool.h b/src/HYDROData/HYDROData_SplitToZonesTool.h index 2939d558..f2a5ad69 100644 --- a/src/HYDROData/HYDROData_SplitToZonesTool.h +++ b/src/HYDROData/HYDROData_SplitToZonesTool.h @@ -68,6 +68,8 @@ public: const HYDROData_SequenceOfObjects& theGroupsList, const Handle(HYDROData_PolylineXY)& thePolyline ); + static void SetFileNames(const QString& theNameBefore, const QString& theNameAfter); + private: static bool SplitTwoData( const SplitData& theData1, diff --git a/src/HYDROData/HYDROData_Transform.cxx b/src/HYDROData/HYDROData_Transform.cxx index b8fe8b15..1f162cb0 100644 --- a/src/HYDROData/HYDROData_Transform.cxx +++ b/src/HYDROData/HYDROData_Transform.cxx @@ -27,7 +27,12 @@ static TCollection_AsciiString fileNameAfter("AfterTranslation"); #endif - +void HYDROData_Transform::SetFileName(const TCollection_AsciiString& theNameAfter) +{ +#ifdef DEB_SPLIT_TO_ZONES_CHECK_PARTITION + fileNameAfter = theNameAfter; +#endif +} //======================================================================= //function : HYDROData_Transform //purpose : diff --git a/src/HYDROData/HYDROData_Transform.h b/src/HYDROData/HYDROData_Transform.h index d0d6a4ea..3f15bcdd 100644 --- a/src/HYDROData/HYDROData_Transform.h +++ b/src/HYDROData/HYDROData_Transform.h @@ -19,6 +19,7 @@ #include #include +#include //======================================================================= //class : HYDROData_Transform //purpose : @@ -80,6 +81,10 @@ class HYDROData_Transform : public BOPAlgo_BuilderShape // Standard_EXPORT virtual Standard_Boolean HasModified(); + + Standard_EXPORT + static void SetFileName(const TCollection_AsciiString& theNameAfter); + // // Inner content protected: