]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Implementation SameAs for Gauss Points presentation
authorapo <apo@opencascade.com>
Fri, 1 Dec 2006 12:49:12 +0000 (12:49 +0000)
committerapo <apo@opencascade.com>
Fri, 1 Dec 2006 12:49:12 +0000 (12:49 +0000)
src/VISU_I/VISU_ColoredPrs3dCache_i.cc
src/VISU_I/VISU_GaussPoints_i.cc
src/VISU_I/VISU_GaussPoints_i.hh

index c1af621fc5a50e227349a23edf7fca02cf09dd5f..782b10feb6a9db9de523bdb82f5a80331b2b3ec7 100644 (file)
@@ -412,7 +412,6 @@ VISU::ColoredPrs3dCache_i
              aViewWindow->AddActor(aNewActor);
            }else
              aNewActor->SetVisibility(true);
-           //anActor->RemoveFromRender();
            aNewActor->DeepCopy(anActor);
            aPrs3d->SetActiveState(true);
          }
index 43edd863d2383ff9d4db2ff39fdd836e9c18f9fd..9267e0ab4aee7e5f1f9b673fae010781072ae517 100644 (file)
@@ -215,6 +215,38 @@ VISU::GaussPoints_i
 }
 
 
+//---------------------------------------------------------------
+void 
+VISU::GaussPoints_i
+::SameAs(const Prs3d_i* theOrigin)
+{
+  TSuperClass::SameAs(theOrigin);
+
+  if(const GaussPoints_i* aPrs3d = dynamic_cast<const GaussPoints_i*>(theOrigin)){
+    GaussPoints_i* anOrigin = const_cast<GaussPoints_i*>(aPrs3d);
+    SetIsActiveLocalScalarBar(anOrigin->GetIsActiveLocalScalarBar());
+    SetIsDispGlobalScalarBar(anOrigin->GetIsDispGlobalScalarBar());
+    SetBiColor(anOrigin->GetBiColor());
+    SetPrimitiveType(anOrigin->GetPrimitiveType());
+    SetClamp(anOrigin->GetClamp());
+    SetMinSize(anOrigin->GetMinSize());
+    SetMaxSize(anOrigin->GetMaxSize());
+    SetGeomSize(anOrigin->GetGeomSize());
+    SetMagnification(anOrigin->GetMagnification());
+    SetMagnificationIncrement(anOrigin->GetMagnificationIncrement());
+    SetIsDeformed(anOrigin->GetIsDeformed());
+    SetScaleFactor(anOrigin->GetScaleFactor());
+    SetFaceLimit(anOrigin->GetFaceLimit());
+    SetIsColored(anOrigin->GetIsColored());
+    SetIsColored(anOrigin->GetIsColored());
+    SetColor(anOrigin->GetColor());
+    SetAlphaThreshold(anOrigin->GetAlphaThreshold());
+    SetTextures(anOrigin->GetMainTexture(), anOrigin->GetAlphaTexture());
+    SetResolution(anOrigin->GetResolution());
+  }
+}
+
+
 //----------------------------------------------------------------------------
 VISU::Storable* 
 VISU::GaussPoints_i
index cb28b472a89dbbee2ce63e0b0e80791929253a80..c9a4793bc9f39b7ac104e87b3e01843ef5c6f7f6 100644 (file)
@@ -320,6 +320,10 @@ namespace VISU
           const std::string& theFieldName, 
           CORBA::Long theTimeStampNumber);
 
+    virtual 
+    void
+    SameAs(const Prs3d_i* theOrigin);
+
     static const std::string myComment;
 
     virtual