From: adv Date: Thu, 19 Sep 2013 13:18:14 +0000 (+0000) Subject: Additional parameter for splittiong of zones added. X-Git-Tag: BR_hydro_v_0_1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c4c1477cae65326e93b30ce5e93c166ff871ca9e;p=modules%2Fhydro.git Additional parameter for splittiong of zones added. --- diff --git a/src/HYDROGUI/HYDROGUI_Operations.cxx b/src/HYDROGUI/HYDROGUI_Operations.cxx index 16fc405f..72c51c9a 100644 --- a/src/HYDROGUI/HYDROGUI_Operations.cxx +++ b/src/HYDROGUI/HYDROGUI_Operations.cxx @@ -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 ); diff --git a/src/HYDROGUI/HYDROGUI_SplitZonesTool.cxx b/src/HYDROGUI/HYDROGUI_SplitZonesTool.cxx index af490e46..590f6877 100644 --- a/src/HYDROGUI/HYDROGUI_SplitZonesTool.cxx +++ b/src/HYDROGUI/HYDROGUI_SplitZonesTool.cxx @@ -25,7 +25,8 @@ #include HYDROGUI_SplitZonesTool::SplitDataList -HYDROGUI_SplitZonesTool::SplitZones( const HYDROData_SequenceOfObjects& theZoneList ) +HYDROGUI_SplitZonesTool::SplitZones( const HYDROData_SequenceOfObjects& theZoneList, + const Handle(HYDROData_Polyline)& thePolylie ) { SplitDataList anOutputSplitDataList; diff --git a/src/HYDROGUI/HYDROGUI_SplitZonesTool.h b/src/HYDROGUI/HYDROGUI_SplitZonesTool.h index fc8c35c5..03aa5381 100644 --- a/src/HYDROGUI/HYDROGUI_SplitZonesTool.h +++ b/src/HYDROGUI/HYDROGUI_SplitZonesTool.h @@ -28,6 +28,8 @@ #include #include +class Handle(HYDROData_Polyline); + /** * \class HYDROGUI_SplitZonesTool * \brief This class contains methods used for splitting zones @@ -54,7 +56,8 @@ public: typedef QListIterator 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,