From 7702a9121c0e5ee210f0a92ce9db403ff94ca064 Mon Sep 17 00:00:00 2001 From: asv Date: Thu, 6 Apr 2006 13:24:06 +0000 Subject: [PATCH] Fix for a bug: prs3d offsets ("arrange actors" command) were not stored in Python script. --- src/VISU_I/VISU_DumpPython.cc | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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(); -- 2.39.2