Salome HOME
refs #561: the draft data model for Strickler table
[modules/hydro.git] / src / HYDROData / HYDROData_Pipes.h
index 3541d2978018494fd4728b240c86606e35885dfb..e9dbc6a0063cfeb539559517186cea06f97a495c 100644 (file)
@@ -1,3 +1,36 @@
+// Copyright (C) 2014-2015  EDF-R&D
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #ifndef HYDROData_Pipes_HeaderFile
 #define HYDROData_Pipes_HeaderFile
@@ -6,8 +39,10 @@
 #include <TopoDS_Wire.hxx>
 #include <gp_Pnt.hxx>
 #include <TopTools_ListOfShape.hxx>
+#include <ShapeUpgrade_UnifySameDomain.hxx>
 
 class BRepOffsetAPI_MakePipeShell;
+class TopoDS_Face;
 
 class HYDROData_Canal3dAnd2d
 {
@@ -45,6 +80,7 @@ public:
   TopoDS_Wire GetRightBank();
   TopoDS_Wire GetInlet();
   TopoDS_Wire GetOutlet();
+  Standard_Integer GetStatus();
 
   void MakeSharpVertexList();
 
@@ -77,6 +113,16 @@ private:
   //TopoDS_Shape myLeftBank;
   //TopoDS_Shape myRightBank;
 
+  Standard_Integer myStatus;
+  //0 - Ok
+  //1 - some edges does not belong to same plane or parallel (fillet can not be build)
+  //2 - can not create fillet at some vertex with given radius: the length of some edge is too small respective to width of canal
+  //3 - fillet failed at some vertex
+  //4 - fillet failed
+  //5 - projection failed
+  //6 - sweep 3d failed
+  //7 - sweep 2d failed
+
   Standard_Real myFilletRadius;
   TopTools_ListOfShape mySharpVertexList;
   Standard_Real myTolAngular;