29 #ifndef _SMESH_NUMBEROFSEGMENTS_HXX_
30 #define _SMESH_NUMBEROFSEGMENTS_HXX_
34 #include "Utils_SALOME_Exception.hxx"
36 #include <smIdType.hxx>
60 void SetNumberOfSegments(smIdType segmentsNumber);
65 smIdType GetNumberOfSegments()
const;
81 void SetDistrType(DistrType typ);
86 DistrType GetDistrType()
const;
95 virtual void SetScaleFactor(
double scaleFactor);
102 double GetScaleFactor()
const;
120 const std::vector<double>& GetTableFunction()
const;
129 void SetExpressionFunction(
const char* expr);
136 const char* GetExpressionFunction()
const;
143 static std::string CheckExpressionFunction(
const std::string& expr,
155 void SetConversionMode(
int conv );
162 int ConversionMode()
const;
178 virtual std::ostream &
SaveTo(std::ostream & save);
179 virtual std::istream &
LoadFrom(std::istream & load);
ostream & operator<<(ostream &OS, const SMDS_MeshElement *e)
Definition: SMDS_MeshElement.cxx:212
#define STDMESHERS_EXPORT
Definition: SMESH_StdMeshers.hxx:38
istream & operator>>(istream &load, StdMeshers_AutomaticLength &hyp)
Definition: StdMeshers_AutomaticLength.cxx:326
Definition: SMESH_Gen.hxx:68
virtual bool SetParametersByDefaults(const TDefaults &dflts, const SMESH_Mesh *theMesh=0)=0
Initialize my parameter values by default parameters.
virtual bool SetParametersByMesh(const SMESH_Mesh *theMesh, const TopoDS_Shape &theShape)=0
Initialize my parameter values by the mesh built on the geometry.
Definition: SMESH_Mesh.hxx:80
This class represents hypothesis for 1d algorithm.
Definition: StdMeshers_NumberOfSegments.hxx:47
const std::vector< double > & BuildDistributionTab(const std::vector< double > &, int, int)
int _convMode
flag of conversion mode: 0=exponent, 1=cut negative
Definition: StdMeshers_NumberOfSegments.hxx:189
smIdType _numberOfSegments
an edge will be split on to this number of segments
Definition: StdMeshers_NumberOfSegments.hxx:184
const std::vector< double > & BuildDistributionExpr(const char *, int, int)
void SetTableFunction(const std::vector< double > &table)
Set table function for distribution DT_TabFunc.
double _scaleFactor
the scale parameter for DT_Scale
Definition: StdMeshers_NumberOfSegments.hxx:186
std::vector< double > _distr
the table for DT_TabFunc, a sequence of pairs of numbers
Definition: StdMeshers_NumberOfSegments.hxx:187
DistrType
This enumeration presents available types of distribution.
Definition: StdMeshers_NumberOfSegments.hxx:71
@ DT_TabFunc
distribution with density function presented by table
Definition: StdMeshers_NumberOfSegments.hxx:74
@ DT_Scale
scale distribution
Definition: StdMeshers_NumberOfSegments.hxx:73
@ DT_Regular
equidistant distribution
Definition: StdMeshers_NumberOfSegments.hxx:72
DistrType _distrType
the type of distribution of density function
Definition: StdMeshers_NumberOfSegments.hxx:185
std::string _func
the expression of the function for DT_ExprFunc
Definition: StdMeshers_NumberOfSegments.hxx:188
A base of reversible 1D hypotheses.
Definition: StdMeshers_Reversible1D.hxx:39
virtual std::istream & LoadFrom(std::istream &load)
Definition: StdMeshers_Reversible1D.cxx:83
virtual std::ostream & SaveTo(std::ostream &save)
Definition: StdMeshers_Reversible1D.cxx:63
Definition: SMESH_Hypothesis.hxx:100