X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_SplitToZonesTool.h;h=b4e092eb87402a0704d875eba352d34f29ab248c;hb=5c4e50dc9c57c22ea5d7422ca12ce95e45010950;hp=160fba0d64279d857b71550f9c4ddd1f9da81997;hpb=6b60d479d87151dc450c93a914bc60936dbcd5cc;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_SplitToZonesTool.h b/src/HYDROData/HYDROData_SplitToZonesTool.h index 160fba0d..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,10 +90,27 @@ 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); private: @@ -94,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