Salome HOME
PAL10250. Dump Plot3D
authoreap <eap@opencascade.com>
Mon, 14 Nov 2005 10:06:34 +0000 (10:06 +0000)
committereap <eap@opencascade.com>
Mon, 14 Nov 2005 10:06:34 +0000 (10:06 +0000)
src/VISU_I/VISU_DumpPython.cc

index 02ae8b78ef138d5e226390c3c5407d4cac6c0638..91b8ef80fbdc5f9a9d214cca5d7dd3585dbea8ff 100644 (file)
@@ -839,34 +839,22 @@ namespace VISU{
           return;
         case VISU::TPLOT3D:
           if (Plot3D_i* aServant = dynamic_cast<Plot3D_i*>(GetServant(anObj).in())) {
-            // jfa: TODO
-            /*thePrefix = ScalarMapToPython(theSObject, aServant, theStr, aName,
+            thePrefix = ScalarMapToPython(theSObject, aServant, theStr, aName,
                                          "Plot3DOnField", theArgumentName, thePrefix);
 
            std::string aParam;
            switch(aServant->GetOrientationType()){
-           case CutPlanes::XY:
-             aParam = "VISU.CutPlanes.XY";
-             break;
-           case CutPlanes::YZ:
-             aParam = "VISU.CutPlanes.YZ";
-             break;
-           case CutPlanes::ZX:
-             aParam = "VISU.CutPlanes.ZX";
-             break;
+           case CutPlanes::XY: aParam = "VISU.Plot3D.XY"; break;
+           case CutPlanes::YZ: aParam = "VISU.Plot3D.YZ"; break;
+           case CutPlanes::ZX: aParam = "VISU.Plot3D.ZX"; break;
            }
            theStr<<thePrefix<<aName<<".SetOrientation("<<aParam<<","<<aServant->GetRotateX()<<","<<aServant->GetRotateY()<<")"<<endl;
 
-           theStr<<thePrefix<<aName<<".SetDisplacement("<<aServant->GetDisplacement()<<")"<<endl;
-           CORBA::Long aNbPlanes = aServant->GetNbPlanes();
-           theStr<<thePrefix<<aName<<".SetNbPlanes("<<aNbPlanes<<")"<<endl;
-
-           for(CORBA::Long anId = 0; anId < aNbPlanes; anId++){
-             if(!aServant->IsDefault(anId))
-               theStr<<thePrefix<<aName<<".SetPlanePosition("<<anId<<","<<aServant->GetPlanePosition(anId)<<")"<<endl;
-           }
-
-            theStr<<thePrefix<<"pass"<<endl<<endl;*/
+           theStr<<thePrefix<<aName<<".SetPlanePosition("<<aServant->GetPlanePosition()<<","<<aServant->IsPositionRelative()<<")"<<endl;
+           theStr<<thePrefix<<aName<<".SetScaleFactor("<<aServant->GetScaleFactor()<<")"<<endl;
+            theStr<<thePrefix<<aName<<".SetContourPrs("<<aServant->GetIsContourPrs()<<")"<<endl;
+            theStr<<thePrefix<<aName<<".SetNbOfContours("<<aServant->GetNbOfContours()<<")"<<endl;
+            theStr<<thePrefix<<"pass"<<endl<<endl;
           }
           return;
         case VISU::TCURVE: