29 #ifndef _SMESH_NUMBEROFSEGMENTS_HXX_
30 #define _SMESH_NUMBEROFSEGMENTS_HXX_
52 const std::vector<double>& BuildDistributionExpr(
const char*,
int,
int )
throw (
SMESH_Exception );
53 const std::vector<double>& BuildDistributionTab(
const std::vector<double>&,
int,
int )
throw (
SMESH_Exception );
59 void SetNumberOfSegments(
int segmentsNumber)
65 int GetNumberOfSegments()
const;
81 void SetDistrType(DistrType typ)
87 DistrType GetDistrType()
const;
96 virtual void SetScaleFactor(
double scaleFactor)
104 double GetScaleFactor()
const
116 void SetTableFunction(const std::vector<
double>& table)
117 throw (SMESH_Exception);
124 const std::vector<
double>& GetTableFunction() const
125 throw (SMESH_Exception);
134 void SetExpressionFunction( const
char* expr)
135 throw (SMESH_Exception);
142 const
char* GetExpressionFunction() const
143 throw (SMESH_Exception);
154 void SetConversionMode(
int conv )
155 throw (SMESH_Exception);
162 int ConversionMode() const
163 throw (SMESH_Exception);
178 virtual
bool SetParametersByDefaults(const TDefaults& dflts, const
SMESH_Mesh* theMesh=0);
180 virtual std::ostream & SaveTo(std::ostream & save);
181 virtual std::istream & LoadFrom(std::istream & load);
186 int _numberOfSegments;
189 std::vector<
double> _table, _distr;
distribution with density function presented by table
#define STDMESHERS_EXPORT
This class represents hypothesis for 1d algorithm.
DistrType
This enumeration presents available types of distribution.