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
restoring fam with old id
[modules/smesh.git]
/
src
/
SMESHGUI
/
SMESHGUI_FieldSelectorWdg.cxx
diff --git
a/src/SMESHGUI/SMESHGUI_FieldSelectorWdg.cxx
b/src/SMESHGUI/SMESHGUI_FieldSelectorWdg.cxx
index 91034498099e2bca288b7a9b63f0b97c0eb32f72..598665a6ea9698f5db91cf089ccdd99835d7de56 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_FieldSelectorWdg.cxx
+++ b/
src/SMESHGUI/SMESHGUI_FieldSelectorWdg.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
16
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
@@
-91,10
+91,6
@@
GetAllFields(const QList< QPair< SMESH::SMESH_IDSource_var, QString > >& meshes,
{
myFields = & fields;
myTree->clear();
{
myFields = & fields;
myTree->clear();
-
- _PTR(Study) study = SMESH::GetActiveStudyDocument();
- GEOM::GEOM_Gen_var geomGen = SMESH::GetGEOMGen();
- GEOM::GEOM_IFieldOperations_wrap fieldOp = geomGen->GetIFieldOperations( study->StudyId() );
for ( int iM = 0; iM < meshes.count(); ++iM )
{
for ( int iM = 0; iM < meshes.count(); ++iM )
{
@@
-110,6
+106,9
@@
GetAllFields(const QList< QPair< SMESH::SMESH_IDSource_var, QString > >& meshes,
QTreeWidgetItem* meshItem = createItem( myTree, meshes[iM].second, iM );
GEOM::GEOM_Object_var shape = mesh->GetShapeToMesh();
QTreeWidgetItem* meshItem = createItem( myTree, meshes[iM].second, iM );
GEOM::GEOM_Object_var shape = mesh->GetShapeToMesh();
+ GEOM::GEOM_Gen_var geomGen = SMESH::GetGEOMGen( shape );
+ GEOM::GEOM_IFieldOperations_wrap fieldOp = geomGen->GetIFieldOperations();
+
fields = fieldOp->GetFields( shape );
for ( size_t iF = 0; iF < fields->length(); ++iF )
{
fields = fieldOp->GetFields( shape );
for ( size_t iF = 0; iF < fields->length(); ++iF )
{
@@
-215,7
+214,7
@@
bool SMESHGUI_FieldSelectorWdg::GetSelectedFields()
/*!
* \brief SLOT called when a tree item is checked
*/
/*!
* \brief SLOT called when a tree item is checked
*/
-void SMESHGUI_FieldSelectorWdg::onItemCheck(QTreeWidgetItem * item, int
column
)
+void SMESHGUI_FieldSelectorWdg::onItemCheck(QTreeWidgetItem * item, int
/*column*/
)
{
myTree->blockSignals( true );
if ( !item->parent() ) // mesh item
{
myTree->blockSignals( true );
if ( !item->parent() ) // mesh item