X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_SplitToZonesTool.h;h=b4e092eb87402a0704d875eba352d34f29ab248c;hb=d037276948abd700ed330e4d43e223c68421ce46;hp=c1a69130e0f575d79ba362db341fc46ae0925944;hpb=f0688b4c39fcc3e49c2b58a90724b9c1c84f1337;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_SplitToZonesTool.h b/src/HYDROData/HYDROData_SplitToZonesTool.h index c1a69130..b4e092eb 100644 --- a/src/HYDROData/HYDROData_SplitToZonesTool.h +++ b/src/HYDROData/HYDROData_SplitToZonesTool.h @@ -19,6 +19,10 @@ #ifndef HYDROData_SplitToZonesTool_H #define HYDROData_SplitToZonesTool_H +#ifdef WIN32 + #pragma warning ( disable: 4251 ) +#endif + #include #include #include @@ -26,11 +30,13 @@ #include #include #include -#include +#include +#include #include #include +#include -class Handle(HYDROData_PolylineXY); +class HYDROData_PolylineXY; /** * \class HYDROData_SplitToZonesTool @@ -46,7 +52,8 @@ public: { Data_None, Data_Zone, - Data_Edge + Data_Edge, + Data_IntEdge }; TopoDS_Shape Shape; @@ -83,7 +90,26 @@ public: static SplitDataList Split( const HYDROData_SequenceOfObjects& theObjectList, const HYDROData_SequenceOfObjects& theGroupsList, - const Handle(HYDROData_PolylineXY)& thePolyline ); + const Handle(HYDROData_PolylineXY)& thePolyline, + const HYDROData_SequenceOfObjects& InterPolys ); + + static SplitDataList Split( const HYDROData_SequenceOfObjects& theObjectList ); + + static void AddInternalEdges(HYDROData_DataMapOfShapeListOfShape& DM, + const HYDROData_SequenceOfObjects& thePolylines, + NCollection_DataMap* OutNE); + + static void CutFaceByEdges(const TopoDS_Face& in, + TopTools_ListOfShape& out, + const HYDROData_SequenceOfObjects& thePolylines, + NCollection_DataMap* OutNE, + TopTools_IndexedDataMapOfShapeListOfShape* OutOrSh2M); + + static int CutByEdges(const TopoDS_Shape& InSh, const TopTools_ListOfShape& InW, + TopTools_ListOfShape& outShs, + bool OutShapeAsRes, + TopTools_IndexedDataMapOfShapeShape* OutNE2OE, + TopTools_IndexedDataMapOfShapeListOfShape* OInSH2MSH); static void SetFileNames(const QString& theNameBefore, const QString& theNameAfter); @@ -92,7 +118,12 @@ private: /** * Split input faces. */ - static Standard_Integer SplitFaces(const TopoDS_Compound& theComp, HYDROData_Transform& theTool); + static bool SplitFaces(const TopoDS_Compound& theComp, HYDROData_Transform& theTool); }; +#ifdef WIN32 + #pragma warning ( default: 4251 ) +#endif + + #endif