From 0ca3e93e3c0d3e73578558adef4b86e48023f772 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 20 May 2005 07:02:57 +0000 Subject: [PATCH] add myIsShrinkable protected field to VISU_PipeLine and initialize it --- src/PIPELINE/VISU_CutPlanesPL.cxx | 1 + src/PIPELINE/VISU_IsoSurfacesPL.cxx | 1 + src/PIPELINE/VISU_MeshPL.cxx | 1 + src/PIPELINE/VISU_PipeLine.cxx | 2 ++ src/PIPELINE/VISU_PipeLine.hxx | 6 +++++- src/PIPELINE/VISU_Plot3DPL.cxx | 1 + src/PIPELINE/VISU_ScalarMapPL.cxx | 1 + src/PIPELINE/VISU_VectorsPL.cxx | 1 + 8 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/PIPELINE/VISU_CutPlanesPL.cxx b/src/PIPELINE/VISU_CutPlanesPL.cxx index e5799558..0ff42929 100644 --- a/src/PIPELINE/VISU_CutPlanesPL.cxx +++ b/src/PIPELINE/VISU_CutPlanesPL.cxx @@ -66,6 +66,7 @@ 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 1692adb0..5f34a2c1 100644 --- a/src/PIPELINE/VISU_IsoSurfacesPL.cxx +++ b/src/PIPELINE/VISU_IsoSurfacesPL.cxx @@ -88,6 +88,7 @@ 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 26da8b65..7930343a 100644 --- a/src/PIPELINE/VISU_MeshPL.cxx +++ b/src/PIPELINE/VISU_MeshPL.cxx @@ -43,4 +43,5 @@ void VISU_MeshPL::Build() { } void VISU_MeshPL::Init(){ + myIsShrinkable = true; } diff --git a/src/PIPELINE/VISU_PipeLine.cxx b/src/PIPELINE/VISU_PipeLine.cxx index 9cb57f20..a5a36ad6 100644 --- a/src/PIPELINE/VISU_PipeLine.cxx +++ b/src/PIPELINE/VISU_PipeLine.cxx @@ -69,6 +69,8 @@ VISU_PipeLine::VISU_PipeLine() myMapper = TMapper::New(); myInput = NULL; + myIsShrinkable = false; + SetDebug(MYVTKDEBUG); } diff --git a/src/PIPELINE/VISU_PipeLine.hxx b/src/PIPELINE/VISU_PipeLine.hxx index 75b8cf5d..7267531e 100644 --- a/src/PIPELINE/VISU_PipeLine.hxx +++ b/src/PIPELINE/VISU_PipeLine.hxx @@ -99,13 +99,17 @@ public: void SetPlaneParam(float theDir[3], float theDist, vtkPlane* thePlane); void GetPlaneParam(float theDir[3], float& theDist, vtkPlane* thePlane); + bool IsShrinkable() { return myIsShrinkable; } + protected: VISU_PipeLine(); VISU_PipeLine(const VISU_PipeLine&); virtual TInput* GetInput2() const; virtual void Build() = 0; - + + bool myIsShrinkable; + TMapper *myMapper; TInput *myInput; diff --git a/src/PIPELINE/VISU_Plot3DPL.cxx b/src/PIPELINE/VISU_Plot3DPL.cxx index 996147e8..f3933586 100644 --- a/src/PIPELINE/VISU_Plot3DPL.cxx +++ b/src/PIPELINE/VISU_Plot3DPL.cxx @@ -134,6 +134,7 @@ 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 5838ee0f..2813c40c 100644 --- a/src/PIPELINE/VISU_ScalarMapPL.cxx +++ b/src/PIPELINE/VISU_ScalarMapPL.cxx @@ -136,6 +136,7 @@ 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 7945bf30..92271903 100644 --- a/src/PIPELINE/VISU_VectorsPL.cxx +++ b/src/PIPELINE/VISU_VectorsPL.cxx @@ -100,6 +100,7 @@ float VISU_VectorsPL::GetScale() { void VISU_VectorsPL::Init(){ VISU_DeformedShapePL::Init(); + myIsShrinkable = false; myTypeGlyph = ARROW; myPosGlyph = TAIL; -- 2.39.2