]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Finishing improvement IPAL12061: rename element order from Square to Quadratic
authormsv <msv@opencascade.com>
Tue, 11 Apr 2006 07:24:27 +0000 (07:24 +0000)
committermsv <msv@opencascade.com>
Tue, 11 Apr 2006 07:24:27 +0000 (07:24 +0000)
idl/SMESH_Mesh.idl
src/SMESH/SMESH_Mesh.cxx
src/SMESH/SMESH_Mesh.hxx
src/SMESHGUI/SMESHGUI_MeshInfosDlg.cxx
src/SMESHGUI/SMESH_msg_en.po

index 5ebb9115cda9b8c1610e2735002d7a0b0ab6ab2d..10ee91af600a61bd3f746232f260aeb53cd93165 100644 (file)
@@ -118,7 +118,7 @@ module SMESH
   enum ElementOrder {
     ORDER_ANY,          /*! entities of any order */
     ORDER_LINEAR,       /*! entities of 1st order */
-    ORDER_SQUARE        /*! entities of 2nd order */
+    ORDER_QUADRATIC     /*! entities of 2nd order */
   };
 
   /*!
index 340682ea0e0bc607d50b6668a897dba7b4b7a89b..1426f061d433d966ebf04606e5b2e8251a96fc76 100644 (file)
@@ -1000,7 +1000,7 @@ int SMESH_Mesh::NbEdges(ElementOrder order) throw(SALOME_Exception)
   while (it->more()) {
     const SMDS_MeshEdge* cur = it->next();
     if ( order == ORDER_LINEAR && !cur->IsQuadratic() ||
-         order == ORDER_SQUARE && cur->IsQuadratic() )
+         order == ORDER_QUADRATIC && cur->IsQuadratic() )
       Nb++;
   }
   return Nb;
@@ -1022,7 +1022,7 @@ int SMESH_Mesh::NbFaces(ElementOrder order) throw(SALOME_Exception)
   while (it->more()) {
     const SMDS_MeshFace* cur = it->next();
     if ( order == ORDER_LINEAR && !cur->IsQuadratic() ||
-         order == ORDER_SQUARE && cur->IsQuadratic() )
+         order == ORDER_QUADRATIC && cur->IsQuadratic() )
       Nb++;
   }
   return Nb;
@@ -1043,7 +1043,7 @@ int SMESH_Mesh::NbTriangles(ElementOrder order) throw(SALOME_Exception)
     if ( !curFace->IsPoly() && 
         ( order == ORDER_ANY && (nbnod==3 || nbnod==6) ||
            order == ORDER_LINEAR && nbnod==3 ||
-           order == ORDER_SQUARE && nbnod==6 ) )
+           order == ORDER_QUADRATIC && nbnod==6 ) )
       Nb++;
   }
   return Nb;
@@ -1064,7 +1064,7 @@ int SMESH_Mesh::NbQuadrangles(ElementOrder order) throw(SALOME_Exception)
     if ( !curFace->IsPoly() && 
         ( order == ORDER_ANY && (nbnod==4 || nbnod==8) ||
            order == ORDER_LINEAR && nbnod==4 ||
-           order == ORDER_SQUARE && nbnod==8 ) )
+           order == ORDER_QUADRATIC && nbnod==8 ) )
       Nb++;
   }
   return Nb;
@@ -1099,7 +1099,7 @@ int SMESH_Mesh::NbVolumes(ElementOrder order) throw(SALOME_Exception)
   while (it->more()) {
     const SMDS_MeshVolume* cur = it->next();
     if ( order == ORDER_LINEAR && !cur->IsQuadratic() ||
-         order == ORDER_SQUARE && cur->IsQuadratic() )
+         order == ORDER_QUADRATIC && cur->IsQuadratic() )
       Nb++;
   }
   return Nb;
@@ -1116,7 +1116,7 @@ int SMESH_Mesh::NbTetras(ElementOrder order) throw(SALOME_Exception)
     if ( !curVolume->IsPoly() && 
         ( order == ORDER_ANY && (nbnod==4 || nbnod==10) ||
            order == ORDER_LINEAR && nbnod==4 ||
-           order == ORDER_SQUARE && nbnod==10 ) )
+           order == ORDER_QUADRATIC && nbnod==10 ) )
       Nb++;
   }
   return Nb;
@@ -1133,7 +1133,7 @@ int SMESH_Mesh::NbHexas(ElementOrder order) throw(SALOME_Exception)
     if ( !curVolume->IsPoly() && 
         ( order == ORDER_ANY && (nbnod==8 || nbnod==20) ||
            order == ORDER_LINEAR && nbnod==8 ||
-           order == ORDER_SQUARE && nbnod==20 ) )
+           order == ORDER_QUADRATIC && nbnod==20 ) )
       Nb++;
   }
   return Nb;
@@ -1150,7 +1150,7 @@ int SMESH_Mesh::NbPyramids(ElementOrder order) throw(SALOME_Exception)
     if ( !curVolume->IsPoly() && 
         ( order == ORDER_ANY && (nbnod==5 || nbnod==13) ||
            order == ORDER_LINEAR && nbnod==5 ||
-           order == ORDER_SQUARE && nbnod==13 ) )
+           order == ORDER_QUADRATIC && nbnod==13 ) )
       Nb++;
   }
   return Nb;
@@ -1167,7 +1167,7 @@ int SMESH_Mesh::NbPrisms(ElementOrder order) throw(SALOME_Exception)
     if ( !curVolume->IsPoly() && 
         ( order == ORDER_ANY && (nbnod==6 || nbnod==15) ||
            order == ORDER_LINEAR && nbnod==6 ||
-           order == ORDER_SQUARE && nbnod==15 ) )
+           order == ORDER_QUADRATIC && nbnod==15 ) )
       Nb++;
   }
   return Nb;
index a9d570adc92707a9b1f5690ef84ea24b2ed00708..c377ed25b2f5dff22c43454427dc807db9ead4f1 100644 (file)
@@ -180,7 +180,7 @@ public:
   enum ElementOrder {
     ORDER_ANY,          /*! entities of any order */
     ORDER_LINEAR,       /*! entities of 1st order */
-    ORDER_SQUARE        /*! entities of 2nd order */
+    ORDER_QUADRATIC     /*! entities of 2nd order */
   };
 
   int NbEdges(ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
index cc9d572ad0f888a087b4ec2f59002ba20a0ac74f..a5c5dc3a94d48d04851e41d94a632854332da79b 100644 (file)
@@ -486,32 +486,32 @@ void SMESHGUI_MeshInfosDlg::DumpMeshInfos()
          myMeshNbNodes->setNum((int)aMesh->NbNodes());
          myMeshNbEdges->setNum((int)aMesh->NbEdges());
          myMeshNbEdges1->setNum((int)aMesh->NbEdgesOfOrder(SMESH::ORDER_LINEAR));
-         myMeshNbEdges2->setNum((int)aMesh->NbEdgesOfOrder(SMESH::ORDER_SQUARE));
+         myMeshNbEdges2->setNum((int)aMesh->NbEdgesOfOrder(SMESH::ORDER_QUADRATIC));
          myMeshNbFaces->setNum((int)aMesh->NbFaces());
          myMeshNbFaces1->setNum((int)aMesh->NbFacesOfOrder(SMESH::ORDER_LINEAR));
-         myMeshNbFaces2->setNum((int)aMesh->NbFacesOfOrder(SMESH::ORDER_SQUARE));
+         myMeshNbFaces2->setNum((int)aMesh->NbFacesOfOrder(SMESH::ORDER_QUADRATIC));
          myMeshNbTriangles->setNum((int)aMesh->NbTriangles());
          myMeshNbTriangles1->setNum((int)aMesh->NbTrianglesOfOrder(SMESH::ORDER_LINEAR));
-         myMeshNbTriangles2->setNum((int)aMesh->NbTrianglesOfOrder(SMESH::ORDER_SQUARE));
+         myMeshNbTriangles2->setNum((int)aMesh->NbTrianglesOfOrder(SMESH::ORDER_QUADRATIC));
          myMeshNbQuadrangles->setNum((int)aMesh->NbQuadrangles());
          myMeshNbQuadrangles1->setNum((int)aMesh->NbQuadranglesOfOrder(SMESH::ORDER_LINEAR));
-         myMeshNbQuadrangles2->setNum((int)aMesh->NbQuadranglesOfOrder(SMESH::ORDER_SQUARE));
+         myMeshNbQuadrangles2->setNum((int)aMesh->NbQuadranglesOfOrder(SMESH::ORDER_QUADRATIC));
          myMeshNbPolygones->setNum( (int)aMesh->NbPolygons() );
          myMeshNbVolumes->setNum((int)aMesh->NbVolumes());
          myMeshNbVolumes1->setNum((int)aMesh->NbVolumesOfOrder(SMESH::ORDER_LINEAR));
-         myMeshNbVolumes2->setNum((int)aMesh->NbVolumesOfOrder(SMESH::ORDER_SQUARE));
+         myMeshNbVolumes2->setNum((int)aMesh->NbVolumesOfOrder(SMESH::ORDER_QUADRATIC));
          myMeshNbTetra->setNum((int)aMesh->NbTetras());
          myMeshNbTetra1->setNum((int)aMesh->NbTetrasOfOrder(SMESH::ORDER_LINEAR));
-         myMeshNbTetra2->setNum((int)aMesh->NbTetrasOfOrder(SMESH::ORDER_SQUARE));
+         myMeshNbTetra2->setNum((int)aMesh->NbTetrasOfOrder(SMESH::ORDER_QUADRATIC));
          myMeshNbHexa->setNum((int)aMesh->NbHexas());
          myMeshNbHexa1->setNum((int)aMesh->NbHexasOfOrder(SMESH::ORDER_LINEAR));
-         myMeshNbHexa2->setNum((int)aMesh->NbHexasOfOrder(SMESH::ORDER_SQUARE));
+         myMeshNbHexa2->setNum((int)aMesh->NbHexasOfOrder(SMESH::ORDER_QUADRATIC));
          myMeshNbPrism->setNum((int)aMesh->NbPrisms());
          myMeshNbPrism1->setNum((int)aMesh->NbPrismsOfOrder(SMESH::ORDER_LINEAR));
-         myMeshNbPrism2->setNum((int)aMesh->NbPrismsOfOrder(SMESH::ORDER_SQUARE));
+         myMeshNbPrism2->setNum((int)aMesh->NbPrismsOfOrder(SMESH::ORDER_QUADRATIC));
          myMeshNbPyra->setNum((int)aMesh->NbPyramids());
          myMeshNbPyra1->setNum((int)aMesh->NbPyramidsOfOrder(SMESH::ORDER_LINEAR));
-         myMeshNbPyra2->setNum((int)aMesh->NbPyramidsOfOrder(SMESH::ORDER_SQUARE));
+         myMeshNbPyra2->setNum((int)aMesh->NbPyramidsOfOrder(SMESH::ORDER_QUADRATIC));
          myMeshNbPolyhedrones->setNum( (int)aMesh->NbPolyhedrons() );
          return;
        }
index 7e038d20d6d24e12cf7d837afc73d2050e7d355e..ade91216a540935c95c0c927c495703982cefd7a 100644 (file)
@@ -772,7 +772,7 @@ msgid "SMESH_MESHINFO_ORDER1"
 msgstr "Linear"
 
 msgid "SMESH_MESHINFO_ORDER2"
-msgstr "Square"
+msgstr "Quadratic"
 
 #Elements :
 msgid "SMESH_MESHINFO_ELEMENTS"