From: eap Date: Mon, 25 Apr 2011 13:19:22 +0000 (+0000) Subject: 0021248: EDF SMESH: Dump and ExportToMED X-Git-Tag: V6_3_0b1~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d6f77dcbc828a4ab8b1a800fa1cc95ea65be2a26;p=modules%2Fsmesh.git 0021248: EDF SMESH: Dump and ExportToMED dump SetAutoColor() and SetColor() in SMESH_Mesh_i and in SMESH_GroupBase_i correspondingly --- diff --git a/src/SMESH_I/SMESH_DumpPython.cxx b/src/SMESH_I/SMESH_DumpPython.cxx index df860175d..3875dc796 100644 --- a/src/SMESH_I/SMESH_DumpPython.cxx +++ b/src/SMESH_I/SMESH_DumpPython.cxx @@ -870,37 +870,6 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl if (aSeq->Value(aLen) < aScriptLength) anUpdatedScript += aScript.SubString(aSeq->Value(aLen) + 1, aScriptLength); - // Set colors - SALOMEDS::SObject_var aComp = theStudy->FindComponent(ComponentDataType()); - if( !CORBA::is_nil(aComp) ) - { - SALOMEDS::ChildIterator_var Itr = theStudy->NewChildIterator(aComp); - for( Itr->InitEx(true); Itr->More(); Itr->Next() ) - { - SALOMEDS::SObject_var aSObj = Itr->Value(); - SMESH::SMESH_Mesh_var aMesh = SMESH::SMESH_Mesh::_narrow( SObjectToObject( aSObj ) ); - // mesh auto color - if( !CORBA::is_nil(aMesh) && aMesh->GetAutoColor() ) - { - CORBA::String_var anEntry = aSObj->GetID(); - anUpdatedScript += - SMESH_Comment("\n\t") << theObjectNames(anEntry.inout()) << ".SetAutoColor(1)"; - } - SMESH::SMESH_GroupBase_var aGroup = SMESH::SMESH_GroupBase::_narrow( SObjectToObject(aSObj)); - if( !CORBA::is_nil(aGroup) ) - { - SALOMEDS::Color aColor = aGroup->GetColor(); - if ( aColor.R >= 0 || aColor.G >= 0 || aColor.B >= 0 ) - { - CORBA::String_var anEntry = aSObj->GetID(); - anUpdatedScript += SMESH_Comment("\n\t") - << theObjectNames(anEntry.inout()) << ".SetColor(SALOMEDS.Color(" - << aColor.R <<", "<< aColor.G <<", "<< aColor.B <<" ))"; - } - } - } - } - // Remove removed objects if ( seqRemoved.Length() > 0 ) { anUpdatedScript += "\n\t## some objects were removed";