PAL13190 (EDF159 SMESH: in Merge Nodes and Merge Elements, visualisze nodes or meshes twice):

move MergeNodes dialog here and reconstruct it;
	add the additional GUI controls;
	add mechanism of numbering of the selected mesh nodes and elements.
This commit is contained in:
akl 2007-03-23 14:38:37 +00:00
parent 57fb474675
commit 0bef4d9457
2 changed files with 973 additions and 133 deletions

File diff suppressed because it is too large Load Diff

View File

@ -18,8 +18,8 @@
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#ifndef DIALOGBOX_GETMESH_H
#define DIALOGBOX_GETMESH_H
#ifndef SMESHGUI_EditMeshDlg_H
#define SMESHGUI_EditMeshDlg_H
#include "LightApp_SelectionMgr.h"
#include "SUIT_SelectionFilter.h"
@ -28,6 +28,7 @@
#include <qdialog.h>
// Open CASCADE Includes
#include <gp_XYZ.hxx>
class QGridLayout;
class QButtonGroup;
@ -36,11 +37,22 @@ class QLabel;
class QLineEdit;
class QPushButton;
class QRadioButton;
class QCheckBox;
class QListBox;
class SMESHGUI;
class SMESHGUI_SpinBox;
class SMESH_Actor;
class SALOME_Actor;
class SVTK_ViewWindow;
class SVTK_Selector;
namespace SMESH{
struct TIdPreview;
}
// IDL Headers
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SMESH_Mesh)
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
//=================================================================================
// class : SMESHGUI_EditMeshDlg
@ -52,8 +64,6 @@ class SMESHGUI_EditMeshDlg : public QDialog
public:
SMESHGUI_EditMeshDlg (SMESHGUI * theModule,
const char* title,
const char* icon,
int theAction);
~SMESHGUI_EditMeshDlg();
@ -63,47 +73,89 @@ class SMESHGUI_EditMeshDlg : public QDialog
void enterEvent (QEvent*); /* mouse enter the QWidget */
void hideEvent (QHideEvent*); /* ESC key */
void keyPressEvent(QKeyEvent*);
void onEditGroup();
void FindGravityCenter(TColStd_MapOfInteger & ElemsIdMap,
list< gp_XYZ > & GrCentersXYZ);
// add the centers of gravity of ElemsIdMap elements to the GrCentersXYZ list
private:
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
SVTK_Selector* mySelector;
QWidget* myEditCurrentArgument;
SMESH::SMESH_Mesh_var myMesh;
SUIT_SelectionFilter* myMeshFilter;
SMESH::SMESH_Mesh_var myMesh;
SMESH::SMESH_IDSource_var mySubMeshOrGroup;
SMESH_Actor* myActor;
SUIT_SelectionFilter* myMeshOrSubMeshOrGroupFilter;
SMESH::TIdPreview* myIdPreview;
int myAction;
bool myIsBusy;
// Widgets
QButtonGroup* GroupConstructors;
QRadioButton* Constructor1;
QButtonGroup* GroupConstructors;
QRadioButton* RadioButton;
QGroupBox* GroupButtons;
QPushButton* buttonOk;
QPushButton* buttonCancel;
QPushButton* buttonApply;
QPushButton* buttonHelp;
QGroupBox* GroupButtons;
QPushButton* buttonOk;
QPushButton* buttonCancel;
QPushButton* buttonApply;
QPushButton* buttonHelp;
QGroupBox* GroupMesh;
QLabel* TextLabelMesh;
QPushButton* SelectButton;
QLineEdit* LineEditMesh;
QGroupBox* GroupMesh;
QLabel* TextLabelName;
QPushButton* SelectMeshButton;
QLineEdit* LineEditMesh;
QGroupBox* GroupCoincident;
QLabel* TextLabelTolerance;
SMESHGUI_SpinBox* SpinBoxTolerance;
QPushButton* DetectButton;
QListBox* ListCoincident;
QPushButton* AddGroupButton;
QPushButton* RemoveGroupButton;
QCheckBox* SelectAllCB;
QGroupBox* GroupEdit;
QListBox* ListEdit;
QPushButton* AddElemButton;
QPushButton* RemoveElemButton;
QPushButton* SetFirstButton;
//protected:
QGridLayout* DlgLayout;
QGridLayout* GroupConstructorsLayout;
QGridLayout* GroupButtonsLayout;
QGridLayout* GroupMeshLayout;
QGridLayout* GroupCoincidentLayout;
QGridLayout* GroupEditLayout;
QString myHelpFileName;
private slots:
void ClickOnOk();
void ClickOnCancel();
void ClickOnApply();
bool ClickOnApply();
void ClickOnHelp();
void SelectionIntoArgument();
void DeactivateActiveDialog();
void ActivateThisDialog();
void updateControls();
void onDetect();
void onAddGroup();
void onRemoveGroup();
void onSelectGroup();
void onSelectAll(bool isToggled);
void onSelectElementFromGroup();
void onAddElement();
void onRemoveElement();
void onSetFirst();
void SetEditCurrentArgument();
void SelectionIntoArgument() ;
void DeactivateActiveDialog() ;
void ActivateThisDialog() ;
};
#endif // DIALOGBOX_GETMESH_H
#endif // SMESHGUI_EditMeshDlg_H