Salome HOME
0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
authoreap <eap@opencascade.com>
Fri, 24 Feb 2012 10:58:14 +0000 (10:58 +0000)
committereap <eap@opencascade.com>
Fri, 24 Feb 2012 10:58:14 +0000 (10:58 +0000)
  interface SMESH_Mesh
  {
+    boolean IsLoaded()
+    void Load()

  interface SMESH_IDSource
  {
+    boolean IsMeshInfoCorrect();

idl/SMESH_Mesh.idl

index 59f373909f9e043a3cebaed83d377e7a3b505067..a73f893d7bc71d24b58c39903496cf28238deb6c 100644 (file)
@@ -280,6 +280,12 @@ module SMESH
      * Returns the mesh
      */
     SMESH_Mesh GetMesh();
+
+    /*!
+     * Returns false if GetMeshInfo() returns incorrect information that may
+     * happen if mesh data is not yet fully loaded from the file of study.
+     */
+    boolean IsMeshInfoCorrect();
   };
 
   interface SMESH_Group;
@@ -307,6 +313,18 @@ module SMESH
     GEOM::GEOM_Object GetShapeToMesh()
       raises (SALOME::SALOME_Exception);
 
+    /*!
+     * Return false if the mesh is not yet fully loaded from the study file
+     */
+    boolean IsLoaded()
+      raises (SALOME::SALOME_Exception);
+
+    /*!
+     * Load full mesh data from the study file
+     */
+    void Load()
+      raises (SALOME::SALOME_Exception);
+
     /*!
      * Remove all nodes and elements
      */