From 707e2ff4e499b6c9e3019fe5cdb536a269a9e1a1 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 24 May 2005 06:24:08 +0000 Subject: [PATCH] move myIsShrinkable initialization into constructor --- src/PIPELINE/VISU_CutPlanesPL.cxx | 2 +- src/PIPELINE/VISU_IsoSurfacesPL.cxx | 2 +- src/PIPELINE/VISU_MeshPL.cxx | 5 +++-- src/PIPELINE/VISU_Plot3DPL.cxx | 2 +- src/PIPELINE/VISU_ScalarMapPL.cxx | 2 +- src/PIPELINE/VISU_VectorsPL.cxx | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/PIPELINE/VISU_CutPlanesPL.cxx b/src/PIPELINE/VISU_CutPlanesPL.cxx index 0ff42929..dc2b2c33 100644 --- a/src/PIPELINE/VISU_CutPlanesPL.cxx +++ b/src/PIPELINE/VISU_CutPlanesPL.cxx @@ -41,6 +41,7 @@ vtkStandardNewMacro(VISU_CutPlanesPL); VISU_CutPlanesPL::VISU_CutPlanesPL(){ myAppendPolyData = vtkAppendPolyData::New(); + myIsShrinkable = false; } VISU_CutPlanesPL::~VISU_CutPlanesPL(){ @@ -66,7 +67,6 @@ void VISU_CutPlanesPL::Init(){ myBasePlane[0] = YZ; myDisplacement[0] = 0.5; myAng[0][0] = myAng[0][1] = myAng[0][2] = 0.0; - myIsShrinkable = false; } VISU_ScalarMapPL::THook* VISU_CutPlanesPL::DoHook(){ diff --git a/src/PIPELINE/VISU_IsoSurfacesPL.cxx b/src/PIPELINE/VISU_IsoSurfacesPL.cxx index 5f34a2c1..d66233ec 100644 --- a/src/PIPELINE/VISU_IsoSurfacesPL.cxx +++ b/src/PIPELINE/VISU_IsoSurfacesPL.cxx @@ -36,6 +36,7 @@ vtkStandardNewMacro(VISU_IsoSurfacesPL); VISU_IsoSurfacesPL::VISU_IsoSurfacesPL(){ myContourFilter = vtkContourFilter::New(); myCellDataToPointData = vtkCellDataToPointData::New(); + myIsShrinkable = false; } VISU_IsoSurfacesPL::~VISU_IsoSurfacesPL(){ @@ -88,7 +89,6 @@ float VISU_IsoSurfacesPL::GetMax() { void VISU_IsoSurfacesPL::Init(){ VISU_ScalarMapPL::Init(); - myIsShrinkable = false; SetNbParts(10); float aScalarRange[2]; diff --git a/src/PIPELINE/VISU_MeshPL.cxx b/src/PIPELINE/VISU_MeshPL.cxx index 7930343a..bd7b8efc 100644 --- a/src/PIPELINE/VISU_MeshPL.cxx +++ b/src/PIPELINE/VISU_MeshPL.cxx @@ -36,12 +36,13 @@ vtkStandardNewMacro(VISU_MeshPL); -VISU_MeshPL::VISU_MeshPL(){} +VISU_MeshPL::VISU_MeshPL(){ + myIsShrinkable = true; +} void VISU_MeshPL::Build() { myMapper->SetInput(GetInput2()); } void VISU_MeshPL::Init(){ - myIsShrinkable = true; } diff --git a/src/PIPELINE/VISU_Plot3DPL.cxx b/src/PIPELINE/VISU_Plot3DPL.cxx index f3933586..a4af5911 100644 --- a/src/PIPELINE/VISU_Plot3DPL.cxx +++ b/src/PIPELINE/VISU_Plot3DPL.cxx @@ -58,6 +58,7 @@ VISU_Plot3DPL::VISU_Plot3DPL(): { myAngle[0] = myAngle[1] = myAngle[2] = 0.; SetNumberOfContours(32); + myIsShrinkable = false; } VISU_Plot3DPL::~VISU_Plot3DPL() @@ -134,7 +135,6 @@ VISU_Plot3DPL:: Init() { VISU_ScalarMapPL::Init(); - myIsShrinkable = false; myOrientation = GetOrientation(GetInput2()); SetScaleFactor(GetScaleFactor(GetInput2())); diff --git a/src/PIPELINE/VISU_ScalarMapPL.cxx b/src/PIPELINE/VISU_ScalarMapPL.cxx index 2813c40c..48acd252 100644 --- a/src/PIPELINE/VISU_ScalarMapPL.cxx +++ b/src/PIPELINE/VISU_ScalarMapPL.cxx @@ -52,6 +52,7 @@ VISU_ScalarMapPL::VISU_ScalarMapPL(){ myExtractor = VISU_Extractor::New(); //myExtractor->DebugOn(); + myIsShrinkable = true; } @@ -136,7 +137,6 @@ VISU_ScalarMapPL::THook* VISU_ScalarMapPL::DoHook(){ void VISU_ScalarMapPL::Init(){ //SetSourceRange(); - myIsShrinkable = true; } diff --git a/src/PIPELINE/VISU_VectorsPL.cxx b/src/PIPELINE/VISU_VectorsPL.cxx index 92271903..b6a09875 100644 --- a/src/PIPELINE/VISU_VectorsPL.cxx +++ b/src/PIPELINE/VISU_VectorsPL.cxx @@ -46,6 +46,7 @@ VISU_VectorsPL::VISU_VectorsPL(){ myCenters = vtkCellCenters::New(); myTransformFilter = SALOME_TransformFilter::New(); + myIsShrinkable = false; } VISU_VectorsPL::~VISU_VectorsPL(){ @@ -100,7 +101,6 @@ float VISU_VectorsPL::GetScale() { void VISU_VectorsPL::Init(){ VISU_DeformedShapePL::Init(); - myIsShrinkable = false; myTypeGlyph = ARROW; myPosGlyph = TAIL; -- 2.39.2