]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
add myIsShrinkable protected field to VISU_PipeLine and initialize it
authoreap <eap@opencascade.com>
Fri, 20 May 2005 07:02:57 +0000 (07:02 +0000)
committereap <eap@opencascade.com>
Fri, 20 May 2005 07:02:57 +0000 (07:02 +0000)
src/PIPELINE/VISU_CutPlanesPL.cxx
src/PIPELINE/VISU_IsoSurfacesPL.cxx
src/PIPELINE/VISU_MeshPL.cxx
src/PIPELINE/VISU_PipeLine.cxx
src/PIPELINE/VISU_PipeLine.hxx
src/PIPELINE/VISU_Plot3DPL.cxx
src/PIPELINE/VISU_ScalarMapPL.cxx
src/PIPELINE/VISU_VectorsPL.cxx

index e57995584d9ec7bdf126c9aa917f6574de8343b2..0ff429290a7de04a123bb75065ceef1b7c39cfd4 100644 (file)
@@ -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(){
index 1692adb02e0665f753bf5181a3c0cb6d9ef55a39..5f34a2c17a232bb5545a766746c6c2f8fe35755a 100644 (file)
@@ -88,6 +88,7 @@ float VISU_IsoSurfacesPL::GetMax() {
 
 void VISU_IsoSurfacesPL::Init(){
   VISU_ScalarMapPL::Init();
+  myIsShrinkable = false;
 
   SetNbParts(10);
   float aScalarRange[2];
index 26da8b65d863447058ca07b095f8b1a4f7ced0c4..7930343a9e500adb483c4b3080995fe54fcf1eff 100644 (file)
@@ -43,4 +43,5 @@ void VISU_MeshPL::Build() {
 }
 
 void VISU_MeshPL::Init(){
+  myIsShrinkable = true;
 }
index 9cb57f20cf9fa3b7d84b47a106fbda1ae2fb870b..a5a36ad69f3c59eae699497410801aa6200683d5 100644 (file)
@@ -69,6 +69,8 @@ VISU_PipeLine::VISU_PipeLine()
   myMapper = TMapper::New();
   myInput = NULL;
 
+  myIsShrinkable = false;
+
   SetDebug(MYVTKDEBUG);
 }
 
index 75b8cf5d4380adc40a75dd45655363ac2c32725e..7267531e82f744bd4faa9af0dace46c304e18749 100644 (file)
@@ -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;
 
index 996147e847a8a073ff5fafaccf5a8ffc7510116b..f39335864d394d7b8872ed15e14a0a1938b7cb0b 100644 (file)
@@ -134,6 +134,7 @@ VISU_Plot3DPL::
 Init()
 {
   VISU_ScalarMapPL::Init();
+  myIsShrinkable = false;
 
   myOrientation = GetOrientation(GetInput2());
   SetScaleFactor(GetScaleFactor(GetInput2()));
index 5838ee0f3b87d11d6ae23cfb266ea06d9909e60f..2813c40c34c98eedc5b8182a0bdc5de2a6050e4d 100644 (file)
@@ -136,6 +136,7 @@ VISU_ScalarMapPL::THook* VISU_ScalarMapPL::DoHook(){
 
 void VISU_ScalarMapPL::Init(){
   //SetSourceRange();
+  myIsShrinkable = true;
 }
 
 
index 7945bf30621c95c4578c449105b21340c6c916ef..922719039f6b4c961f64ec1c60fbe4abb167dde1 100644 (file)
@@ -100,6 +100,7 @@ float VISU_VectorsPL::GetScale() {
 
 void VISU_VectorsPL::Init(){
   VISU_DeformedShapePL::Init();
+  myIsShrinkable = false;
 
   myTypeGlyph = ARROW;
   myPosGlyph = TAIL;