2 #ifndef STD_MESHERS_GUI_DISTR_PREVIEW_HEADER
3 #define STD_MESHERS_GUI_DISTR_PREVIEW_HEADER
6 #include <SALOMEconfig.h>
7 #include CORBA_SERVER_HEADER(SMESH_Mesh)
8 #include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
9 #include <ExprIntrp_GenExp.hxx>
10 #include <Expr_Array1OfNamedUnknown.hxx>
11 #include <TColStd_Array1OfReal.hxx>
13 class StdMeshersGUI_DistrPreview : public QwtPlot
18 typedef enum { EXPONENT, CUT_NEGATIVE } Conversion;
20 StdMeshersGUI_DistrPreview( QWidget*, StdMeshers::StdMeshers_NumberOfSegments_ptr );
21 virtual ~StdMeshersGUI_DistrPreview();
23 QString function() const;
24 bool isTableFunc() const;
25 void tableFunc( SMESH::double_array& ) const;
26 int pointsCount() const;
30 bool setParams( const QString&, const int, const int = 50, const bool = true );
31 bool setParams( const SMESH::double_array&, const int, const bool = true );
32 void setConversion( Conversion, const bool = true );
35 virtual bool init( const QString& );
36 virtual double funcValue( const double, bool& );
37 virtual bool createTable( SMESH::double_array& );
38 virtual bool convert( double& ) const;
47 int myPoints, myNbSeg;
50 SMESH::double_array myTableFunc;
51 long myDensity, myDistr, myMsg;
52 Handle(ExprIntrp_GenExp) myExpr;
53 Expr_Array1OfNamedUnknown myVars;
54 TColStd_Array1OfReal myValues;
56 StdMeshers::StdMeshers_NumberOfSegments_var myHypo;