Salome HOME
13.01.2014. Adde debugging method SetFileNames.
authorszy <szy@opencascade.com>
Mon, 13 Jan 2014 14:17:50 +0000 (14:17 +0000)
committerszy <szy@opencascade.com>
Mon, 13 Jan 2014 14:17:50 +0000 (14:17 +0000)
src/HYDROData/HYDROData_SplitToZonesTool.cxx
src/HYDROData/HYDROData_SplitToZonesTool.h
src/HYDROData/HYDROData_Transform.cxx
src/HYDROData/HYDROData_Transform.h

index 42b8a1b6ade10257481bc805e7afe61e89a69d5b..3658fa5c767b89daf4cae83df775bbbbb9612dc9 100644 (file)
@@ -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)
 {
index 2939d5586fe9e018af07aa4c58842109c1dd3369..f2a5ad69e81964813c985bdfd245acc3e2e7676f 100644 (file)
@@ -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,
index b8fe8b15f87bac78f3d071cf859b18953c7e914d..1f162cb0c168f3d2fd85eafae7d4493a3f38a298 100644 (file)
 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  : 
index d0d6a4ea5524162feff23dc0fb3d5ee9deba9ed9..3f15bcddaa1031addc3ce30bd54597e98dc613ea 100644 (file)
@@ -19,6 +19,7 @@
 #include <BOPAlgo_BuilderShape.hxx>
 #include <BOPAlgo_Builder.hxx>
 
+#include <TCollection_AsciiString.hxx>
 //=======================================================================
 //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: