Salome HOME
untabify
authoreap <eap@opencascade.com>
Fri, 11 Mar 2011 14:36:56 +0000 (14:36 +0000)
committereap <eap@opencascade.com>
Fri, 11 Mar 2011 14:36:56 +0000 (14:36 +0000)
src/SMESHGUI/SMESHGUI.cxx
src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.cxx
src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx
src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx
src/SMESHGUI/SMESHGUI_RotationDlg.cxx
src/SMESHGUI/SMESHGUI_ScaleDlg.cxx
src/SMESHGUI/SMESHGUI_ScaleDlg.h
src/SMESHGUI/SMESHGUI_SmoothingDlg.cxx
src/SMESHGUI/SMESHGUI_SymmetryDlg.cxx
src/SMESHGUI/SMESHGUI_TranslationDlg.cxx
src/SMESHGUI/SMESHGUI_VTKUtils.cxx

index a0f68f2faceed03439720ea0c410a60669eb8be6..e7a950a1ba9db5dbc6e1fb175e291a580164c3ed 100644 (file)
             std::string anEntry = SO->GetID();
             
             /** Erase graphical object **/
-         if(SO->FindAttribute(anAttr, "AttributeIOR")){
-           ViewManagerList aViewMenegers = anApp->viewManagers();
-           ViewManagerList::const_iterator it = aViewMenegers.begin();
-           for( ; it != aViewMenegers.end(); it++) {         
-             SUIT_ViewManager* vm = *it;
-             int nbSf = vm ? vm->getViewsCount() : 0;
-             if(vm) {
+          if(SO->FindAttribute(anAttr, "AttributeIOR")){
+            ViewManagerList aViewMenegers = anApp->viewManagers();
+            ViewManagerList::const_iterator it = aViewMenegers.begin();
+            for( ; it != aViewMenegers.end(); it++) {         
+              SUIT_ViewManager* vm = *it;
+              int nbSf = vm ? vm->getViewsCount() : 0;
+              if(vm) {
                 QVector<SUIT_ViewWindow*> aViews = vm->getViews();
                 for(int i = 0; i < nbSf; i++){
                   SUIT_ViewWindow *sf = aViews[i];
                   }
                 }
               }
-           }
-         }
+            }
+          }
             /** Remove an object from data structures **/
             SMESH::SMESH_GroupBase_var aGroup = SMESH::SMESH_GroupBase::_narrow( SMESH::SObjectToObject( SO ));
             SMESH::SMESH_subMesh_var   aSubMesh = SMESH::SMESH_subMesh::_narrow( SMESH::SObjectToObject( SO ));
@@ -2879,7 +2879,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
         for ( anIter->InitEx(true); anIter->More(); anIter->Next() )
         {
           _PTR(SObject) so = anIter->Value();
-         SMESH::RemoveVisualObjectWithActors(so->GetID().c_str(), true);
+          SMESH::RemoveVisualObjectWithActors(so->GetID().c_str(), true);
         }
       }
       catch (const SALOME::SALOME_Exception& S_ex){
index eb9a7aa37a1a789f51e07ee4760f48bd77e5da9b..be57b55699da50dd1b42cf30ece1ff921a7b347b 100644 (file)
@@ -1311,50 +1311,50 @@ void SMESHGUI_ExtrusionAlongPathDlg::onDisplaySimulation( bool toDisplayPreview
       // get base point
       SMESH::PointStruct aBasePoint;
       if (BasePointGrp->isChecked()) {
-       aBasePoint.x = XSpin->GetValue();
-       aBasePoint.y = YSpin->GetValue();
-       aBasePoint.z = ZSpin->GetValue();
+        aBasePoint.x = XSpin->GetValue();
+        aBasePoint.y = YSpin->GetValue();
+        aBasePoint.z = ZSpin->GetValue();
       }
       bool bOk;
       long aNodeStart = StartPointLineEdit->text().toLong(&bOk);
       if (bOk) {
-       
-       try {
-         SUIT_OverrideCursor wc;
-         
-         SMESH::SMESH_MeshEditor::Extrusion_Error retVal;
-         SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
-         bool NeedGroups = false;
-         SMESH::ElementType ElemType = SMESH::FACE;
-         if( GetConstructorId() == 0 )
-           ElemType = SMESH::EDGE;
-         if( !MeshCheck->isChecked() ) {
-           aMeshEditor->ExtrusionAlongPathX(anElementsId, myPath, aNodeStart, AnglesGrp->isChecked(),
-                                            anAngles, LinearAnglesCheck->isChecked(),
-                                            BasePointGrp->isChecked(), aBasePoint,
-                                            NeedGroups, ElemType, retVal);
-         }
-         else {
-           SMESH::ListOfGroups_var groups = 
-             aMeshEditor->ExtrusionAlongPathObjX(myIDSource, myPath, aNodeStart, AnglesGrp->isChecked(),
-                                                 anAngles, LinearAnglesCheck->isChecked(),
-                                                 BasePointGrp->isChecked(), aBasePoint,
-                                                 NeedGroups, ElemType, retVal);
-         }
-         
-         wc.suspend();
-         if( retVal == SMESH::SMESH_MeshEditor::EXTR_OK ) {
-           SMESH::MeshPreviewStruct_var aMeshPreviewStruct = aMeshEditor->GetPreviewData();
-           mySimulation->SetData(aMeshPreviewStruct._retn());
-         } else {
-           hidePreview();
-         }
-         
-       } catch (...) {
-         hidePreview();
-       }
+        
+        try {
+          SUIT_OverrideCursor wc;
+          
+          SMESH::SMESH_MeshEditor::Extrusion_Error retVal;
+          SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
+          bool NeedGroups = false;
+          SMESH::ElementType ElemType = SMESH::FACE;
+          if( GetConstructorId() == 0 )
+            ElemType = SMESH::EDGE;
+          if( !MeshCheck->isChecked() ) {
+            aMeshEditor->ExtrusionAlongPathX(anElementsId, myPath, aNodeStart, AnglesGrp->isChecked(),
+                                             anAngles, LinearAnglesCheck->isChecked(),
+                                             BasePointGrp->isChecked(), aBasePoint,
+                                             NeedGroups, ElemType, retVal);
+          }
+          else {
+            SMESH::ListOfGroups_var groups = 
+              aMeshEditor->ExtrusionAlongPathObjX(myIDSource, myPath, aNodeStart, AnglesGrp->isChecked(),
+                                                  anAngles, LinearAnglesCheck->isChecked(),
+                                                  BasePointGrp->isChecked(), aBasePoint,
+                                                  NeedGroups, ElemType, retVal);
+          }
+          
+          wc.suspend();
+          if( retVal == SMESH::SMESH_MeshEditor::EXTR_OK ) {
+            SMESH::MeshPreviewStruct_var aMeshPreviewStruct = aMeshEditor->GetPreviewData();
+            mySimulation->SetData(aMeshPreviewStruct._retn());
+          } else {
+            hidePreview();
+          }
+          
+        } catch (...) {
+          hidePreview();
+        }
       } else {
-       hidePreview();
+        hidePreview();
       }
       
     } else {
@@ -1388,16 +1388,16 @@ SMESH::long_array_var SMESHGUI_ExtrusionAlongPathDlg::getSelectedElements() {
       bool bOk;
       int j = 0;
       for (int i = 0; i < aListElementsId.count(); i++) {
-       long ind = aListElementsId[ i ].toLong(&bOk);
-       if  (bOk) {
-         const SMDS_MeshElement* e = aMesh->FindElement(ind);
-         if (e) {
-           bool typeMatch = Elements1dRB->isChecked() && e->GetType() == SMDSAbs_Edge ||
-             Elements2dRB->isChecked() && e->GetType() == SMDSAbs_Face;
-           if (typeMatch)
-                 anElementsId[ j++ ] = ind;
-         }
-       }
+        long ind = aListElementsId[ i ].toLong(&bOk);
+        if  (bOk) {
+          const SMDS_MeshElement* e = aMesh->FindElement(ind);
+          if (e) {
+            bool typeMatch = Elements1dRB->isChecked() && e->GetType() == SMDSAbs_Edge ||
+              Elements2dRB->isChecked() && e->GetType() == SMDSAbs_Face;
+            if (typeMatch)
+                  anElementsId[ j++ ] = ind;
+          }
+        }
       }
       anElementsId->length(j);
     }
index 0a8256bbe805131bb3c3ef9257b2ba681ec5749f..514615a3f4a3d1eb2da89aeea41a60e15155dfdf 100644 (file)
@@ -1069,8 +1069,8 @@ void SMESHGUI_ExtrusionDlg::onDisplaySimulation( bool toDisplayPreview ) {
       long aNbSteps = (long)SpinBox_NbSteps->value();
       
       try {
-       SUIT_OverrideCursor aWaitCursor;
-       SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
+        SUIT_OverrideCursor aWaitCursor;
+        SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
         if( CheckBoxMesh->isChecked() ) {
           if( GetConstructorId() == 0 )
             aMeshEditor->ExtrusionSweepObject1D(mySelectedObject, aVector, aNbSteps);
@@ -1079,11 +1079,11 @@ void SMESHGUI_ExtrusionDlg::onDisplaySimulation( bool toDisplayPreview ) {
         }
         else
           aMeshEditor->ExtrusionSweep(myElementsId.inout(), aVector, aNbSteps);
-       
+        
         SMESH::MeshPreviewStruct_var aMeshPreviewStruct = aMeshEditor->GetPreviewData();
         mySimulation->SetData(aMeshPreviewStruct._retn());
       } catch (...) {
-       hidePreview();
+        hidePreview();
       }
     } else {
       hidePreview();
@@ -1101,11 +1101,11 @@ void SMESHGUI_ExtrusionDlg::getExtrusionVector(SMESH::DirStruct& aVector) {
   if ( RadioButton3->isChecked() ) {
     aVector.PS.x = SpinBox_Dx->GetValue();
     aVector.PS.y = SpinBox_Dy->GetValue();
-    aVector.PS.z = SpinBox_Dz->GetValue();     
+    aVector.PS.z = SpinBox_Dz->GetValue();      
   } else if ( RadioButton4->isChecked() ) {
     gp_XYZ aNormale(SpinBox_Vx->GetValue(),
-                   SpinBox_Vy->GetValue(),
-                   SpinBox_Vz->GetValue());
+                    SpinBox_Vy->GetValue(),
+                    SpinBox_Vz->GetValue());
     
     
     aNormale /= aNormale.Modulus();
index 57d2fc16cdb1b353c63e643dee06ca6448571925..808f3f18240959cc2f0ef19c2b502a73be8b588d 100644 (file)
@@ -540,7 +540,7 @@ bool SMESHGUI_Preferences_ScalarBarDlg::onApply()
       myScalarBarActor->GetDistributionColor(oldRgb);
       colorChanged = (rgb[0] != oldRgb[0] || rgb[1] != oldRgb[1] || rgb[2] != oldRgb[2]);
       if(colorChanged)
-       myScalarBarActor->SetDistributionColor(rgb);
+        myScalarBarActor->SetDistributionColor(rgb);
     }
   }
 
@@ -682,15 +682,15 @@ void SMESHGUI_Preferences_ScalarBarDlg::onSelectionChanged()
         myMonoColorBtn->setColor( QColor( (int)( aTColor[0]*255 ), (int)( aTColor[1]*255 ), (int)( aTColor[2]*255 ) ) );
         if ( coloringType == SMESH_MONOCOLOR_TYPE ) {
           myDMonoColor->setChecked(true);
-         onDistributionChanged(myDistribColorGrp->id(myDMonoColor));    
+          onDistributionChanged(myDistribColorGrp->id(myDMonoColor));    
         } else {
           myDMultiColor->setChecked(true);
           onDistributionChanged(myDistribColorGrp->id(myDMultiColor));
         }
         myDistributionGrp->setChecked((bool)myScalarBarActor->GetDistributionVisibility());
-       onDistributionActivated(myScalarBarActor->GetDistributionVisibility());
-       
-       
+        onDistributionActivated(myScalarBarActor->GetDistributionVisibility());
+        
+        
         myRangeGrp->setEnabled( true );
         myFontGrp->setEnabled( true );
         myLabColorGrp->setEnabled( true );
@@ -698,7 +698,7 @@ void SMESHGUI_Preferences_ScalarBarDlg::onSelectionChanged()
         myOriginDimGrp->setEnabled( true );
         myOkBtn->setEnabled( true );
         myApplyBtn->setEnabled( true );
-       myDistributionGrp->setEnabled( true );
+        myDistributionGrp->setEnabled( true );
         return;
       }
     }
index d13cabbf14e0ce012146ec21da7d30068a166058..5daf12be1ace52f58bebca169e5e04d1b7e40f44 100644 (file)
@@ -1069,7 +1069,7 @@ void SMESHGUI_RotationDlg::onDisplaySimulation( bool toDisplayPreview ) {
       
       anElementsId->length(aListElementsId.count());
       for (int i = 0; i < aListElementsId.count(); i++)
-       anElementsId[i] = aListElementsId[i].toInt();
+        anElementsId[i] = aListElementsId[i].toInt();
       
       SMESH::AxisStruct anAxis;
       
@@ -1082,18 +1082,18 @@ void SMESHGUI_RotationDlg::onDisplaySimulation( bool toDisplayPreview ) {
       double anAngle = (SpinBox_Angle->GetValue())*PI/180;
       
       try {
-       SUIT_OverrideCursor aWaitCursor;
-       bool copy = ActionGroup->checkedId() == COPY_ELEMS_BUTTON;
-       SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
-       if(CheckBoxMesh->isChecked())
-         aMeshEditor->RotateObject(mySelectedObject, anAxis, anAngle, copy);
-       else
-         aMeshEditor->Rotate(anElementsId, anAxis, anAngle, copy);
+        SUIT_OverrideCursor aWaitCursor;
+        bool copy = ActionGroup->checkedId() == COPY_ELEMS_BUTTON;
+        SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
+        if(CheckBoxMesh->isChecked())
+          aMeshEditor->RotateObject(mySelectedObject, anAxis, anAngle, copy);
+        else
+          aMeshEditor->Rotate(anElementsId, anAxis, anAngle, copy);
 
         SMESH::MeshPreviewStruct_var aMeshPreviewStruct = aMeshEditor->GetPreviewData();
-        mySimulation->SetData(aMeshPreviewStruct._retn());     
+        mySimulation->SetData(aMeshPreviewStruct._retn());      
       } catch (...) {
-       hidePreview();
+        hidePreview();
       }
     }
     else {
index 7a8dcb44220c1e76cac0a9b433650a8d49c320f6..b22b1f52af0d6f4c9ea5c0c68e69111398b56a98 100644 (file)
@@ -1076,28 +1076,28 @@ void SMESHGUI_ScaleDlg::onDisplaySimulation( bool toDisplayPreview ) {
       
       anElementsId->length(aListElementsId.count());
       for (int i = 0; i < aListElementsId.count(); i++)
-       anElementsId[i] = aListElementsId[i].toInt();
+        anElementsId[i] = aListElementsId[i].toInt();
       
       SMESH::PointStruct aPoint;
       SMESH::double_array_var aScaleFact = new SMESH::double_array;
       getScale(aPoint, aScaleFact);
       
       try {
-       bool copy = ActionGroup->checkedId() == COPY_ELEMS_BUTTON;
-       SUIT_OverrideCursor aWaitCursor;
-       SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
-       SMESH::SMESH_IDSource_var obj;
-       if ( CheckBoxMesh->isChecked() )
-         obj = mySelectedObject;
-       else
-         obj = aMeshEditor->MakeIDSource(anElementsId, SMESH::ALL);
-       aMeshEditor->Scale(obj, aPoint, aScaleFact, copy);
+        bool copy = ActionGroup->checkedId() == COPY_ELEMS_BUTTON;
+        SUIT_OverrideCursor aWaitCursor;
+        SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
+        SMESH::SMESH_IDSource_var obj;
+        if ( CheckBoxMesh->isChecked() )
+          obj = mySelectedObject;
+        else
+          obj = aMeshEditor->MakeIDSource(anElementsId, SMESH::ALL);
+        aMeshEditor->Scale(obj, aPoint, aScaleFact, copy);
 
         SMESH::MeshPreviewStruct_var aMeshPreviewStruct = aMeshEditor->GetPreviewData();
-        mySimulation->SetData(aMeshPreviewStruct._retn());     
+        mySimulation->SetData(aMeshPreviewStruct._retn());      
 
       } catch (...) {
-       hidePreview();
+        hidePreview();
       }
     } else {
       hidePreview();
index be405ffa85d90f8ed1438085f7d4c2a17b77aa5e..359becacd27929dd8d24f802320c25d89aae99d3 100644 (file)
@@ -71,7 +71,7 @@ private:
 
   bool                   isValid();
   void                   getScale( SMESH::PointStruct& thePoint,
-                                  SMESH::double_array_var& theScaleFact);
+                                   SMESH::double_array_var& theScaleFact);
 
   SMESHGUI_IdValidator*  myIdValidator;
   LightApp_SelectionMgr* mySelectionMgr;          /* User shape selection */
index 80dd7ea973f4c9defa9fad0f876fd6a7041a7453..fe47256362666db40a5b80a6b52500bd6eb4ffac 100644 (file)
@@ -499,9 +499,9 @@ void SMESHGUI_SmoothingDlg::onTextChange (const QString& theNewText)
     for (int i = 0; i < aListId.count(); i++) {
       int id = aListId[ i ].toInt();
       if ( id > 0 ) {
-       bool validId = aMesh ? ( aMesh->FindElement( id ) != 0 ) : ( myMesh->GetElementType( id, true ) != SMESH::EDGE );
+        bool validId = aMesh ? ( aMesh->FindElement( id ) != 0 ) : ( myMesh->GetElementType( id, true ) != SMESH::EDGE );
         if ( validId ) 
-         newIndices.Add( id );
+          newIndices.Add( id );
       }
       myNbOkElements = newIndices.Extent();
       mySelector->AddOrRemoveIndex(myIO, newIndices, false);
@@ -514,9 +514,9 @@ void SMESHGUI_SmoothingDlg::onTextChange (const QString& theNewText)
     for (int i = 0; i < aListId.count(); i++) {
       int id = aListId[ i ].toInt();
       if ( id > 0 ) {
-       bool validId = aMesh ? ( aMesh->FindNode( id ) != 0 ) : ( myMesh->GetElementType( id, false ) != SMESH::EDGE );
+        bool validId = aMesh ? ( aMesh->FindNode( id ) != 0 ) : ( myMesh->GetElementType( id, false ) != SMESH::EDGE );
         if ( validId ) 
-         newIndices.Add( id );
+          newIndices.Add( id );
       }
       myNbOkNodes = newIndices.Extent();
       mySelector->AddOrRemoveIndex(myIO, newIndices, false);
@@ -599,7 +599,7 @@ void SMESHGUI_SmoothingDlg::SelectionIntoArgument()
       
       QStringList elements;
       for ( int i = 0; i < myNbOkElements; ++i )
-       elements << QString::number( aMapIndex( i+1 ) );
+        elements << QString::number( aMapIndex( i+1 ) );
       aString = elements.join(" ");
     }
   } else if (myEditCurrentArgument == LineEditNodes && !myMesh->_is_nil() && myIO == IO ) {
index 9d73fc6c489aabaca0a9e847071bca062c30cd43..986416d1479064e9369b44ad1a74d4c89e08d21a 100644 (file)
@@ -1146,7 +1146,7 @@ void SMESHGUI_SymmetryDlg::onDisplaySimulation( bool toDisplayPreview ) {
 
       anElementsId->length(aListElementsId.count());
       for (int i = 0; i < aListElementsId.count(); i++)
-       anElementsId[i] = aListElementsId[i].toInt();
+        anElementsId[i] = aListElementsId[i].toInt();
 
       SMESH::AxisStruct aMirror;
       SMESH::SMESH_MeshEditor::MirrorType aMirrorType;
@@ -1154,18 +1154,18 @@ void SMESHGUI_SymmetryDlg::onDisplaySimulation( bool toDisplayPreview ) {
       getMirror(aMirror,aMirrorType);
 
       try {
-       bool copy = ActionGroup->checkedId() == COPY_ELEMS_BUTTON;
-       SUIT_OverrideCursor aWaitCursor;
-       SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
+        bool copy = ActionGroup->checkedId() == COPY_ELEMS_BUTTON;
+        SUIT_OverrideCursor aWaitCursor;
+        SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
         if(CheckBoxMesh->isChecked())
           aMeshEditor->MirrorObject(mySelectedObject, aMirror, aMirrorType, copy );
         else
           aMeshEditor->Mirror(anElementsId, aMirror, aMirrorType, copy );
-       
+        
         SMESH::MeshPreviewStruct_var aMeshPreviewStruct = aMeshEditor->GetPreviewData();
         mySimulation->SetData(aMeshPreviewStruct._retn());
       } catch (...) {
-       hidePreview();
+        hidePreview();
       }
     } else {
       hidePreview();
index 4ceb446a95194342f42e034b4a1961f57b139f51..5ec665216fa77d72d67e38cbe97dcf641e5abd7f 100644 (file)
@@ -1118,32 +1118,32 @@ void SMESHGUI_TranslationDlg::onDisplaySimulation( bool toDisplayPreview ) {
 
       anElementsId->length(aListElementsId.count());
       for (int i = 0; i < aListElementsId.count(); i++)
-       anElementsId[i] = aListElementsId[i].toInt();
+        anElementsId[i] = aListElementsId[i].toInt();
 
       SMESH::DirStruct aVector;
       if (GetConstructorId() == 0) {
-       aVector.PS.x = SpinBox2_1->GetValue() - SpinBox1_1->GetValue();
-       aVector.PS.y = SpinBox2_2->GetValue() - SpinBox1_2->GetValue();
-       aVector.PS.z = SpinBox2_3->GetValue() - SpinBox1_3->GetValue();
+        aVector.PS.x = SpinBox2_1->GetValue() - SpinBox1_1->GetValue();
+        aVector.PS.y = SpinBox2_2->GetValue() - SpinBox1_2->GetValue();
+        aVector.PS.z = SpinBox2_3->GetValue() - SpinBox1_3->GetValue();
       } else if (GetConstructorId() == 1) {
-       aVector.PS.x = SpinBox1_1->GetValue();
-       aVector.PS.y = SpinBox1_2->GetValue();
-       aVector.PS.z = SpinBox1_3->GetValue();
+        aVector.PS.x = SpinBox1_1->GetValue();
+        aVector.PS.y = SpinBox1_2->GetValue();
+        aVector.PS.z = SpinBox1_3->GetValue();
       }
 
       try {
-       bool copy = ActionGroup->checkedId() == COPY_ELEMS_BUTTON;
-       SUIT_OverrideCursor aWaitCursor;
-       SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
-       if(CheckBoxMesh->isChecked())
-         aMeshEditor->TranslateObject(mySelectedObject, aVector, copy);
-       else
-         aMeshEditor->Translate(anElementsId, aVector, copy);
-       
+        bool copy = ActionGroup->checkedId() == COPY_ELEMS_BUTTON;
+        SUIT_OverrideCursor aWaitCursor;
+        SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditPreviewer();
+        if(CheckBoxMesh->isChecked())
+          aMeshEditor->TranslateObject(mySelectedObject, aVector, copy);
+        else
+          aMeshEditor->Translate(anElementsId, aVector, copy);
+        
         SMESH::MeshPreviewStruct_var aMeshPreviewStruct = aMeshEditor->GetPreviewData();
-        mySimulation->SetData(aMeshPreviewStruct._retn());     
+        mySimulation->SetData(aMeshPreviewStruct._retn());      
       } catch (...) {
-       
+        
       }
     }
     else {
index 76a3019cf2bea0c08c4523a14504e674b5f4bcad..40a80cc238a3264c7fb89126e99a1f5352e99eee 100644 (file)
@@ -118,7 +118,7 @@ namespace SMESH
     } else {
       SUIT_ViewManager* aVM = app->getViewManager(SVTK_Viewer::Type(), true);
       if(aVM)
-       aList.append(aVM);
+        aList.append(aVM);
     }    
     bool actorRemoved = false;
     ViewManagerList::ConstIterator it = aList.begin();
@@ -127,13 +127,13 @@ namespace SMESH
       aViewManager = *it;
       QVector<SUIT_ViewWindow*> views = aViewManager->getViews();
       for ( int iV = 0; iV < views.count(); ++iV ) {
-       if ( SMESH_Actor* actor = FindActorByEntry( views[iV], theEntry)) {
-         if(SVTK_ViewWindow* vtkWnd = GetVtkViewWindow(views[iV])) {
-           vtkWnd->RemoveActor(actor);
-           actorRemoved = true;
-         }
-         actor->Delete();
-       }
+        if ( SMESH_Actor* actor = FindActorByEntry( views[iV], theEntry)) {
+          if(SVTK_ViewWindow* vtkWnd = GetVtkViewWindow(views[iV])) {
+            vtkWnd->RemoveActor(actor);
+            actorRemoved = true;
+          }
+          actor->Delete();
+        }
       }
     }
     
@@ -142,9 +142,9 @@ namespace SMESH
       TVisualObjCont::key_type aKey(aStudyId,theEntry);
       TVisualObjCont::iterator anIter = VISUAL_OBJ_CONT.find(aKey);
       if(anIter != VISUAL_OBJ_CONT.end()) {
-       // for unknown reason, object destructor is not called, so clear object manually
-       anIter->second->GetUnstructuredGrid()->SetCells(0,0,0,0,0);
-       anIter->second->GetUnstructuredGrid()->SetPoints(0);
+        // for unknown reason, object destructor is not called, so clear object manually
+        anIter->second->GetUnstructuredGrid()->SetCells(0,0,0,0,0);
+        anIter->second->GetUnstructuredGrid()->SetPoints(0);
       }
       VISUAL_OBJ_CONT.erase(aKey);
     }
@@ -732,12 +732,12 @@ namespace SMESH
                 MESSAGE("--- display " << anActor);
             anActor->SetVisibility(true);
 
-           if(anActor->hasIO()){
-             Handle(SALOME_InteractiveObject) anIO = anActor->getIO();
-             if(anIO->hasEntry()){
-               aStudy->setVisibilityState(anIO->getEntry(), Qtx::ShownState);
-             }
-           }
+            if(anActor->hasIO()){
+              Handle(SALOME_InteractiveObject) anIO = anActor->getIO();
+              if(anIO->hasEntry()){
+                aStudy->setVisibilityState(anIO->getEntry(), Qtx::ShownState);
+              }
+            }
           }
         }
         break;
@@ -751,7 +751,7 @@ namespace SMESH
             anActor->SetVisibility(false);
           }
         }
-       aStudy->setVisibilityStateForAll(Qtx::HiddenState);
+        aStudy->setVisibilityStateForAll(Qtx::HiddenState);
       }
       default: {
         if (SMESH_Actor *anActor = FindActorByEntry(theWnd,theEntry)) {
@@ -759,15 +759,15 @@ namespace SMESH
             case eDisplay:
             case eDisplayOnly:
                 //MESSAGE("--- display " << anActor);
-             anActor->Update();
+              anActor->Update();
               anActor->SetVisibility(true);
               if (theAction == eDisplayOnly) aRenderer->ResetCameraClippingRange();
-             aStudy->setVisibilityState(theEntry, Qtx::ShownState);
+              aStudy->setVisibilityState(theEntry, Qtx::ShownState);
               break;
             case eErase:
                 //MESSAGE("--- erase " << anActor);
               anActor->SetVisibility(false);
-             aStudy->setVisibilityState(theEntry, Qtx::HiddenState);
+              aStudy->setVisibilityState(theEntry, Qtx::HiddenState);
               break;
           }
         } else {
@@ -786,7 +786,7 @@ namespace SMESH
                 if ((anActor = CreateActor(aDocument,theEntry,true))) {
                   bool needFitAll = noSmeshActors(theWnd); // fit for the first object only
                   DisplayActor(theWnd,anActor);
-                 aStudy->setVisibilityState(theEntry, Qtx::ShownState);
+                  aStudy->setVisibilityState(theEntry, Qtx::ShownState);
                   // FitAll(); - PAL16770(Display of a group performs an automatic fit all)
                   if (needFitAll) FitAll();
                 } else {