+ /*!
+ * \brief Get scale factor for scale distribution
+ *
+ * Throws SALOME_Exception if distribution type is not DT_Scale
+ */
+ double GetScaleFactor() const
+ throw (SALOME_Exception);
+
+ /*!
+ * \brief Set table function for distribution DT_TabFunc
+ * \param table - this vector contains the pairs (parameter, value)
+ * following each by other, so the number of elements in the vector
+ * must be even. The parameters must be in range [0,1] and sorted in
+ * increase order. The values of function must be positive.
+ *
+ * Throws SALOME_Exception if distribution type is not DT_TabFunc
+ */
+ void SetTableFunction(const std::vector<double>& table)
+ throw (SALOME_Exception);
+
+ /*!
+ * \brief Get table function for distribution DT_TabFunc
+ *
+ * Throws SALOME_Exception if distribution type is not DT_TabFunc
+ */
+ const std::vector<double>& GetTableFunction() const
+ throw (SALOME_Exception);
+
+ /*!
+ * \brief Set expression function for distribution DT_ExprFunc
+ * \param expr - string containing the expression of the function
+ * f(t), e.g. "sin(t)"
+ *
+ * Throws SALOME_Exception if distribution type is not DT_ExprFunc
+ */
+ void SetExpressionFunction( const char* expr)
+ throw (SALOME_Exception);
+
+ /*!
+ * \brief Get expression function for distribution DT_ExprFunc
+ *
+ * Throws SALOME_Exception if distribution type is not DT_ExprFunc
+ */
+ const char* GetExpressionFunction() const
+ throw (SALOME_Exception);
+
+ /*!
+ * \brief Checks validity of the expression of the function f(t), e.g. "sin(t)".
+ * In case of validity returns a cleaned expression
+ * \param convMode - 0 for "Exponent mode", 1 for "Cut negative mode"
+ */
+ static std::string CheckExpressionFunction( const std::string& expr,
+ const int convMode)
+ throw (SALOME_Exception);
+
+ /*!
+ * \brief Set conversion mode. When it is 0, it means "exponent mode":
+ * the function of distribution of density is used as an exponent of 10, i,e, 10^f(t).
+ * When it is 1, it means "cut negative mode". The function of distribution is used as
+ * F(t), where F(t0)=f(t0), if f(t0)>=0, otherwise F(t0) = 0.
+ * This mode is sensible only when function distribution is used (DT_TabFunc or DT_ExprFunc)
+ *
+ * Throws SALOME_Exception if distribution type is not functional
+ */
+ void SetConversionMode( int conv )
+ throw (SALOME_Exception);
+
+ /*!
+ * \brief Returns conversion mode
+ *
+ * Throws SALOME_Exception if distribution type is not functional
+ */
+ int ConversionMode() const
+ throw (SALOME_Exception);
+
+ void SetReversedEdges( std::vector<int>& ids);
+
+ void SetObjectEntry( const char* entry ) { _objEntry = entry; }
+
+ const char* GetObjectEntry() { return _objEntry.c_str(); }
+
+ const std::vector<int>& GetReversedEdges() const { return _edgeIDs; }
+
+ /*!
+ * \brief Initialize number of segments by the mesh built on the geometry
+ * \param theMesh - the built mesh
+ * \param theShape - the geometry of interest
+ * \retval bool - true if parameter values have been successfully defined
+ */
+ virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape);
+
+ /*!
+ * \brief Initialize my parameter values by default parameters.
+ * \retval bool - true if parameter values have been successfully defined
+ */
+ virtual bool SetParametersByDefaults(const TDefaults& dflts, const SMESH_Mesh* theMesh=0);