mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
SMESH_IDSource can be not-published object
+ operator<<(SMESH::SMESH_IDSource_ptr theArg);
This commit is contained in:
parent
43cfddbeaa
commit
8a6ef93bb1
@ -221,6 +221,19 @@ namespace SMESH
|
||||
return *this;
|
||||
}
|
||||
|
||||
TPythonDump&
|
||||
TPythonDump::
|
||||
operator<<(SMESH::SMESH_IDSource_ptr theArg)
|
||||
{
|
||||
SMESH_Gen_i* aSMESHGen = SMESH_Gen_i::GetSMESHGen();
|
||||
SALOMEDS::Study_var aStudy = aSMESHGen->GetCurrentStudy();
|
||||
SALOMEDS::SObject_var aSObject = SMESH_Gen_i::ObjectToSObject(aStudy,theArg);
|
||||
if(!aSObject->_is_nil())
|
||||
return *this << aSObject;
|
||||
SMESH::long_array_var anElementsId = theArg->GetIDs();
|
||||
return *this << anElementsId;
|
||||
}
|
||||
|
||||
TPythonDump&
|
||||
TPythonDump::
|
||||
operator<<(SMESH::FilterLibrary_i* theArg)
|
||||
|
@ -120,6 +120,9 @@ namespace SMESH
|
||||
TPythonDump&
|
||||
operator<<(SMESH::SMESH_Hypothesis_ptr theArg);
|
||||
|
||||
TPythonDump&
|
||||
operator<<(SMESH::SMESH_IDSource_ptr theArg);
|
||||
|
||||
TPythonDump&
|
||||
operator<<(SALOMEDS::SObject_ptr theArg);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user