X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_FunctionPreview.h;fp=src%2FSMESHGUI%2FSMESHGUI_FunctionPreview.h;h=0000000000000000000000000000000000000000;hp=9df9581f44d6b443b12f77edbf926206d910cf6b;hb=6b471bcc54cbeb90f0d977323db8c76d3d2cce09;hpb=e884fc2507d46c805b15dfa633f4326c821c2d8c diff --git a/src/SMESHGUI/SMESHGUI_FunctionPreview.h b/src/SMESHGUI/SMESHGUI_FunctionPreview.h deleted file mode 100644 index 9df9581f4..000000000 --- a/src/SMESHGUI/SMESHGUI_FunctionPreview.h +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ -// - -#ifndef SMESHGUI_FUNCTION_PREVIEW_HEADER -#define SMESHGUI_FUNCTION_PREVIEW_HEADER - -#include "qwt_plot.h" -#include -#include CORBA_SERVER_HEADER(SMESH_Mesh) -#include -#include -#include - -class SMESHGUI_FunctionPreview : public QwtPlot -{ - Q_OBJECT - -public: - SMESHGUI_FunctionPreview( QWidget* ); - virtual ~SMESHGUI_FunctionPreview(); - - QString function() const; - bool isTableFunc() const; - void tableFunc( SMESH::double_array& ) const; - void interval( double&, double& ) const; - int pointsCount() const; - bool isDone() const; - - bool setParams( const QString&, const double = 0.0, const double = 1.0, const int = 50, const bool = true ); - bool setParams( const SMESH::double_array&, const double = 0.0, const double = 1.0, const bool = true ); - void setIsExp( const bool, const bool = true ); - -protected: - virtual bool init( const QString& ); - virtual double funcValue( const double, bool& ); - virtual bool createTable( SMESH::double_array& ); - virtual void drawContents( QPainter* ); - -private: - double calc( bool& ); - -private: - QString myFunction; - double myXmin, myXmax; - int myPoints; - bool myIsTable; - bool myIsExp; - SMESH::double_array myTableFunc; - long myCurve; - Handle(ExprIntrp_GenExp) myExpr; - Expr_Array1OfNamedUnknown myVars; - TColStd_Array1OfReal myValues; - bool myIsDone; -}; - -#endif