27#ifndef __SMESH_PreMeshInfo_HXX__
28#define __SMESH_PreMeshInfo_HXX__
31#include <SALOMEconfig.h>
32#include CORBA_SERVER_HEADER(SMESH_Mesh)
33#include CORBA_SERVER_HEADER(SALOMEDS)
35#include <TopAbs_ShapeEnum.hxx>
36#include <TColStd_MapOfAsciiString.hxx>
59 const std::string& medFile,
60 const std::string& hdfFile,
61 const bool toRemoveFiles);
97 const std::string& medFile,
98 const std::string& hdfFile);
106 HDFgroup* infoHdfGroup,
107 const TColStd_MapOfAsciiString& allHdfNames);
114 const int nbElemsInSubMesh,
115 bool& isKoType)
const;
SMDSAbs_EntityType
Enumeration of entity type used in mesh info array.
Definition: SMDSAbs_ElementType.hxx:79
Definition: DriverMED_R_SMESHDS_Mesh.h:51
Definition: SMDS_MeshInfo.hxx:36
Definition: SMESH_Mesh_i.hxx:57
Class loading and holding information of a mesh object (mesh, group, submesh) not yet loaded from HDF...
Definition: SMESH_PreMeshInfo.hxx:54
bool IsMeshInfoCorrect() const
Returns false if GetMeshInfo() returns incorrect information that may happen if mesh data is not yet ...
Definition: SMESH_PreMeshInfo.cxx:1222
static void RemoveStudyFiles_TMP_METHOD(SALOMEDS::SComponent_ptr smeshComp)
TEMPORARY method to remove study files on closing study; RIGHT WAY: study files are remove automatica...
Definition: SMESH_PreMeshInfo.cxx:1234
int _meshID
Definition: SMESH_PreMeshInfo.hxx:122
SMESH::smIdType_array * GetMeshInfo() const
Method of SMESH_IDSource interface returning nb elements by element type.
Definition: SMESH_PreMeshInfo.cxx:1203
~SMESH_PreMeshInfo()
Release temporary files.
Definition: SMESH_PreMeshInfo.cxx:353
void hdf2meshInfo(const std::string &dataSetName, HDFgroup *infoHdfGroup, const TColStd_MapOfAsciiString &allHdfNames)
Reads meshInfo from a HDF file.
Definition: SMESH_PreMeshInfo.cxx:287
void FullLoadFromFile() const
Reads all data and remove all SMESH_PreMeshInfo fields from objects.
Definition: SMESH_PreMeshInfo.cxx:804
void ForgetOrLoad() const
Calls either FullLoadFromFile() or ForgetAllData() depending on preferences.
Definition: SMESH_PreMeshInfo.cxx:1166
std::string _medFileName
Definition: SMESH_PreMeshInfo.hxx:120
void readSubMeshInfo()
Reads info of sub-meshes from hdf file of old study.
Definition: SMESH_PreMeshInfo.cxx:597
int _elemCounter
Definition: SMESH_PreMeshInfo.hxx:126
static void SaveToFile(SMESH_Mesh_i *mesh, const int meshID, HDFfile *hdfFile)
Saves SMESH_PreMeshInfo to the study file.
Definition: SMESH_PreMeshInfo.cxx:741
bool _isInfoOk
Definition: SMESH_PreMeshInfo.hxx:124
SMESH_PreMeshInfo(SMESH_Mesh_i *mesh, const int meshID, const std::string &medFile, const std::string &hdfFile)
Constructor callable by SMESH_PreMeshInfo only.
Definition: SMESH_PreMeshInfo.cxx:333
void ForgetAllData() const
Remove all SMESH_PreMeshInfo fields from objects w/o data loading.
Definition: SMESH_PreMeshInfo.cxx:1095
SMDSAbs_EntityType getElemType(const TopAbs_ShapeEnum shapeType, const int nbElemsInSubMesh, bool &isKoType) const
Return type of element for sub-mesh on a shape of given type.
Definition: SMESH_PreMeshInfo.cxx:698
SMESH::array_of_ElementType * GetTypes() const
Method of SMESH_IDSource interface.
Definition: SMESH_PreMeshInfo.cxx:1181
SMESH_Mesh_i * _mesh
Definition: SMESH_PreMeshInfo.hxx:123
std::string _hdfFileName
Definition: SMESH_PreMeshInfo.hxx:120
void readGroupInfo()
Reads info of groups from the med file.
Definition: SMESH_PreMeshInfo.cxx:508
bool readMeshInfo()
Reads mesh info of mesh from the med file.
Definition: SMESH_PreMeshInfo.cxx:476
bool _toRemoveFiles
Definition: SMESH_PreMeshInfo.hxx:121
bool readPreInfoFromHDF()
Tries to read all SMESH_PreMeshInfo from a HDF file.
Definition: SMESH_PreMeshInfo.cxx:409
SMESH_PreMeshInfo * newInstance()
Definition: SMESH_PreMeshInfo.hxx:100
void readSubMeshes(DriverMED_R_SMESHDS_Mesh *reader) const
Reads full data of sub-meshes.
Definition: SMESH_PreMeshInfo.cxx:859
static void LoadFromFile(SMESH_Mesh_i *mesh, const int meshID, const std::string &medFile, const std::string &hdfFile, const bool toRemoveFiles)
fills SMESH_PreMeshInfo field of all objects of mesh
Definition: SMESH_PreMeshInfo.cxx:367
sequence< ElementType > array_of_ElementType
Definition: SMESH_Mesh.idl:138
sequence< smIdType > smIdType_array
Definition: SMESH_Mesh.idl:45