]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Remove tabs
authorouv <ouv@opencascade.com>
Tue, 22 Sep 2009 09:01:04 +0000 (09:01 +0000)
committerouv <ouv@opencascade.com>
Tue, 22 Sep 2009 09:01:04 +0000 (09:01 +0000)
src/VISUGUI/VisuGUI_StreamLinesDlg.cxx

index 169f7e12b81bfc7ccfc298dee3a9d42f8c9bf702..c8dd07a66e1a31a32571db81e7033398d71087f2 100644 (file)
@@ -129,28 +129,28 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule)
       VISU::VISUType aType = VISU::Storable::SObject2Type(aSObject);
       switch (aType) {
       case VISU::TTIMESTAMP: {
-       aSObject = aSObject->GetFather();
-       aSObject = aSObject->GetFather();
-       break;
+        aSObject = aSObject->GetFather();
+        aSObject = aSObject->GetFather();
+        break;
       }
       case VISU::TFIELD: {
-       _PTR(SObject) newSObject;
-       if(aSObject->ReferencedObject(newSObject)) aSObject = newSObject;
-       aSObject = aSObject->GetFather();
-       break;
+        _PTR(SObject) newSObject;
+        if(aSObject->ReferencedObject(newSObject)) aSObject = newSObject;
+        aSObject = aSObject->GetFather();
+        break;
       }
       case VISU::TANIMATION: {
-       _PTR(ChildIterator) aTmpIter = aActiveStudy->NewChildIterator(aSObject);
-       for (aTmpIter->InitEx(true); aTmpIter->More(); aTmpIter->Next()) {
-         _PTR(SObject) aTmpChildSObj = aTmpIter->Value();
-         _PTR(SObject) newSObject;
-         if(aTmpChildSObj->ReferencedObject(newSObject)){
-           aSObject = newSObject;
-           aSObject->GetFather();
-           break;
-         }
-       }
-       break;
+        _PTR(ChildIterator) aTmpIter = aActiveStudy->NewChildIterator(aSObject);
+        for (aTmpIter->InitEx(true); aTmpIter->More(); aTmpIter->Next()) {
+          _PTR(SObject) aTmpChildSObj = aTmpIter->Value();
+          _PTR(SObject) newSObject;
+          if(aTmpChildSObj->ReferencedObject(newSObject)){
+            aSObject = newSObject;
+            aSObject->GetFather();
+            break;
+          }
+        }
+        break;
       }}
       
       aSObject = aSObject->GetFather();
@@ -159,7 +159,7 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule)
       mySelectionObj = aSObject;
       CORBA::Object_var anObject = VISU::ClientSObjectToObject(mySelectionObj);
       if (CORBA::is_nil(anObject)) {
-       mySelectionObj = mySelectionObj->GetFather();
+        mySelectionObj = mySelectionObj->GetFather();
       }
     }
   }
@@ -189,23 +189,23 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule)
 
       VISU::VISUType aType = VISU::Storable::SObject2Type(aChildSObj);
       if ((aType == VISU::TFAMILY) || (aType == VISU::TGROUP) || (aType == VISU::TENTITY)) {
-       _PTR(GenericAttribute) aNameAttr;
-       if (aChildSObj->FindAttribute(aNameAttr, "AttributeName")) {
-         _PTR(AttributeName) aName (aNameAttr);
-         VISU::Prs3d_var aPrsObj = VISU::Prs3d::_narrow(aChildObject);
-         switch (aType) {
-         case VISU::TFAMILY:
-           myFamilisLst += QString(aName->Value().c_str());
-           myFamilyList.append(aPrsObj);
-           break;
-         case VISU::TGROUP:
-           myGroupsLst += QString(aName->Value().c_str());
-           myGroupList.append(aPrsObj);
-           break;
-         case VISU::TENTITY:
-           myEntitiesLst += QString(aName->Value().c_str());
-           myEntityList.append(aPrsObj);
-           break;
+        _PTR(GenericAttribute) aNameAttr;
+        if (aChildSObj->FindAttribute(aNameAttr, "AttributeName")) {
+          _PTR(AttributeName) aName (aNameAttr);
+          VISU::Prs3d_var aPrsObj = VISU::Prs3d::_narrow(aChildObject);
+          switch (aType) {
+          case VISU::TFAMILY:
+            myFamilisLst += QString(aName->Value().c_str());
+            myFamilyList.append(aPrsObj);
+            break;
+          case VISU::TGROUP:
+            myGroupsLst += QString(aName->Value().c_str());
+            myGroupList.append(aPrsObj);
+            break;
+          case VISU::TENTITY:
+            myEntitiesLst += QString(aName->Value().c_str());
+            myEntityList.append(aPrsObj);
+            break;
           }
         }
       }
@@ -364,10 +364,10 @@ void VisuGUI_StreamLinesDlg::initFromPrsObject ( VISU::ColoredPrs3d_i* thePrs,
       if (aPrs == NULL) continue; \
       if (aSrcEntry == aPrs->GetEntry().c_str()) { \
         onSourceTypeChange(PRSNUM); \
-       myUseSrcCombo->setCurrentIndex(PRSNUM); \
-       mySrcCombo->setEnabled(true); \
-       mySrcCombo->setCurrentIndex(i); \
-       return; \
+        myUseSrcCombo->setCurrentIndex(PRSNUM); \
+        mySrcCombo->setEnabled(true); \
+        mySrcCombo->setCurrentIndex(i); \
+        return; \
       } \
     }
 
@@ -425,26 +425,26 @@ int VisuGUI_StreamLinesDlg::storeToPrsObject (VISU::ColoredPrs3d_i* thePrs)
       QString aName;
       switch (aSrcSelection) {
       case 1: // Entity
-       aPrs = myEntityList[aSrcItem];
-       aType = VISU::TENTITY;
-       aName = myEntitiesLst[aSrcItem];
-       break;
+        aPrs = myEntityList[aSrcItem];
+        aType = VISU::TENTITY;
+        aName = myEntitiesLst[aSrcItem];
+        break;
       case 2: // Family
-       aPrs = myFamilyList[aSrcItem];
-       aType = VISU::TFAMILY;
-       aName = myFamilisLst[aSrcItem];
-       break;
+        aPrs = myFamilyList[aSrcItem];
+        aType = VISU::TFAMILY;
+        aName = myFamilisLst[aSrcItem];
+        break;
       case 3: // Group
-       aPrs = myGroupList[aSrcItem];
-       aType = VISU::TGROUP;
-       aName = myGroupsLst[aSrcItem];
-       break;
+        aPrs = myGroupList[aSrcItem];
+        aType = VISU::TGROUP;
+        aName = myGroupsLst[aSrcItem];
+        break;
       case 4: // Presentation
-       aPrs = myPrsList[aSrcItem];
-       break;
+        aPrs = myPrsList[aSrcItem];
+        break;
       }
       if (CORBA::is_nil(aPrs) && aSrcSelection != 4) {
-       aPrs = createMesh(aType, aName);
+        aPrs = createMesh(aType, aName);
       }
     }
     anIsOk &= myPrsCopy->SetParams(myIntegStepLen->value(),