]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
We need not call the Superclass::DoShallowCopy(thePipeLine, theIsCopyInput) in the...
authorapo <apo@opencascade.com>
Mon, 15 Jan 2007 09:55:46 +0000 (09:55 +0000)
committerapo <apo@opencascade.com>
Mon, 15 Jan 2007 09:55:46 +0000 (09:55 +0000)
src/PIPELINE/VISU_ColoredPL.cxx
src/PIPELINE/VISU_CutLinesPL.cxx
src/PIPELINE/VISU_CutPlanesPL.cxx
src/PIPELINE/VISU_DeformedShapePL.cxx
src/PIPELINE/VISU_IsoSurfacesPL.cxx
src/PIPELINE/VISU_Plot3DPL.cxx
src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.cxx
src/PIPELINE/VISU_StreamLinesPL.cxx
src/PIPELINE/VISU_VectorsPL.cxx

index 0e6ec80725d14c58ef529b24a2a0a74cbb3a8963..e96225c5b85d88cec9fe0952cd1d97a1e5208c32 100644 (file)
@@ -67,6 +67,8 @@ VISU_ColoredPL
 ::DoShallowCopy(VISU_PipeLine *thePipeLine,
                bool theIsCopyInput)
 {
+  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
+
   if(VISU_ColoredPL *aPipeLine = dynamic_cast<VISU_ColoredPL*>(thePipeLine)){
     if(theIsCopyInput)
       SetScalarRange(aPipeLine->GetScalarRange());
@@ -75,8 +77,6 @@ VISU_ColoredPL
     SetScaling(aPipeLine->GetScaling());
     SetMapScale(aPipeLine->GetMapScale());
   }
-
-  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
 }
 
 
index d5be0a7396fdb5feabb44df3cd8d66a484731e6c..0c81eee16c09b9a795876733b973cae716cb6cd8 100644 (file)
@@ -50,6 +50,8 @@ VISU_CutLinesPL
 ::DoShallowCopy(VISU_PipeLine *thePipeLine,
                bool theIsCopyInput)
 {
+  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
+
   if(VISU_CutLinesPL *aPipeLine = dynamic_cast<VISU_CutLinesPL*>(thePipeLine)){
     SetOrientation(aPipeLine->GetPlaneOrientation(1),
                   aPipeLine->GetRotateX(1),aPipeLine->GetRotateY(1),1);
@@ -59,7 +61,6 @@ VISU_CutLinesPL
     else
       SetPosition(aPipeLine->GetPosition());
   }
-  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
 }
 
 
index 8403583d130a380074754640db02668157c8d2af..80e3a329b89b9642306b3d7afae05e03f507b00a 100644 (file)
@@ -75,6 +75,8 @@ VISU_CutPlanesPL
 ::DoShallowCopy(VISU_PipeLine *thePipeLine,
                bool theIsCopyInput)
 {
+  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
+
   if(VISU_CutPlanesPL *aPipeLine = dynamic_cast<VISU_CutPlanesPL*>(thePipeLine)){
 
     SetOrientation(aPipeLine->GetPlaneOrientation(),
@@ -88,7 +90,6 @@ VISU_CutPlanesPL
       if(!aPipeLine->IsPartDefault(i))         
        SetPartPosition(i, aPipeLine->GetPartPosition(i));
   }
-  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
 }
 
 
index 5c1a629ea87e59a46f342ece16f67cb2db2cdd50..4c9fbe95e9c3677f723885043fd21a78fb26dba9 100644 (file)
@@ -62,11 +62,11 @@ VISU_DeformedShapePL
 ::DoShallowCopy(VISU_PipeLine *thePipeLine,
                bool theIsCopyInput)
 {
+  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
+
   if(VISU_DeformedShapePL *aPipeLine = dynamic_cast<VISU_DeformedShapePL*>(thePipeLine)){
     SetScale(aPipeLine->GetScale());
   }
-
-  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
 }
 
 
index 99cdc08123b3d7cc671022330364903fbf8cdd77..d812182c943fc0816b164c04d40a1a4b7e9671e3 100644 (file)
@@ -68,13 +68,13 @@ VISU_IsoSurfacesPL
 ::DoShallowCopy(VISU_PipeLine *thePipeLine,
                bool theIsCopyInput)
 {
+  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
+
   if(VISU_IsoSurfacesPL *aPipeLine = dynamic_cast<VISU_IsoSurfacesPL*>(thePipeLine)){
     SetNbParts(aPipeLine->GetNbParts());
     vtkFloatingPointType aRange[2] = {aPipeLine->GetMin(), aPipeLine->GetMax()};
     SetRange(aRange);
   }
-
-  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
 }
 
 
index 0b7758a40b989a6546308e068474053e224f4cb6..42724887c886cc293959e7854ad67c6ae0dbeaac 100644 (file)
@@ -85,6 +85,8 @@ VISU_Plot3DPL
 ::DoShallowCopy(VISU_PipeLine *thePipeLine,
                bool theIsCopyInput)
 {
+  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
+
   if(VISU_Plot3DPL *aPipeLine = dynamic_cast<VISU_Plot3DPL*>(thePipeLine)){
     SetOrientation (aPipeLine->GetPlaneOrientation(),
                     aPipeLine->GetRotateX(), aPipeLine->GetRotateY());
@@ -94,8 +96,6 @@ VISU_Plot3DPL
     SetContourPrs( aPipeLine->GetIsContourPrs() );
     SetNumberOfContours( aPipeLine->GetNumberOfContours() );
   }
-
-  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
 }
 
 
index 2612324a590f636c78e9bbb85c4ba8f880bd74c1..583642a3707aabec553de8c519c2908c47e0ef08 100644 (file)
@@ -203,6 +203,8 @@ VISU_ScalarMapOnDeformedShapePL
 ::DoShallowCopy(VISU_PipeLine *thePipeLine,
                bool theIsCopyInput)
 {
+  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
+
   if(VISU_ScalarMapOnDeformedShapePL *aPipeLine = dynamic_cast<VISU_ScalarMapOnDeformedShapePL*>(thePipeLine)){
      SetScale(aPipeLine->GetScale());
      SetScalars(aPipeLine->GetScalars());
@@ -210,8 +212,6 @@ VISU_ScalarMapOnDeformedShapePL
      aPipeLine->GetSourceRange(aRange);
      SetScalarRange(aRange);
   }
-
-  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
 }
 
 //----------------------------------------------------------------------------
index 937065554a0dd5663b4e0a9820afcfa5b9905b94..e47a0f38e6ddb7dc4170e19a6f44a05e66cd1463 100644 (file)
@@ -91,6 +91,8 @@ VISU_StreamLinesPL
 ::DoShallowCopy(VISU_PipeLine *thePipeLine,
                bool theIsCopyInput)
 {
+  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
+
   if(VISU_StreamLinesPL *aPipeLine = dynamic_cast<VISU_StreamLinesPL*>(thePipeLine)){
     SetParams(aPipeLine->GetIntegrationStep(),
              aPipeLine->GetPropagationTime(),
@@ -99,8 +101,6 @@ VISU_StreamLinesPL
              aPipeLine->GetUsedPoints(),
              aPipeLine->GetDirection());
   }
-
-  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
 }
 
 
index 9c685a061848a0c296398f2067e3761360c53d90..43afae0a4d525baf34268ab24cc89ae0254164e3 100644 (file)
@@ -84,12 +84,12 @@ VISU_VectorsPL
 ::DoShallowCopy(VISU_PipeLine *thePipeLine,
                bool theIsCopyInput)
 {
+  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
+
   if(VISU_VectorsPL *aPipeLine = dynamic_cast<VISU_VectorsPL*>(thePipeLine)){
     SetGlyphType(aPipeLine->GetGlyphType());
     SetGlyphPos(aPipeLine->GetGlyphPos());
   }
-
-  Superclass::DoShallowCopy(thePipeLine, theIsCopyInput);
 }