From: apo Date: Thu, 9 Feb 2006 13:15:38 +0000 (+0000) Subject: To initialize arguments in the constructors X-Git-Tag: mergeto_trunk_13Mar06~51 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=95124641cc95766c583fca3a3de72dc1d45c943a;p=modules%2Fvisu.git To initialize arguments in the constructors --- 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(){