#include <DriverMED_R_SMESHDS_Mesh.h>
|
| static std::string | fixUTF8 (const std::string &s) |
| | Assure a string is UTF-8 valid by replacing invalid chars. More...
|
| |
◆ Status
| Enumerator |
|---|
| DRS_OK | |
| DRS_EMPTY | |
| DRS_WARN_RENUMBER | |
| DRS_WARN_SKIP_ELEM | |
| DRS_WARN_DESCENDING | |
| DRS_FAIL | |
| DRS_TOO_LARGE_MESH | |
◆ addMessage()
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 DriverCGNS_Read::GetNbMeshes(), DriverCGNS_Read::open(), DriverCGNS_Read::Perform(), DriverCGNS_Write::Perform(), DriverStructuredCGNS_Write::Perform(), DriverGMF_Read::Perform(), DriverGMF_Write::Perform(), Perform(), DriverMED_W_Field::Perform(), DriverMED_W_Field::PerformInternal(), and DriverGMF_Read::storeBadNodeIds().
◆ CreateAllSubMeshes()
| void DriverMED_R_SMESHDS_Mesh::CreateAllSubMeshes |
( |
| ) |
|
◆ fixUTF8()
| std::string Driver_Mesh::fixUTF8 |
( |
const std::string & |
s | ) |
|
|
staticprotectedinherited |
Assure a string is UTF-8 valid by replacing invalid chars.
Referenced by Perform().
◆ GetError()
◆ GetGroup()
| void DriverMED_R_SMESHDS_Mesh::GetGroup |
( |
SMESHDS_Group * |
theGroup | ) |
|
References SMDS_MeshGroup::Add(), SMESHDS_GroupBase::GetStoreName(), SMESHDS_GroupBase::GetType(), SMDS_MeshElement::GetType(), MESSAGE, myFamilies, myGroups2FamiliesMap, SMDS_MeshGroup::Reserve(), SMESHDS_GroupBase::SetColorGroup(), and SMESHDS_Group::SMDSGroup().
Referenced by SMESH_PreMeshInfo::FullLoadFromFile(), and SMESH_Mesh::MEDToMesh().
◆ GetGroupNamesAndTypes()
| list< TNameAndType > DriverMED_R_SMESHDS_Mesh::GetGroupNamesAndTypes |
( |
| ) |
|
◆ GetMeshName()
| std::string Driver_Mesh::GetMeshName |
( |
| ) |
const |
|
virtualinherited |
◆ GetMeshNames()
| list< string > DriverMED_R_SMESHDS_Mesh::GetMeshNames |
( |
Status & |
theStatus | ) |
|
◆ GetSubMesh()
| void DriverMED_R_SMESHDS_Mesh::GetSubMesh |
( |
SMESHDS_SubMesh * |
theSubMesh, |
|
|
const int |
theId |
|
) |
| |
◆ IsMeshTooLarge()
template<typename IDTYPE >
◆ Perform()
Reads a med file.
Implements Driver_Mesh.
References SMESHDS_Mesh::Add0DElement(), SMESHDS_Mesh::Add0DElementWithID(), SMESHDS_Mesh::AddBall(), SMESHDS_Mesh::AddBallWithID(), SMESHDS_Mesh::AddEdge(), SMESHDS_Mesh::AddEdgeWithID(), SMESHDS_Mesh::AddFace(), SMESHDS_Mesh::AddFaceWithID(), Driver_Mesh::addMessage(), SMESHDS_Mesh::AddNodeWithID(), SMESHDS_Mesh::AddPolygonalFace(), SMESHDS_Mesh::AddPolygonalFaceWithID(), SMESHDS_Mesh::AddPolyhedralVolume(), SMESHDS_Mesh::AddPolyhedralVolumeWithID(), SMESHDS_Mesh::AddQuadPolygonalFace(), SMESHDS_Mesh::AddQuadPolygonalFaceWithID(), SMESHDS_Mesh::AddVolume(), SMESHDS_Mesh::AddVolumeWithID(), SMDS_UnstructuredGrid::AllocateDiameters(), DriverMED::buildMeshGrille(), DriverMED::checkFamilyID(), MED::CrWrapperR(), Driver_Mesh::DRS_EMPTY, Driver_Mesh::DRS_FAIL, Driver_Mesh::DRS_OK, Driver_Mesh::DRS_WARN_DESCENDING, Driver_Mesh::DRS_WARN_RENUMBER, Driver_Mesh::DRS_WARN_SKIP_ELEM, MED::eDESC, MED::eFAUX, MED::eHEXA20, MED::eHEXA27, MED::eHEXA8, MED::eNOD, MED::eNOEUD, MED::eOCTA12, MED::ePENTA15, MED::ePENTA18, 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(), SMDS_Mesh::FindNode(), Driver_Mesh::fixUTF8(), MED::GetCoordHelper(), SMDS_Mesh::GetGrid(), SMDS_MeshElement::GetType(), SMDS_Mesh::MaxElementID(), MESSAGE, myFamilies, Driver_Mesh::myFile, Driver_SMESHDS_Mesh::myMesh, Driver_Mesh::myMeshId, myMeshName, NIG_GROUP_PREFIX, MED::TCSlice< TValueType >::size(), SMDSAbs_Ball, and SMDSAbs_Node.
Referenced by SMESH_PreMeshInfo::FullLoadFromFile(), and SMESH_Mesh::MEDToMesh().
◆ SetFile()
| void Driver_Mesh::SetFile |
( |
const std::string & |
theFileName | ) |
|
|
virtualinherited |
References Driver_Mesh::myFile.
Referenced by SMESH_Mesh::CGNSToMesh(), SMESH_Gen_i::CreateMeshesFromCGNS(), SMESH_Gen_i::CreateMeshesFromMED(), SMESH_Gen_i::CreateMeshesFromMESHIO(), SMESH_Mesh::ExportCGNS(), SMESH_Mesh::ExportDAT(), MEDFileSpeCls::exportField(), SMESH_Mesh::ExportGMF(), SMESH_Mesh::ExportSTL(), SMESH_Mesh::ExportStructuredCGNS(), SMESH_Mesh::ExportUNV(), SMESH_PreMeshInfo::FullLoadFromFile(), MG_ADAPT::MgAdapt::getCommandToRun(), GetMGLicenseKeyImpl(), SMESH_Mesh::GMFToMesh(), SMESH_Mesh::MEDToMesh(), SMESH_Gen_i::ReloadMeshesFromCGNS(), SMESH_Gen_i::ReloadMeshesFromMED(), SMESH_Gen_i::ReloadMeshesFromMESHIO(), DriverMED_W_SMESHDS_Mesh::SetFile(), SMESH_Mesh::STLToMesh(), and SMESH_Mesh::UNVToMesh().
◆ SetMesh()
◆ SetMeshId()
| void Driver_Mesh::SetMeshId |
( |
int |
theMeshId | ) |
|
|
inherited |
References Driver_Mesh::myMeshId.
Referenced by SMESH_Mesh::CGNSToMesh(), SMESH_Gen_i::CreateMeshesFromMED(), SMESH_Gen_i::CreateMeshesFromMESHIO(), SMESH_Mesh::ExportDAT(), SMESH_Mesh::exportMEDCommmon(), SMESH_Mesh::ExportSTL(), SMESH_Mesh::ExportUNV(), SMESH_PreMeshInfo::FullLoadFromFile(), SMESH_Mesh::MEDToMesh(), SMESH_Gen_i::ReloadMeshesFromMED(), SMESH_Gen_i::ReloadMeshesFromMESHIO(), SMESH_Gen_i::Save(), SMESH_Mesh::STLToMesh(), and SMESH_Mesh::UNVToMesh().
◆ SetMeshName() [1/2]
| void Driver_Mesh::SetMeshName |
( |
const std::string & |
theMeshName | ) |
|
|
virtualinherited |
◆ SetMeshName() [2/2]
| void DriverMED_R_SMESHDS_Mesh::SetMeshName |
( |
std::string |
theMeshName | ) |
|
◆ SetOption()
| virtual void Driver_Mesh::SetOption |
( |
const std::string & |
, |
|
|
const std::string & |
|
|
) |
| |
|
virtualinherited |
◆ myErrorMessages
| std::vector< std::string > Driver_Mesh::myErrorMessages |
|
protectedinherited |
◆ myFamilies
◆ myFile
| std::string Driver_Mesh::myFile |
|
protectedinherited |
Referenced by DriverGMF_Read::GetMeshInfo(), GetMeshNames(), DriverCGNS_Read::open(), DriverCGNS_Write::Perform(), DriverStructuredCGNS_Write::Perform(), DriverDAT_R_SMDS_Mesh::Perform(), DriverGMF_Read::Perform(), DriverGMF_Write::Perform(), Perform(), DriverSTL_R_SMDS_Mesh::Perform(), DriverUNV_R_SMDS_Mesh::Perform(), DriverDAT_W_SMDS_Mesh::Perform(), DriverMED_W_Field::Perform(), DriverMED_W_Field_Mem::Perform(), DriverMED_W_SMESHDS_Mesh::Perform(), DriverMED_W_SMESHDS_Mesh_Mem::Perform(), DriverUNV_W_SMDS_Mesh::Perform(), DriverSTL_R_SMDS_Mesh::readAscii(), Driver_Mesh::SetFile(), DriverSTL_W_SMDS_Mesh::writeAscii(), and DriverSTL_W_SMDS_Mesh::writeBinary().
◆ myGroups2FamiliesMap
◆ myMesh
Referenced by DriverStructuredCGNS_Write::CheckForGroupNameOnEdgeInterfaces(), DriverStructuredCGNS_Write::CheckForGroupNameOnFaceInterfaces(), CreateAllSubMeshes(), DriverGMF_Write::elementIterator(), DriverStructuredCGNS_Write::GetGroupName(), DriverStructuredCGNS_Write::GetGroupNamesMap(), DriverMED_W_Field::GetOrderedElems(), DriverCGNS_Read::Perform(), DriverCGNS_Write::Perform(), DriverStructuredCGNS_Write::Perform(), DriverGMF_Read::Perform(), DriverGMF_Write::Perform(), Perform(), DriverMED_W_SMESHDS_Mesh::PerformInternal(), DriverMED_W_Field::PerformInternal(), DriverMED_W_Field::Set(), Driver_SMESHDS_Mesh::SetMesh(), and DriverGMF_Read::storeBadNodeIds().
◆ myMeshId
| int Driver_Mesh::myMeshId |
|
protectedinherited |
◆ myMeshName
| std::string DriverMED_R_SMESHDS_Mesh::myMeshName |
|
private |
◆ myStatus