]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix bug 15064: IOLS. Stream Lines parameters are not edited.
authorjfa <jfa@opencascade.com>
Thu, 17 May 2007 09:04:42 +0000 (09:04 +0000)
committerjfa <jfa@opencascade.com>
Thu, 17 May 2007 09:04:42 +0000 (09:04 +0000)
src/PIPELINE/VISU_StreamLinesPL.cxx
src/PIPELINE/VISU_StreamLinesPL.hxx
src/VISU_I/VISU_StreamLines_i.cc

index 5eebee0b8b869db3082ff39af40c06ce82812049..97d9abfbe13f26d3b1406683f775d559d57b6602 100644 (file)
@@ -186,22 +186,21 @@ VISU_StreamLinesPL
            vtkFloatingPointType theStepLength,
            vtkDataSet* theSource,
            vtkFloatingPointType thePercents,
-           int theDirection,
-           int theIsOnlyTry)
+           int theDirection)
 {
   vtkDataSet* aDataSet = theSource? theSource: GetMergedInput();
   aDataSet->Update();
 
   vtkIdType aNbOfPoints = aDataSet->GetNumberOfPoints();
   vtkDataSet* aPointSet = GetExtractorFilter()->GetOutput();
-  if(thePercents * aNbOfPoints < 1) 
+  if (thePercents * aNbOfPoints < 1)
     thePercents = 2.0 / aNbOfPoints;
 
   theIntStep = CorrectIntegrationStep(theIntStep,
                                      aPointSet,
                                      thePercents);
 
-  thePropogationTime = CorrectPropagationTime(thePropogationTime, 
+  thePropogationTime = CorrectPropagationTime(thePropogationTime,
                                              aPointSet);
 
   theStepLength = CorrectStepLength(theStepLength,
@@ -212,7 +211,7 @@ VISU_StreamLinesPL
                                           thePropogationTime,
                                           thePercents);
 
-  if((!theIsOnlyTry && anIsAccepted) || (theIsOnlyTry && anIsAccepted == 1)){
+  if (anIsAccepted) {
     mySource = theSource;
     myPercents = thePercents;
     if(VISU::IsDataOnCells(GetMergedInput())){
index 9411e34194c7af99582417bbab43430cdb1f485e..ed762a9b5bab26bf376aa209ac913eaacb8760cc 100644 (file)
@@ -44,18 +44,17 @@ public:
   vtkTypeMacro(VISU_StreamLinesPL, VISU_DeformedShapePL);
 
   static
-  VISU_StreamLinesPL* 
+  VISU_StreamLinesPL*
   New();
 
   virtual
-  size_t 
-  SetParams(vtkFloatingPointType theIntStep, 
+  size_t
+  SetParams(vtkFloatingPointType theIntStep,
            vtkFloatingPointType thePropogationTime,
            vtkFloatingPointType theStepLength,
-           vtkDataSet* theSource = NULL, 
+           vtkDataSet* theSource = NULL,
            vtkFloatingPointType thePercents = 0.3,
-           int theDirection = VTK_INTEGRATE_BOTH_DIRECTIONS,
-           int isOnlyTry = false);
+           int theDirection = VTK_INTEGRATE_BOTH_DIRECTIONS);
 
   virtual
   vtkDataSet*
index 9725d8238ee7a94832fe4f00d9924f2463bba5c3..4e13c66eebe97b3257d09bcf302d90809fcb1fa9 100644 (file)
@@ -201,19 +201,19 @@ VISU::StreamLines_i
 
 
 //---------------------------------------------------------------
-CORBA::Boolean 
+CORBA::Boolean
 VISU::StreamLines_i
 ::SetParams(CORBA::Double theIntStep,
            CORBA::Double thePropogationTime,
            CORBA::Double theStepLength,
-           VISU::Prs3d_ptr thePrs3d, 
+           VISU::Prs3d_ptr thePrs3d,
            CORBA::Double thePercents,
-           VISU::StreamLines::Direction theDirection) 
-{ 
+           VISU::StreamLines::Direction theDirection)
+{
   VISU::Prs3d_i* aPrs3d = NULL;
   vtkPointSet* aSource = NULL;
-  if(!thePrs3d->_is_nil())
-    if((aPrs3d = dynamic_cast<VISU::Prs3d_i*>(VISU::GetServant(thePrs3d).in()))){
+  if (!thePrs3d->_is_nil())
+    if ((aPrs3d = dynamic_cast<VISU::Prs3d_i*>(VISU::GetServant(thePrs3d).in()))) {
       myAppendFilter->RemoveAllInputs();
       myAppendFilter->AddInput(aPrs3d->GetPipeLine()->GetMapper()->GetInput());
       aSource = myAppendFilter->GetOutput();
@@ -223,9 +223,8 @@ VISU::StreamLines_i
                                                   theStepLength,
                                                   aSource,
                                                   thePercents,
-                                                  theDirection,
-                                                  1);
-  if(anIsAccepted) 
+                                                  theDirection);
+  if (anIsAccepted)
     SetSource(aPrs3d);
   return anIsAccepted;
 }