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
Copyright update 2022
[modules/smesh.git]
/
src
/
SMESHGUI
/
SMESHGUI_SingleEditDlg.cxx
diff --git
a/src/SMESHGUI/SMESHGUI_SingleEditDlg.cxx
b/src/SMESHGUI/SMESHGUI_SingleEditDlg.cxx
index ee532a7e004f5855f8f8bfaefb61950b08711a1e..18283b882bd4e0810a19b3c0266f7f09a2ef6167 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_SingleEditDlg.cxx
+++ b/
src/SMESHGUI/SMESHGUI_SingleEditDlg.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-202
0
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-202
2
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
@@
-349,8
+349,8
@@
void SMESHGUI_SingleEditDlg::onTextChange (const QString& /*theNewText*/)
aList.Append(anIO);
mySelectionMgr->setSelectedObjects(aList,false);
aList.Append(anIO);
mySelectionMgr->setSelectedObjects(aList,false);
- SVTK_IndexedMapOfIds selectedIndices;
- SVTK_ListOf
Integer
newIndices;
+ SVTK_IndexedMapOf
Vtk
Ids selectedIndices;
+ SVTK_ListOf
Vtk
newIndices;
mySelector->GetCompositeIndex(anIO,selectedIndices);
int id1, id2;
mySelector->GetCompositeIndex(anIO,selectedIndices);
int id1, id2;
@@
-369,9
+369,9
@@
void SMESHGUI_SingleEditDlg::onTextChange (const QString& /*theNewText*/)
if ( findTriangles(aNode1,aNode2,tria1,tria2) )
{
if ( findTriangles(aNode1,aNode2,tria1,tria2) )
{
- newIndices.push_back( aNode1->GetID() );
- newIndices.push_back( aNode2->GetID() );
-
+
newIndices.push_back( aNode1->GetID() );
+
newIndices.push_back( aNode2->GetID() );
+
myOkBtn->setEnabled(true);
myApplyBtn->setEnabled(true);
}
myOkBtn->setEnabled(true);
myApplyBtn->setEnabled(true);
}
@@
-410,22
+410,22
@@
void SMESHGUI_SingleEditDlg::onSelectionDone()
if(SMDS_Mesh* aMesh = aVisualObj->GetMesh())
{
const SMDS_MeshElement* tria[2];
if(SMDS_Mesh* aMesh = aVisualObj->GetMesh())
{
const SMDS_MeshElement* tria[2];
-
- bool valid = false;
- SVTK_IndexedMapOfIds anIds;
+
+ bool valid = false;
+ SVTK_IndexedMapOf
Vtk
Ids anIds;
mySelector->GetCompositeIndex(anIO,anIds);
if( anIds.Extent() == 1 && anIds(1).size() == 2 ) {
mySelector->GetCompositeIndex(anIO,anIds);
if( anIds.Extent() == 1 && anIds(1).size() == 2 ) {
- anId1 = anIds(1)[0];
- anId2 = anIds(1)[1];
- valid = true;
+
anId1 = anIds(1)[0];
+
anId2 = anIds(1)[1];
+
valid = true;
}
}
-
+
if( valid &&
findTriangles( aMesh->FindNode( anId1 ), aMesh->FindNode( anId2 ), tria[0],tria[1] ) )
{
QString aText = QString("%1-%2").arg(anId1).arg(anId2);
myEdge->setText(aText);
if( valid &&
findTriangles( aMesh->FindNode( anId1 ), aMesh->FindNode( anId2 ), tria[0],tria[1] ) )
{
QString aText = QString("%1-%2").arg(anId1).arg(anId2);
myEdge->setText(aText);
-
+
myOkBtn->setEnabled(true);
myApplyBtn->setEnabled(true);
}
myOkBtn->setEnabled(true);
myApplyBtn->setEnabled(true);
}