mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-19 00:30:36 +05:00
0020746: EDF 1274 SMESH : MergeAllNodesButNodesFromGroup feature
+ TPythonDump& + operator<<(const SMESH::ListOfIDSources& theList); +
This commit is contained in:
parent
c375774866
commit
d1d0bb638c
@ -152,7 +152,7 @@ namespace SMESH
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<class TArray>
|
template<class TArray>
|
||||||
void DumpArray(const TArray& theArray, std::ostringstream & theStream)
|
void DumpArray(const TArray& theArray, TPythonDump & theStream)
|
||||||
{
|
{
|
||||||
theStream << "[ ";
|
theStream << "[ ";
|
||||||
for (int i = 1; i <= theArray.length(); i++) {
|
for (int i = 1; i <= theArray.length(); i++) {
|
||||||
@ -166,14 +166,14 @@ namespace SMESH
|
|||||||
TPythonDump&
|
TPythonDump&
|
||||||
TPythonDump::operator<<(const SMESH::long_array& theArg)
|
TPythonDump::operator<<(const SMESH::long_array& theArg)
|
||||||
{
|
{
|
||||||
DumpArray( theArg, myStream );
|
DumpArray( theArg, *this );
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
TPythonDump&
|
TPythonDump&
|
||||||
TPythonDump::operator<<(const SMESH::double_array& theArg)
|
TPythonDump::operator<<(const SMESH::double_array& theArg)
|
||||||
{
|
{
|
||||||
DumpArray( theArg, myStream );
|
DumpArray( theArg, *this );
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -356,21 +356,12 @@ namespace SMESH
|
|||||||
|
|
||||||
TPythonDump& TPythonDump::operator<<(const SMESH::ListOfGroups& theList)
|
TPythonDump& TPythonDump::operator<<(const SMESH::ListOfGroups& theList)
|
||||||
{
|
{
|
||||||
SMESH_Gen_i* aSMESHGen = SMESH_Gen_i::GetSMESHGen();
|
DumpArray( theList, *this );
|
||||||
SALOMEDS::Study_ptr aStudy = aSMESHGen->GetCurrentStudy();
|
return *this;
|
||||||
myStream << "[";
|
}
|
||||||
int aListLen = theList.length();
|
TPythonDump& TPythonDump::operator<<(const SMESH::ListOfIDSources& theList)
|
||||||
for(int i = 0 ; i < aListLen; i++)
|
{
|
||||||
{
|
DumpArray( theList, *this );
|
||||||
SALOMEDS::SObject_var aSObject = SMESH_Gen_i::ObjectToSObject(aStudy,theList[i]);
|
|
||||||
if(!aSObject->_is_nil()) {
|
|
||||||
CORBA::String_var entry = aSObject->GetID();
|
|
||||||
myStream << entry;
|
|
||||||
if ( i < (aListLen - 1) )
|
|
||||||
myStream<<", ";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
myStream<<"]";
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,6 +163,9 @@ namespace SMESH
|
|||||||
TPythonDump&
|
TPythonDump&
|
||||||
operator<<(const SMESH::ListOfGroups& theList);
|
operator<<(const SMESH::ListOfGroups& theList);
|
||||||
|
|
||||||
|
TPythonDump&
|
||||||
|
operator<<(const SMESH::ListOfIDSources& theList);
|
||||||
|
|
||||||
static const char* SMESHGenName() { return "smeshgen"; }
|
static const char* SMESHGenName() { return "smeshgen"; }
|
||||||
static const char* MeshEditorName() { return "mesh_editor"; }
|
static const char* MeshEditorName() { return "mesh_editor"; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user