Salome HOME
PAL7705: Possibility to override default implementation added
[modules/smesh.git] / src / StdMeshers / StdMeshers_Regular_1D.hxx
index b038a91d2f7f1bcbfffc98ca7ab8626d9a481601..b9d61432b11189afdac127515b61ba5ab215c537 100644 (file)
@@ -32,9 +32,6 @@
 
 #include "SMESH_1D_Algo.hxx"
 
 
 #include "SMESH_1D_Algo.hxx"
 
-#include <TopoDS_Shape.hxx>
-#include <TopTools_ListOfShape.hxx>
-
 class TopoDS_Edge;
 
 class StdMeshers_Regular_1D:
 class TopoDS_Edge;
 
 class StdMeshers_Regular_1D:
@@ -52,7 +49,7 @@ public:
                       const TopoDS_Shape& aShape);
 
   virtual const std::list <const SMESHDS_Hypothesis *> &
                       const TopoDS_Shape& aShape);
 
   virtual const std::list <const SMESHDS_Hypothesis *> &
-          GetUsedHypothesis (SMESH_Mesh & aMesh, const TopoDS_Shape & aShape);
+    GetUsedHypothesis(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape);
 
   ostream & SaveTo(ostream & save);
   istream & LoadFrom(istream & load);
 
   ostream & SaveTo(ostream & save);
   istream & LoadFrom(istream & load);
@@ -61,15 +58,9 @@ public:
 
 protected:
 
 
 protected:
 
-  Standard_Boolean IsPropagated (SMESH_Mesh         & theMesh,
-                                 const TopoDS_Shape & theShape);
-
-  void GetOppositeEdges (const TopoDS_Shape&   theShape,
-                         const TopoDS_Shape&   theEdge,
-                         TopTools_ListOfShape& theOppositeEdges) const;
-
-  bool computeInternalParameters (const TopoDS_Edge&    theEdge,
-                                  std::list< double > & theParameters ) const;
+  virtual bool computeInternalParameters (const TopoDS_Edge&    theEdge,
+                                          std::list< double > & theParameters,
+                                          const bool            theReverse) const;
 
   enum HypothesisType { LOCAL_LENGTH, NB_SEGMENTS, BEG_END_LENGTH, DEFLECTION, ARITHMETIC_1D, NONE };
 
 
   enum HypothesisType { LOCAL_LENGTH, NB_SEGMENTS, BEG_END_LENGTH, DEFLECTION, ARITHMETIC_1D, NONE };
 
@@ -80,11 +71,14 @@ protected:
     END_LENGTH_IND   = 1,
     DEFLECTION_IND   = 0
     };
     END_LENGTH_IND   = 1,
     DEFLECTION_IND   = 0
     };
-  
+
   HypothesisType _hypType;
 
   double _value[2];
   HypothesisType _hypType;
 
   double _value[2];
-  
+
+  // a source of propagated hypothesis, is set by CheckHypothesis()
+  // always called before Compute()
+  TopoDS_Shape _mainEdge;
 };
 
 #endif
 };
 
 #endif