28 #ifndef _SMESH_NUMBEROFSEGMENTS_HXX_ 29 #define _SMESH_NUMBEROFSEGMENTS_HXX_ 51 const std::vector<double>& BuildDistributionExpr(
const char*,
int,
int )
throw (
SALOME_Exception );
52 const std::vector<double>& BuildDistributionTab(
const std::vector<double>&,
int,
int )
throw (
SALOME_Exception );
58 void SetNumberOfSegments(
int segmentsNumber)
64 int GetNumberOfSegments()
const;
95 virtual void SetScaleFactor(
double scaleFactor)
103 double GetScaleFactor()
const 115 void SetTableFunction(const
std::vector<
double>& table)
116 throw (SALOME_Exception);
123 const
std::vector<
double>& GetTableFunction() const
124 throw (SALOME_Exception);
133 void SetExpressionFunction( const
char* expr)
134 throw (SALOME_Exception);
141 const
char* GetExpressionFunction() const
142 throw (SALOME_Exception);
153 void SetConversionMode(
int conv )
154 throw (SALOME_Exception);
161 int ConversionMode() const
162 throw (SALOME_Exception);
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);
std::string _objEntry
Entry of the main object to reverse edges.
std::vector< int > _edgeIDs
list of reversed edges ids
distribution with density function presented by table
DistrType _distrType
the type of distribution of density function
std::vector< double > _table
int _numberOfSegments
an edge will be split on to this number of segments
const std::vector< int > & GetReversedEdges() const
std::string _func
the expression of the function for DT_ExprFunc
int _convMode
flag of conversion mode: 0=exponent, 1=cut negative
const char * GetObjectEntry()
#define STDMESHERS_EXPORT
This class represents hypothesis for 1d algorithm.
double _scaleFactor
the scale parameter for DT_Scale
virtual std::istream & LoadFrom(std::istream &load)=0
virtual bool SetParametersByDefaults(const TDefaults &dflts, const SMESH_Mesh *theMesh=0)=0
Initialize my parameter values by default parameters.
virtual std::ostream & SaveTo(std::ostream &save)=0
virtual bool SetParametersByMesh(const SMESH_Mesh *theMesh, const TopoDS_Shape &theShape)=0
Initialize my parameter values by the mesh built on the geometry.
DistrType
This enumeration presents available types of distribution.