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)
{
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,
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 :
#include <BOPAlgo_BuilderShape.hxx>
#include <BOPAlgo_Builder.hxx>
+#include <TCollection_AsciiString.hxx>
//=======================================================================
//class : HYDROData_Transform
//purpose :
//
Standard_EXPORT
virtual Standard_Boolean HasModified();
+
+ Standard_EXPORT
+ static void SetFileName(const TCollection_AsciiString& theNameAfter);
+
//
// Inner content
protected: