#include "VISU_Prs3d_i.hh"
#include "VISU_Mesh_i.hh"
+#include "VISU_PrsMerger_i.hh"
#include "VISU_ScalarMap_i.hh"
#include "VISU_IsoSurfaces_i.hh"
#include "VISU_DeformedShape_i.hh"
return thePrefix;
}
-
+ //===========================================================================
+ std::string
+ PrsMergerToPython(SALOMEDS::SObject_ptr theSObject,
+ VISU::PrsMerger_i* theServant,
+ std::ostream& theStr,
+ std::string& theName,
+ const std::string& theConstructorName,
+ const std::string& theArgumentName,
+ std::string thePrefix)
+ {
+ thePrefix = ScalarMapToPython(theSObject,theServant,theStr,theName,theConstructorName,theArgumentName,thePrefix);
+ string_array_var aGroupNames = theServant->getGroupNames();
+ for(int i=0; i<aGroupNames->length(); i++)
+ {
+ theStr<<thePrefix<<theName<<".AddMeshOnGroup('"
+ <<theServant->GetMeshName()<<"','"
+ <<aGroupNames[i]<<"')"<<endl;
+ }
+ return thePrefix;
+ }
+
//===========================================================================
std::string
DeformedShapeToPython(SALOMEDS::SObject_ptr theSObject,
return;
}
break;
+ case VISU::TPRSMERGER:
+ if(PrsMerger_i* aServant = dynamic_cast<PrsMerger_i*>(GetServant(anObj).in())){
+ thePrefix = PrsMergerToPython(theSObject,aServant,theStr,aName,"ScalarMapOnField",theArgumentName,thePrefix);
+ theStr<<thePrefix<<"pass"<<endl<<endl;
+ }
+ return;
case VISU::TSCALARMAP:
if(ScalarMap_i* aServant = dynamic_cast<ScalarMap_i*>(GetServant(anObj).in())){
thePrefix = ScalarMapToPython(theSObject,aServant,theStr,aName,"ScalarMapOnField",theArgumentName,thePrefix);