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;
82 void SetDistrType(DistrType typ);
87 DistrType GetDistrType()
const;
92 bool IsValidDistrType(
int distrType)
const;
101 virtual void SetScaleFactor(
double scaleFactor);
108 double GetScaleFactor()
const;
123 double GetBeta()
const;
141 const std::vector<double>& GetTableFunction()
const;
150 void SetExpressionFunction(
const char* expr);
157 const char* GetExpressionFunction()
const;
164 static std::string CheckExpressionFunction(
const std::string& expr,
176 void SetConversionMode(
int conv );
183 int ConversionMode()
const;
199 virtual std::ostream &
SaveTo(std::ostream & save);
200 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
int _convMode
flag of conversion mode: 0=exponent, 1=cut negative
Definition: StdMeshers_NumberOfSegments.hxx:211
const std::vector< double > & BuildDistributionTab(const std::vector< double > &, int, int)
virtual void SetBeta(double scaleFactor)
Set beta coefficient for Beta Law distribution.
smIdType _numberOfSegments
an edge will be split on to this number of segments
Definition: StdMeshers_NumberOfSegments.hxx:205
void SetTableFunction(const std::vector< double > &table)
Set table function for distribution DT_TabFunc.
double _beta
beta coefficient for DT_BetaLaw
Definition: StdMeshers_NumberOfSegments.hxx:208
double _scaleFactor
the scale parameter for DT_Scale
Definition: StdMeshers_NumberOfSegments.hxx:207
std::vector< double > _distr
the table for DT_TabFunc, a sequence of pairs of numbers
Definition: StdMeshers_NumberOfSegments.hxx:209
DistrType
This enumeration presents available types of distribution.
Definition: StdMeshers_NumberOfSegments.hxx:71
@ DT_ExprFunc
distribution with density function presented by expression
Definition: StdMeshers_NumberOfSegments.hxx:75
@ 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:206
const std::vector< double > & BuildDistributionExpr(const char *, int, int)
std::string _func
the expression of the function for DT_ExprFunc
Definition: StdMeshers_NumberOfSegments.hxx:210
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