Salome HOME
3cb5e221a6e929b43b4cb818f4c847f0738d5ca8
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_ConvToQuadOp.h
1 // SMESH SMESHGUI : GUI for SMESH component
2 //
3 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 //
6 // This library is free software; you can redistribute it and/or 
7 // modify it under the terms of the GNU Lesser General Public 
8 // License as published by the Free Software Foundation; either 
9 // version 2.1 of the License. 
10 //
11 // This library is distributed in the hope that it will be useful, 
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 // Lesser General Public License for more details. 
15 //
16 // You should have received a copy of the GNU Lesser General Public 
17 // License along with this library; if not, write to the Free Software 
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 // File   : SMESHGUI_ConvToQuadOp.h
23 // Author : Open CASCADE S.A.S.
24 //
25
26 #ifndef SMESHGUI_CONVTOQUADOP_H
27 #define SMESHGUI_CONVTOQUADOP_H
28
29 // SMESH includes
30 #include "SMESH_SMESHGUI.hxx"
31
32 #include "SMESHGUI_SelectionOp.h"
33
34 // IDL includes
35 #include <SALOMEconfig.h>
36 #include CORBA_SERVER_HEADER(SMESH_Mesh)
37
38 class SMESHGUI_ConvToQuadDlg;
39
40 class SMESHGUI_EXPORT SMESHGUI_ConvToQuadOp : public SMESHGUI_SelectionOp
41
42   Q_OBJECT
43
44 public:      
45   enum MeshType{ Comp = 0, Linear, Quadratic };
46
47 public:
48   SMESHGUI_ConvToQuadOp();
49   virtual ~SMESHGUI_ConvToQuadOp();
50   
51   virtual LightApp_Dialog*       dlg() const;  
52
53 protected:
54   virtual void                   startOperation();
55   virtual void                   selectionDone();
56   virtual SUIT_SelectionFilter*  createFilter( const int ) const;
57   MeshType                       ConsistMesh( const SMESH::SMESH_Mesh_var& ) const;
58
59 protected slots:
60   virtual bool                   onApply();
61   void                           ConnectRadioButtons( int );
62
63 private:
64   SMESHGUI_ConvToQuadDlg*        myDlg;
65 };
66
67 #endif // SMESHGUI_CONVTOQUADOP_H