Version: 8.3.0
SMESHGUI_MeshOrderOp.h
Go to the documentation of this file.
1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 // File : SMESHGUI_MeshOrderOp.h
21 // Author : Pavel TELKOV, Open CASCADE S.A.S.
22 //
23 #ifndef SMESHGUI_MeshOrderOp_H
24 #define SMESHGUI_MeshOrderOp_H
25 
26 
27 // SMESH includes
28 #include "SMESH_SMESHGUI.hxx"
29 
30 #include "SMESHGUI_Operation.h"
31 #include "SMESHGUI_MeshOrderDlg.h"
32 
33 // IDL includes
34 #include <SALOMEconfig.h>
35 #include CORBA_SERVER_HEADER(SMESH_Gen)
36 #include CORBA_SERVER_HEADER(SMESH_Mesh)
37 
42 {
43 public:
45  virtual ~SMESHGUI_MeshOrderMgr();
47  void SetMesh( SMESH::SMESH_Mesh_var& theMesh );
49  bool GetMeshOrder();
51  bool GetMeshOrder( ListListId& theIds );
53  bool SetMeshOrder();
55  bool SetMeshOrder( const ListListId& theIds );
56 
58  bool IsOrderChanged() const;
59 
60 private:
61  SMESH::SMESH_Mesh_var myMesh;
63 };
64 
69 {
70  Q_OBJECT
71 
72 public:
74  virtual ~SMESHGUI_MeshOrderOp();
75 
76 protected:
77  virtual LightApp_Dialog* dlg() const;
78 
79  virtual void startOperation();
80 
82  virtual void initDialog();
83 
84  protected slots:
85  virtual bool onApply();
86  virtual void onCancel();
87 
88  private:
91 };
92 
93 #endif // SMESHGUI_MeshOrderOp_H