Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MeshFormatWriter and MeshFormaReader are in MEDCOUPLING namespace
[modules/smesh.git]
/
src
/
SMESHGUI
/
SMESHGUI_FilterDlg.h
diff --git
a/src/SMESHGUI/SMESHGUI_FilterDlg.h
b/src/SMESHGUI/SMESHGUI_FilterDlg.h
old mode 100755
(executable)
new mode 100644
(file)
index
ace6306
..
1240b7e
--- a/
src/SMESHGUI/SMESHGUI_FilterDlg.h
+++ b/
src/SMESHGUI/SMESHGUI_FilterDlg.h
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
12
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
20
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-6,7
+6,7
@@
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License
, or (at your option) any later version
.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-45,22
+45,23
@@
#include CORBA_SERVER_HEADER(SMESH_Filter)
#include CORBA_SERVER_HEADER(SMESH_Mesh)
#include CORBA_SERVER_HEADER(SMESH_Filter)
#include CORBA_SERVER_HEADER(SMESH_Mesh)
-class
QFrame
;
+class
LightApp_SelectionMgr
;
class QButtonGroup;
class QCheckBox;
class QButtonGroup;
class QCheckBox;
+class QFrame;
class QGroupBox;
class QPushButton;
class QGroupBox;
class QPushButton;
+class QStackedWidget;
class QTableWidget;
class QTableWidgetItem;
class QTableWidget;
class QTableWidgetItem;
-class QStackedWidget;
-class LightApp_SelectionMgr;
class SMESHGUI;
class SMESHGUI_FilterLibraryDlg;
class SMESHGUI;
class SMESHGUI_FilterLibraryDlg;
+class SMESH_Actor;
class SVTK_Selector;
/*!
* Class : SMESHGUI_FilterTable
class SVTK_Selector;
/*!
* Class : SMESHGUI_FilterTable
- * Description : Frame containig
+ * Description : Frame containi
n
g
* - Button group for switching entity type
* - Table for displaying filter criterions
* - Buttons for editing table
* - Button group for switching entity type
* - Table for displaying filter criterions
* - Buttons for editing table
@@
-141,6
+142,7
@@
signals:
void EntityTypeChanged( const int );
void NeedValidation();
void CriterionChanged( const int, const int );
void EntityTypeChanged( const int );
void NeedValidation();
void CriterionChanged( const int, const int );
+ void ThresholdChanged( const int, const int );
void CurrentChanged( int, int );
private slots:
void CurrentChanged( int, int );
private slots:
@@
-222,38
+224,45
@@
public:
SMESHGUI_FilterDlg( SMESHGUI*, const int );
virtual ~SMESHGUI_FilterDlg();
SMESHGUI_FilterDlg( SMESHGUI*, const int );
virtual ~SMESHGUI_FilterDlg();
- void Init( const QList<int>& );
- void Init( const int );
+ void Init( const QList<int>&
, const bool setInViewer=true
);
+ void Init( const int
, const bool setInViewer=true
);
void SetSelection();
void SetMesh (SMESH::SMESH_Mesh_var);
void SetSelection();
void SetMesh (SMESH::SMESH_Mesh_var);
+ void SetGroup (SMESH::SMESH_GroupOnFilter_var);
void SetSourceWg( QWidget*, const bool initOnApply = true );
void SetSourceWg( QWidget*, const bool initOnApply = true );
+ void SetEnabled( bool setInViewer, bool diffSources );
static SMESH::Filter::Criterion createCriterion();
SMESH::Filter_var GetFilter() const;
void SetFilter(SMESH::Filter_var filter, int type);
static SMESH::Filter::Criterion createCriterion();
SMESH::Filter_var GetFilter() const;
void SetFilter(SMESH::Filter_var filter, int type);
+ void UnRegisterFilters();
signals:
void Accepted();
signals:
void Accepted();
+protected slots:
+ virtual void reject();
+
private slots:
void onOk();
bool onApply();
private slots:
void onOk();
bool onApply();
- void onClose();
void onHelp();
void onDeactivate();
void onSelectionDone();
void onCriterionChanged( const int, const int );
void onHelp();
void onDeactivate();
void onSelectionDone();
void onCriterionChanged( const int, const int );
+ void onThresholdChanged( const int, const int );
void onCurrentChanged( int, int );
void onCurrentChanged( int, int );
+ void onOpenView();
+ void onCloseView();
private:
void construct( const QList<int>& );
private:
void construct( const QList<int>& );
- void closeEvent( QCloseEvent* );
void enterEvent( QEvent* );
void keyPressEvent( QKeyEvent* );
void enterEvent( QEvent* );
void keyPressEvent( QKeyEvent* );
@@
-274,6
+283,7
@@
private:
void setIdsToWg( QWidget*, const QList<int>& );
Selection_Mode getSelMode( const int ) const;
void updateSelection();
void setIdsToWg( QWidget*, const QList<int>& );
Selection_Mode getSelMode( const int ) const;
void updateSelection();
+ SMESH_Actor* getActor();
private:
// widgets
private:
// widgets
@@
-292,7
+302,10
@@
private:
LightApp_SelectionMgr* mySelectionMgr;
SVTK_Selector* mySelector;
SMESH::SMESH_Mesh_var myMesh;
LightApp_SelectionMgr* mySelectionMgr;
SVTK_Selector* mySelector;
SMESH::SMESH_Mesh_var myMesh;
+ SMESH::SMESH_GroupOnFilter_var myGroup;
bool myInitSourceWgOnApply;
bool myInitSourceWgOnApply;
+ bool myInsertEnabled;
+ bool myDiffSourcesEnabled;
QWidget* mySourceWg;
SALOME_DataMapOfIOMapOfInteger myIObjects;
QWidget* mySourceWg;
SALOME_DataMapOfIOMapOfInteger myIObjects;
@@
-302,6
+315,10
@@
private:
QMap< int, int > myApplyToState;
QString myHelpFileName;
QMap< int, int > myApplyToState;
QString myHelpFileName;
+
+ bool myToRestoreSelMode;
+ int mySelModeToRestore;
+ void restoreSelMode();
};
#endif // SMESHGUI_FILTERDLG_H
};
#endif // SMESHGUI_FILTERDLG_H