Version: 9.16.0
SMESHGUI_CreatePolyhedralVolumeDlg.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 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, or (at your option) any later version.
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
23// SMESH SMESHGUI : GUI for SMESH component
24// File : SMESHGUI_CreatePolyhedralVolumeDlg.h
25// Author : Michael ZORIN, Open CASCADE S.A.S.
26//
27#ifndef SMESHGUI_CREATEPOLYHEDRALVOLUMEDLG_H
28#define SMESHGUI_CREATEPOLYHEDRALVOLUMEDLG_H
29
30// SMESH includes
31#include "SMESH_SMESHGUI.hxx"
32
33// Qt includes
34#include <QDialog>
35
36// IDL includes
37#include <SALOMEconfig.h>
38#include CORBA_SERVER_HEADER(SMESH_Mesh)
39
40class QButtonGroup;
41class QComboBox;
42class QGroupBox;
43class QListWidget;
44class QLabel;
45class QLineEdit;
46class QPushButton;
47class QRadioButton;
48class QCheckBox;
49class SMESHGUI;
50class SMESH_Actor;
51class SVTK_Selector;
52class LightApp_SelectionMgr;
53
54namespace SMESH
55{
56 struct TPolySimulation;
57}
58
59//=================================================================================
60// class : SMESHGUI_CreatePolyhedralVolumeDlg
61// purpose :
62//=================================================================================
64{
65 Q_OBJECT
66
67public:
70
71private:
72 typedef QList<SMESH::SMESH_GroupBase_var> GrpList;
73
74 void Init();
75 void enterEvent( QEvent* ); /* mouse enter the QWidget */
76 void keyPressEvent( QKeyEvent* );
77 int GetConstructorId();
78 void displaySimulation();
79
80 bool isValid();
81
82 int checkEditLine( bool = true );
84 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
85 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
86 SVTK_Selector* mySelector;
87 QString myIDs;
88 int myNbOkElements; /* to check when elements are defined */
89
91
92 SMESH::SMESH_Mesh_var myMesh;
95 QString myEntry;
97
99 QButtonGroup* GroupConstructors;
100 QRadioButton* RadioButton1;
101 QRadioButton* RadioButton2;
102 QCheckBox* Preview;
107 QPushButton* buttonOk;
108 QPushButton* buttonCancel;
109 QPushButton* buttonApply;
110 QPushButton* buttonHelp;
115 QListWidget* myFacesByNodes;
117 QPushButton* AddButton;
118 QPushButton* RemoveButton;
119
121
122public slots:
123 void onAdd();
124 void onRemove();
125
126protected slots:
127 virtual void reject();
128
129private slots:
130 void ConstructorsClicked( int );
131 void ClickOnPreview( bool );
132 void ClickOnOk();
133 void ClickOnApply();
134 void ClickOnHelp();
135 void SetEditCurrentArgument();
136 void SelectionIntoArgument();
137 void DeactivateActiveDialog();
138 void ActivateThisDialog();
139 void onTextChange( const QString& );
140 void onListSelectionChanged();
141 void onOpenView();
142 void onCloseView();
143};
144
145#endif // SMESHGUI_CREATEPOLYHEDRALVOLUMEDLG_H
#define SMESHGUI_EXPORT
Definition: SMESH_SMESHGUI.hxx:36
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:64
QPushButton * buttonHelp
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:110
SMESHGUI * mySMESHGUI
Checking for indices, return 1 if all ok, else -1.
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:84
QPushButton * RemoveButton
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:118
SMESH::TPolySimulation * mySimulation
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:94
QButtonGroup * GroupConstructors
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:99
QList< SMESH::SMESH_GroupBase_var > GrpList
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:72
QLabel * TextLabelIds
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:112
QGroupBox * GroupGroups
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:103
QComboBox * ComboBox_GroupName
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:105
GrpList myGroups
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:96
QRadioButton * RadioButton2
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:101
QRadioButton * RadioButton1
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:100
QPushButton * buttonOk
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:107
QGroupBox * GroupContent
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:111
QPushButton * buttonApply
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:109
QLineEdit * myEditCurrentArgument
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:90
SMESH_Actor * myActor
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:93
QString myIDs
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:87
LightApp_SelectionMgr * mySelectionMgr
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:85
SMESH::SMESH_Mesh_var myMesh
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:92
QLabel * TextLabel_GroupName
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:104
QPushButton * buttonCancel
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:108
QListWidget * myFacesByNodes
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:115
SVTK_Selector * mySelector
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:86
QString myEntry
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:95
QGroupBox * GroupButtons
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:106
QLabel * myFacesByNodesLabel
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:116
QLineEdit * LineEditElements
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:114
QGroupBox * ConstructorsBox
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:98
QString myHelpFileName
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:120
int myNbOkElements
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:88
QPushButton * AddButton
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:117
QCheckBox * Preview
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:102
QPushButton * SelectElementsButton
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.h:113
Definition: SMESHGUI.h:84
Definition: SMESHGUI_CreatePolyhedralVolumeDlg.cxx:93
Definition: SMESH_Actor.h:56
Definition: SMESH_ControlsClassifier.cxx:39