Version: 9.16.0
StdMeshersGUI_PropagationHelperWdg.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, 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
23
24#include <QWidget>
25#include <vector>
26
27class QPushButton;
28class QListWidget;
30class vtkRenderer;
31class GEOM_Actor;
32class QCheckBox;
33class 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
#define STDMESHERSGUI_EXPORT
Definition: SMESH_StdMeshersGUI.hxx:36
A widget showing a list of propagation chains of EDGEs.
Definition: StdMeshersGUI_PropagationHelperWdg.h:42
vtkRenderer * myRenderer
Definition: StdMeshersGUI_PropagationHelperWdg.h:67
QCheckBox * myShowGeomChkBox
Definition: StdMeshersGUI_PropagationHelperWdg.h:74
GEOM_Actor * myModelActor
Definition: StdMeshersGUI_PropagationHelperWdg.h:69
std::vector< std::vector< int > > myChains
Definition: StdMeshersGUI_PropagationHelperWdg.h:77
QPushButton * myAddButton
Definition: StdMeshersGUI_PropagationHelperWdg.h:72
GEOM_Actor * myActor
Definition: StdMeshersGUI_PropagationHelperWdg.h:68
QGroupBox * myChainBox
Definition: StdMeshersGUI_PropagationHelperWdg.h:75
StdMeshersGUI_SubShapeSelectorWdg * mySubSelectWdg
Definition: StdMeshersGUI_PropagationHelperWdg.h:66
QPushButton * myReverseButton
Definition: StdMeshersGUI_PropagationHelperWdg.h:73
QListWidget * myListWidget
Definition: StdMeshersGUI_PropagationHelperWdg.h:71
Definition: StdMeshersGUI_SubShapeSelectorWdg.h:49