Salome HOME
0023064: [CEA 1471] Create and support quadratic polygons in SMESH
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_DisplayEntitiesDlg.h
1 // Copyright (C) 2014-2015  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 //  File   : SMESHGUI_DisplayEntitiesDlg.h
20 //  Author : Alexander KOVALEV, Open CASCADE S.A.S. (alexander.kovalev@opencascade.com)
21
22 #ifndef SMESHGUI_DISPLAYENTITIES_H
23 #define SMESHGUI_DISPLAYENTITIES_H
24
25 #include "SMESHGUI_Dialog.h"
26 #include "SMESH_SMESHGUI.hxx"
27
28 #include <SMESH_Actor.h>
29
30 class QCheckBox;
31
32 class SMESHGUI_EXPORT SMESHGUI_DisplayEntitiesDlg : public SMESHGUI_Dialog
33
34   Q_OBJECT
35     
36 public:
37   SMESHGUI_DisplayEntitiesDlg( QWidget* parent );
38   ~SMESHGUI_DisplayEntitiesDlg();
39
40 private:
41   void InverseEntityMode( unsigned int& theOutputMode,
42                           unsigned int theMode );
43
44 private slots:
45   void              onOk();
46   void              onHelp();
47   void              onChangeEntityMode( bool isChecked );
48
49 private:
50   Handle(SALOME_InteractiveObject) myIObject;
51   unsigned int myEntityMode;
52   SMESH_Actor *myActor;
53   int myNbCheckedButtons;
54   QCheckBox* my0DElemsTB;
55   QCheckBox* myEdgesTB;
56   QCheckBox* myFacesTB;
57   QCheckBox* myVolumesTB;
58   QCheckBox* myBallsTB;
59 };
60
61 #endif // SMESHGUI_DISPLAYENTITIES_H