From 95124641cc95766c583fca3a3de72dc1d45c943a Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 9 Feb 2006 13:15:38 +0000 Subject: [PATCH] To initialize arguments in the constructors --- src/PIPELINE/VISU_CutLinesPL.cxx | 5 ++++- src/PIPELINE/VISU_CutPlanesPL.cxx | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/PIPELINE/VISU_CutLinesPL.cxx b/src/PIPELINE/VISU_CutLinesPL.cxx index b518dfad..e2cfe567 100644 --- a/src/PIPELINE/VISU_CutLinesPL.cxx +++ b/src/PIPELINE/VISU_CutLinesPL.cxx @@ -34,7 +34,10 @@ using namespace std; vtkStandardNewMacro(VISU_CutLinesPL); -VISU_CutLinesPL::VISU_CutLinesPL(){} +VISU_CutLinesPL::VISU_CutLinesPL(){ + myCondition = 1; + myPosition = 0; +} void VISU_CutLinesPL::ShallowCopy(VISU_PipeLine *thePipeLine){ if(VISU_CutLinesPL *aPipeLine = dynamic_cast(thePipeLine)){ diff --git a/src/PIPELINE/VISU_CutPlanesPL.cxx b/src/PIPELINE/VISU_CutPlanesPL.cxx index 63dd3e5a..2a547971 100644 --- a/src/PIPELINE/VISU_CutPlanesPL.cxx +++ b/src/PIPELINE/VISU_CutPlanesPL.cxx @@ -42,6 +42,16 @@ vtkStandardNewMacro(VISU_CutPlanesPL); VISU_CutPlanesPL::VISU_CutPlanesPL(){ myAppendPolyData = vtkAppendPolyData::New(); myIsShrinkable = false; + + myNbParts = 10; + + myBasePlane[0] = YZ; + myBasePlane[0] = XY; + + myDisplacement[0] = myDisplacement[1] = 0.5; + + myAng[0][0] = myAng[0][1] = myAng[0][2] = 0.0; + myAng[1][0] = myAng[1][1] = myAng[1][2] = 0.0; } VISU_CutPlanesPL::~VISU_CutPlanesPL(){ -- 2.39.2