X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_Regular_1D.hxx;h=b02e21028ca105a94df59526151481cc92433248;hp=b038a91d2f7f1bcbfffc98ca7ab8626d9a481601;hb=94bdfc735c8615ab24bb304128c1b3c49bc597f4;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f diff --git a/src/StdMeshers/StdMeshers_Regular_1D.hxx b/src/StdMeshers/StdMeshers_Regular_1D.hxx index b038a91d2..b02e21028 100644 --- a/src/StdMeshers/StdMeshers_Regular_1D.hxx +++ b/src/StdMeshers/StdMeshers_Regular_1D.hxx @@ -32,9 +32,6 @@ #include "SMESH_1D_Algo.hxx" -#include -#include - class TopoDS_Edge; class StdMeshers_Regular_1D: @@ -52,7 +49,7 @@ public: const TopoDS_Shape& aShape); virtual const std::list & - GetUsedHypothesis (SMESH_Mesh & aMesh, const TopoDS_Shape & aShape); + GetUsedHypothesis(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape); ostream & SaveTo(ostream & save); istream & LoadFrom(istream & load); @@ -61,30 +58,43 @@ public: 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 ValueIndex { - NB_SEGMENTS_IND = 0, - SCALE_FACTOR_IND = 1, + SCALE_FACTOR_IND = 0, BEG_LENGTH_IND = 0, END_LENGTH_IND = 1, DEFLECTION_IND = 0 }; - + + enum IValueIndex { + NB_SEGMENTS_IND = 0, + DISTR_TYPE_IND = 1, + EXP_MODE_IND = 2 + }; + + enum VValueIndex { + TAB_FUNC_IND = 0 + }; + + enum SValueIndex { + EXPR_FUNC_IND = 0 + }; + HypothesisType _hypType; double _value[2]; - + int _ivalue[3]; + std::vector _vvalue[1]; + std::string _svalue[1]; + + // a source of propagated hypothesis, is set by CheckHypothesis() + // always called before Compute() + TopoDS_Shape _mainEdge; }; #endif