#include <DriverMED_R_SMESHDS_Mesh.h>
Public Types | |
enum | Status { DRS_OK, DRS_EMPTY, DRS_WARN_RENUMBER, DRS_WARN_SKIP_ELEM, DRS_WARN_DESCENDING, DRS_FAIL } |
Public Member Functions | |
virtual Status | Perform () |
Reads a med file. More... | |
std::list< TNameAndType > | GetGroupNamesAndTypes () |
void | GetGroup (SMESHDS_Group *theGroup) |
void | CreateAllSubMeshes () |
void | GetSubMesh (SMESHDS_SubMesh *theSubMesh, const int theId) |
std::list< std::string > | GetMeshNames (Status &theStatus) |
void | SetMeshName (std::string theMeshName) |
Stores a mesh name. More... | |
void | SetMesh (SMESHDS_Mesh *theMesh) |
void | SetMeshId (int theMeshId) |
virtual void | SetFile (const std::string &theFileName) |
virtual void | SetMeshName (const std::string &theMeshName) |
virtual std::string | GetMeshName () const |
virtual void | SetOption (const std::string &optionName, const std::string &optionValue) |
virtual SMESH_ComputeErrorPtr | GetError () |
Return a structure containing description of errors. More... | |
Protected Member Functions | |
Status | addMessage (const std::string &msg, const bool isFatal=false) |
Stores an error message. More... | |
Protected Attributes | |
SMESHDS_Mesh * | myMesh |
std::string | myFile |
int | myMeshId |
std::vector< std::string > | myErrorMessages |
Status | myStatus |
Private Attributes | |
std::string | myMeshName |
std::map< int, DriverMED_FamilyPtr > | myFamilies |
|
inherited |
|
protectedinherited |
Stores an error message.
We consider an error fatal if none mesh can be read
References Driver_Mesh::DRS_FAIL, Driver_Mesh::DRS_WARN_SKIP_ELEM, MESSAGE, Driver_Mesh::myErrorMessages, and Driver_Mesh::myStatus.
Referenced by DriverGMF_Write::Perform(), DriverGMF_Read::Perform(), DriverMED_W_Field::Perform(), and DriverGMF_Read::storeBadNodeIds().
void DriverMED_R_SMESHDS_Mesh::CreateAllSubMeshes | ( | ) |
References SMDSAbs_Node.
Referenced by SMESH_PreMeshInfo::readSubMeshes().
|
virtualinherited |
Return a structure containing description of errors.
References COMPERR_OK, Driver_Mesh::DRS_OK, Driver_Mesh::myErrorMessages, Driver_Mesh::myStatus, and SMESH_ComputeError::New().
Referenced by SMESH_Mesh_i::exportMEDFields(), SMESH_Mesh::GMFToMesh(), and SMESH_Mesh::MEDToMesh().
void DriverMED_R_SMESHDS_Mesh::GetGroup | ( | SMESHDS_Group * | theGroup | ) |
list< TNameAndType > DriverMED_R_SMESHDS_Mesh::GetGroupNamesAndTypes | ( | ) |
Referenced by SMESH_Mesh::MEDToMesh().
|
virtualinherited |
References Driver_Mesh::myMeshName.
Referenced by SMESH_Mesh::CGNSToMesh().
list< string > DriverMED_R_SMESHDS_Mesh::GetMeshNames | ( | Status & | theStatus | ) |
References MED::CrWrapper(), SMESH::DRS_FAIL, SMESH::DRS_OK, and MESSAGE.
Referenced by SMESH_Gen_i::CreateMeshesFromMEDorSAUV().
void DriverMED_R_SMESHDS_Mesh::GetSubMesh | ( | SMESHDS_SubMesh * | theSubMesh, |
const int | theId | ||
) |
References SMESHDS_SubMesh::AddElement(), SMESHDS_SubMesh::AddNode(), and SMDSAbs_Node.
|
virtual |
Reads a med file.
Implements Driver_Mesh.
References SMESHDS_Mesh::AddPolygonalFace(), SMESHDS_Mesh::AddPolygonalFaceWithID(), SMESHDS_Mesh::AddQuadPolygonalFace(), SMESHDS_Mesh::AddQuadPolygonalFaceWithID(), DriverMED::buildMeshGrille(), DriverMED::checkFamilyID(), MED::CrWrapper(), SMESH::DRS_EMPTY, SMESH::DRS_FAIL, SMESH::DRS_OK, SMESH::DRS_WARN_DESCENDING, SMESH::DRS_WARN_RENUMBER, SMESH::DRS_WARN_SKIP_ELEM, MED::eDESC, MED::eFAUX, MED::eHEXA20, MED::eHEXA27, MED::eHEXA8, MED::eNOD, MED::eNOEUD, MED::eOCTA12, MED::ePENTA15, MED::ePENTA6, MED::ePOINT1, MED::ePOLYEDRE, MED::ePOLYGON2, MED::ePOLYGONE, MED::ePYRA13, MED::ePYRA5, MED::eQUAD4, MED::eQUAD8, MED::eQUAD9, MED::eSEG2, MED::eSEG3, MED::eSTRUCT_ELEMENT, MED::eSTRUCTURE, MED::eTETRA10, MED::eTETRA4, MED::eTRIA3, MED::eTRIA6, MED::eTRIA7, MED::eVRAI, DriverMED::FindNode(), MED::GetCoordHelper(), SMDS_MeshElement::GetType(), MESSAGE, NIG_GROUP_PREFIX, MED::TCSlice< TValueType >::size(), SMDSAbs_Ball, and SMDSAbs_Node.
Referenced by SMESH_PreMeshInfo::FullLoadFromFile(), and SMESH_Mesh::MEDToMesh().
|
virtualinherited |
Reimplemented in DriverMED_W_SMESHDS_Mesh.
References Driver_Mesh::myFile.
Referenced by SMESH_Mesh::CGNSToMesh(), SMESH_Gen_i::CreateMeshesFromCGNS(), SMESH_Gen_i::CreateMeshesFromMEDorSAUV(), SMESH_Mesh_i::ExportPartToMED(), SMESH_PreMeshInfo::FullLoadFromFile(), SMESH_Mesh::GMFToMesh(), SMESH_Mesh::MEDToMesh(), DriverMED_W_SMESHDS_Mesh::SetFile(), SMESH_Mesh::STLToMesh(), and SMESH_Mesh::UNVToMesh().
|
inherited |
References Driver_SMESHDS_Mesh::myMesh.
Referenced by SMESH_Mesh::CGNSToMesh(), SMESH_PreMeshInfo::FullLoadFromFile(), SMESH_Mesh::GMFToMesh(), SMESH_Mesh::MEDToMesh(), and DriverMED_W_Field::Set().
|
inherited |
void DriverMED_R_SMESHDS_Mesh::SetMeshName | ( | std::string | theMeshName | ) |
Stores a mesh name.
Referenced by SMESH_Mesh::MEDToMesh().
|
virtualinherited |
References Driver_Mesh::myMeshName.
Referenced by SMESH_Mesh_i::ExportPartToMED().
|
virtualinherited |
|
protectedinherited |
Referenced by Driver_Mesh::addMessage(), and Driver_Mesh::GetError().
|
private |
|
protectedinherited |
Referenced by DriverSTL_R_SMDS_Mesh::Perform(), DriverGMF_Write::Perform(), DriverGMF_Read::Perform(), DriverMED_W_Field::Perform(), DriverMED_W_SMESHDS_Mesh::Perform(), DriverSTL_R_SMDS_Mesh::readAscii(), Driver_Mesh::SetFile(), DriverSTL_W_SMDS_Mesh::writeAscii(), and DriverSTL_W_SMDS_Mesh::writeBinary().
|
protectedinherited |
Referenced by DriverGMF_Write::elementIterator(), DriverMED_W_Field::GetOrderedElems(), DriverGMF_Write::Perform(), DriverGMF_Read::Perform(), DriverMED_W_Field::Perform(), DriverMED_W_SMESHDS_Mesh::Perform(), DriverMED_W_Field::Set(), Driver_SMESHDS_Mesh::SetMesh(), and DriverGMF_Read::storeBadNodeIds().
|
protectedinherited |
Referenced by DriverMED_W_Field::Perform(), DriverMED_W_SMESHDS_Mesh::Perform(), and Driver_Mesh::SetMeshId().
|
private |
|
protectedinherited |
Referenced by Driver_Mesh::addMessage(), Driver_Mesh::GetError(), and DriverGMF_Read::storeBadNodeIds().