- const TopTools_ListOfShape& GetAncestors(const TopoDS_Shape& theSubShape);
- // return list of ancestors of theSubShape in the order
- // that lower dimention shapes come first.
-
- void ExportDAT(const char *file) throw(SALOME_Exception);
- void ExportMED(const char *file, const char* theMeshName = NULL, bool theAutoGroups = true) throw(SALOME_Exception);
- void ExportUNV(const char *file) throw(SALOME_Exception);
- void ExportSTL(const char *file, const bool isascii) throw(SALOME_Exception);
-
- int NbNodes() throw(SALOME_Exception);
-
- int NbEdges() throw(SALOME_Exception);
-
- int NbFaces() throw(SALOME_Exception);
-
- int NbTriangles() throw(SALOME_Exception);
-
- int NbQuadrangles() throw(SALOME_Exception);
-
- int NbVolumes() throw(SALOME_Exception);
+ void SetAutoColor(bool theAutoColor) throw(SALOME_Exception);
+
+ bool GetAutoColor() throw(SALOME_Exception);
+
+ /*!
+ * \brief Set the flag meaning that the mesh has been edited "manually".
+ * It is to set to false after Clear() and to set to true by MeshEditor
+ */
+ void SetIsModified(bool isModified);
+
+ bool GetIsModified() const { return _isModified; }
+
+ /*!
+ * \brief Return true if the mesh has been edited since a total re-compute
+ * and those modifications may prevent successful partial re-compute.
+ * As a side effect reset _isModified flag if mesh is empty
+ */
+ bool HasModificationsToDiscard() const;
+
+ /*!
+ * \brief Return data map of descendant to ancestor shapes
+ */
+ typedef TopTools_IndexedDataMapOfShapeListOfShape TAncestorMap;
+ const TAncestorMap& GetAncestorMap() const { return _mapAncestors; }
+ /*!
+ * \brief Check group names for duplications.
+ * Consider maximum group name length stored in MED file
+ */
+ bool HasDuplicatedGroupNamesMED();
+
+ void ExportMED(const char * theFile,
+ const char* theMeshName = NULL,
+ bool theAutoGroups = true,
+ int theVersion = 0,
+ const SMESHDS_Mesh* theMeshPart = 0,
+ bool theAutoDimension = false)
+ throw(SALOME_Exception);
+
+ void ExportDAT(const char * file,
+ const SMESHDS_Mesh* meshPart = 0) throw(SALOME_Exception);
+ void ExportUNV(const char * file,
+ const SMESHDS_Mesh* meshPart = 0) throw(SALOME_Exception);
+ void ExportSTL(const char * file,
+ const bool isascii,
+ const SMESHDS_Mesh* meshPart = 0) throw(SALOME_Exception);
+ void ExportCGNS(const char * file,
+ const SMESHDS_Mesh* mesh);
+ void ExportGMF(const char * file,
+ const SMESHDS_Mesh* mesh,
+ bool withRequiredGroups = true );
+ void ExportSAUV(const char *file,
+ const char* theMeshName = NULL,
+ bool theAutoGroups = true) throw(SALOME_Exception);
+
+ double GetComputeProgress() const;