]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To initialize arguments in the constructors
authorapo <apo@opencascade.com>
Thu, 9 Feb 2006 13:15:38 +0000 (13:15 +0000)
committerapo <apo@opencascade.com>
Thu, 9 Feb 2006 13:15:38 +0000 (13:15 +0000)
src/PIPELINE/VISU_CutLinesPL.cxx
src/PIPELINE/VISU_CutPlanesPL.cxx

index b518dfad7996c974b88c36c7abaadfb077cf746a..e2cfe567380ef8390fb7d646fb924d043164f7e1 100644 (file)
@@ -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<VISU_CutLinesPL*>(thePipeLine)){
index 63dd3e5a42966a4dee8b3c794f1fe08e2b8a42a2..2a547971050e06a3d4fb92aabc3d515605064226 100644 (file)
@@ -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(){