]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Additional parameter for splittiong of zones added.
authoradv <adv@opencascade.com>
Thu, 19 Sep 2013 13:18:14 +0000 (13:18 +0000)
committeradv <adv@opencascade.com>
Thu, 19 Sep 2013 13:18:14 +0000 (13:18 +0000)
src/HYDROGUI/HYDROGUI_Operations.cxx
src/HYDROGUI/HYDROGUI_SplitZonesTool.cxx
src/HYDROGUI/HYDROGUI_SplitZonesTool.h

index 16fc405fdb5b17a73818499417e14b75cb72f89c..72c51c9a2d295398b918fcdf6d1bf11aa49e494d 100644 (file)
@@ -339,7 +339,7 @@ void HYDROGUI_Module::onTestSplit()
     aZoneList.Append( anIterator.Current() );
 
   HYDROGUI_SplitZonesTool::SplitDataList aSplitDataList =
-    HYDROGUI_SplitZonesTool::SplitZones( aZoneList );
+    HYDROGUI_SplitZonesTool::SplitZones( aZoneList, NULL );
 
   int anIndex = 0;
   HYDROGUI_SplitZonesTool::SplitDataListIterator anIter( aSplitDataList );
index af490e461ac878098a6c723bd0a7ed83bde5a60d..590f6877a590857ecda4c8023e5f1d3d1d327527 100644 (file)
@@ -25,7 +25,8 @@
 #include <HYDROData_Zone.h>
 
 HYDROGUI_SplitZonesTool::SplitDataList
-HYDROGUI_SplitZonesTool::SplitZones( const HYDROData_SequenceOfObjects& theZoneList )
+HYDROGUI_SplitZonesTool::SplitZones( const HYDROData_SequenceOfObjects& theZoneList,
+                                     const Handle(HYDROData_Polyline)&  thePolylie )
 {
   SplitDataList anOutputSplitDataList;
 
index fc8c35c51a9d0f4c3031783dfaabc2790aeda5cd..03aa538192545b1b772fdb5f52e027cf5fce4c12 100644 (file)
@@ -28,6 +28,8 @@
 #include <QPainterPath>
 #include <QStringList>
 
+class Handle(HYDROData_Polyline);
+
 /**
  * \class HYDROGUI_SplitZonesTool
  * \brief This class contains methods used for splitting zones
@@ -54,7 +56,8 @@ public:
   typedef QListIterator<SplitData> SplitDataListIterator;
 
 public:
-  static SplitDataList       SplitZones( const HYDROData_SequenceOfObjects& theZoneList );
+  static SplitDataList       SplitZones( const HYDROData_SequenceOfObjects& theZoneList,
+                                         const Handle(HYDROData_Polyline)&  thePolylie  );
 
 private:
   static SplitDataList       SplitTwoData( const SplitData& theData1,