From 65bf86eb688e322addc8eb6a71127b5882fa4cb3 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 1 Dec 2006 12:49:12 +0000 Subject: [PATCH] Implementation SameAs for Gauss Points presentation --- src/VISU_I/VISU_ColoredPrs3dCache_i.cc | 1 - src/VISU_I/VISU_GaussPoints_i.cc | 32 ++++++++++++++++++++++++++ src/VISU_I/VISU_GaussPoints_i.hh | 4 ++++ 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_ColoredPrs3dCache_i.cc b/src/VISU_I/VISU_ColoredPrs3dCache_i.cc index c1af621f..782b10fe 100644 --- a/src/VISU_I/VISU_ColoredPrs3dCache_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3dCache_i.cc @@ -412,7 +412,6 @@ VISU::ColoredPrs3dCache_i aViewWindow->AddActor(aNewActor); }else aNewActor->SetVisibility(true); - //anActor->RemoveFromRender(); aNewActor->DeepCopy(anActor); aPrs3d->SetActiveState(true); } diff --git a/src/VISU_I/VISU_GaussPoints_i.cc b/src/VISU_I/VISU_GaussPoints_i.cc index 43edd863..9267e0ab 100644 --- a/src/VISU_I/VISU_GaussPoints_i.cc +++ b/src/VISU_I/VISU_GaussPoints_i.cc @@ -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(theOrigin)){ + GaussPoints_i* anOrigin = const_cast(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 diff --git a/src/VISU_I/VISU_GaussPoints_i.hh b/src/VISU_I/VISU_GaussPoints_i.hh index cb28b472..c9a4793b 100644 --- a/src/VISU_I/VISU_GaussPoints_i.hh +++ b/src/VISU_I/VISU_GaussPoints_i.hh @@ -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 -- 2.39.2