Version: 8.3.0
StdMeshersGUI_PropagationHelperWdg.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 #ifndef STDMESHERSGUI_PropagationHelperWdg_H
20 #define STDMESHERSGUI_PropagationHelperWdg_H
21 
22 #include "SMESH_StdMeshersGUI.hxx"
23 
24 #include <QWidget>
25 #include <vector>
26 
27 class QPushButton;
28 class QListWidget;
30 class vtkRenderer;
31 class GEOM_Actor;
32 class QCheckBox;
33 class QGroupBox;
34 
42 {
43  Q_OBJECT
44 
45  public:
47  QWidget* parent = 0,
48  bool show = true);
50 
51  void Clear();
52 
53  private slots:
54 
55  void onShowGeometry(bool toShow);
56  void onListSelectionChanged();
57  void onAdd();
58  void onReverse();
59  void updateList(bool enable);
60 
61  private:
62 
63  bool buildChains();
64  std::vector< int > * getSelectedChain();
65 
67  vtkRenderer* myRenderer;
68  GEOM_Actor* myActor;
69  GEOM_Actor* myModelActor;
70 
71  QListWidget* myListWidget;
72  QPushButton* myAddButton;
73  QPushButton* myReverseButton;
74  QCheckBox* myShowGeomChkBox;
76 
77  std::vector< std::vector<int> > myChains;
78 };
79 
80 #endif