Go to the documentation of this file.
28 #ifndef _SMESH_NUMBEROFSEGMENTS_HXX_
29 #define _SMESH_NUMBEROFSEGMENTS_HXX_
115 void SetTableFunction(const std::vector<
double>& table)
123 const std::vector<
double>& GetTableFunction() const
133 void SetExpressionFunction( const
char* expr)
141 const
char* GetExpressionFunction() const
153 void SetConversionMode(
int conv )
161 int ConversionMode() const
164 void SetReversedEdges( std::vector<
int>& ids);
166 void SetObjectEntry( const
char* entry ) { _objEntry = entry; }
186 virtual std::ostream &
SaveTo(std::ostream & save);
187 virtual std::istream &
LoadFrom(std::istream & load);
double _scaleFactor
the scale parameter for DT_Scale
virtual void SetScaleFactor(double scaleFactor)
Set scale factor for scale distribution.
void SetNumberOfSegments(int segmentsNumber)
Set the number of segments.
std::string _func
the expression of the function for DT_ExprFunc
@ DT_Regular
equidistant distribution
@ DT_Scale
scale distribution
std::vector< int > _edgeIDs
list of reversed edges ids
int GetNumberOfSegments() const
Get the number of segments.
const std::vector< double > & BuildDistributionExpr(const char *, int, int)
@ DT_TabFunc
distribution with density function presented by table
int _numberOfSegments
an edge will be split on to this number of segments
virtual std::istream & LoadFrom(std::istream &load)
DistrType GetDistrType() const
Get distribution type.
virtual ~StdMeshers_NumberOfSegments()
std::vector< double > _table
const std::vector< int > & GetReversedEdges() const
std::string _objEntry
Entry of the main object to reverse edges.
DistrType
This enumeration presents available types of distribution.
DistrType _distrType
the type of distribution of density function
#define STDMESHERS_EXPORT
StdMeshers_NumberOfSegments(int hypId, int studyId, SMESH_Gen *gen)
int _convMode
flag of conversion mode: 0=exponent, 1=cut negative
const char * GetObjectEntry()
virtual bool SetParametersByDefaults(const TDefaults &dflts, const SMESH_Mesh *theMesh=0)
Initialize my parameter values by default parameters.
double GetScaleFactor() const
Get scale factor for scale distribution.
const std::vector< double > & BuildDistributionTab(const std::vector< double > &, int, int)
This class represents hypothesis for 1d algorithm.
void SetDistrType(DistrType typ)
Set distribution type.
virtual bool SetParametersByMesh(const SMESH_Mesh *theMesh, const TopoDS_Shape &theShape)
Initialize number of segments by the mesh built on the geometry.
virtual std::ostream & SaveTo(std::ostream &save)