Salome HOME
projects
/
modules
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
23514: EDF 16031 - SMESH freezes
[modules/kernel.git]
/
src
/
SALOMEDSImpl
/
SALOMEDSImpl_SObject.cxx
diff --git
a/src/SALOMEDSImpl/SALOMEDSImpl_SObject.cxx
b/src/SALOMEDSImpl/SALOMEDSImpl_SObject.cxx
index fc75ae72a6abee302c66771412233ff8bc2b2e13..050e3ab72c3ec88779114ca607319856bca7f6ba 100644
(file)
--- a/
src/SALOMEDSImpl/SALOMEDSImpl_SObject.cxx
+++ b/
src/SALOMEDSImpl/SALOMEDSImpl_SObject.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
3
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
6
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
@@
-88,39
+88,48
@@
std::string SALOMEDSImpl_SObject::GetID() const
{
return _lab.Entry();
}
{
return _lab.Entry();
}
-
+
//============================================================================
/*! Function : GetFatherComponent
//============================================================================
/*! Function : GetFatherComponent
- * Purpose :
+ * Purpose :
*/
//============================================================================
SALOMEDSImpl_SComponent SALOMEDSImpl_SObject::GetFatherComponent() const
{
*/
//============================================================================
SALOMEDSImpl_SComponent SALOMEDSImpl_SObject::GetFatherComponent() const
{
- SALOMEDSImpl_SComponent sco;
+ SALOMEDSImpl_SComponent sco;
DF_Label LF = _lab;
while (!SALOMEDSImpl_SComponent::IsA(LF) && !LF.IsRoot()) {
LF = LF.Father();
}
DF_Label LF = _lab;
while (!SALOMEDSImpl_SComponent::IsA(LF) && !LF.IsRoot()) {
LF = LF.Father();
}
-
+
if(LF.IsRoot()) return sco;
if(LF.IsRoot()) return sco;
-
+
return GetStudy()->GetSComponent(LF);
}
return GetStudy()->GetSComponent(LF);
}
-
+
//============================================================================
/*! Function : GetFather
//============================================================================
/*! Function : GetFather
- * Purpose :
+ * Purpose :
*/
//============================================================================
SALOMEDSImpl_SObject SALOMEDSImpl_SObject::GetFather() const
{
*/
//============================================================================
SALOMEDSImpl_SObject SALOMEDSImpl_SObject::GetFather() const
{
- return GetStudy()->GetSObject(_lab.Father());
+ return GetStudy()->GetSObject(_lab.Father());
}
}
+//============================================================================
+/*! Function : GetLastChild
+ * Purpose :
+ */
+//============================================================================
+int SALOMEDSImpl_SObject::GetLastChildTag() const
+{
+ return _lab.LastChildTag();
+}
//============================================================================
/*! Function : GetStudy
//============================================================================
/*! Function : GetStudy
- * Purpose :
+ * Purpose :
*/
//============================================================================
SALOMEDSImpl_Study* SALOMEDSImpl_SObject::GetStudy() const
*/
//============================================================================
SALOMEDSImpl_Study* SALOMEDSImpl_SObject::GetStudy() const