From: asv Date: Thu, 6 Apr 2006 13:24:06 +0000 (+0000) Subject: Fix for a bug: prs3d offsets ("arrange actors" command) were not stored in Python... X-Git-Tag: mergefrom_BR2_Mandriva_2006_64_07Apr06~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7702a9121c0e5ee210f0a92ce9db403ff94ca064;p=modules%2Fvisu.git Fix for a bug: prs3d offsets ("arrange actors" command) were not stored in Python script. --- diff --git a/src/VISU_I/VISU_DumpPython.cc b/src/VISU_I/VISU_DumpPython.cc index 5101d1aa..a012ca37 100644 --- a/src/VISU_I/VISU_DumpPython.cc +++ b/src/VISU_I/VISU_DumpPython.cc @@ -141,6 +141,18 @@ namespace VISU{ std::string thePrefix); + //=========================================================================== + void + Prs3dToPython(VISU::Prs3d_i* theServant, + std::ostream& theStr, + std::string& theName, + std::string thePrefix) + { + float x, y, z; + theServant->GetOffset(x,y,z); + theStr<GetName(); theStr<GetScalarMode()<<")"<(GetServant(anObj).in())){ + if(Mesh_i* aServant = dynamic_cast(GetServant(anObj).in())){ VISU::Entity anEntity = aServant->GetEntity(); const std::string& aSubMeshName = aServant->GetSubMeshName(); if(anEntity >= 0){ @@ -629,6 +644,9 @@ namespace VISU{ CORBA::String_var aNameInStudy = theSObject->GetName(); theStr<GetCellColor();