Driver reading a mesh from the GMF file. More...
#include <DriverGMF_Read.hxx>
Public Types | |
enum | Status { DRS_OK, DRS_EMPTY, DRS_WARN_RENUMBER, DRS_WARN_SKIP_ELEM, DRS_WARN_DESCENDING, DRS_FAIL } |
Public Member Functions | |
DriverGMF_Read () | |
~DriverGMF_Read () | |
void | SetMakeRequiredGroups (bool theMakeRequiredGroups) |
virtual Status | Perform () |
Read a GMF file. 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 |
std::string | myMeshName |
int | myMeshId |
std::vector< std::string > | myErrorMessages |
Status | myStatus |
Private Member Functions | |
Status | storeBadNodeIds (const char *gmfKwd, int elemNb, int nb,...) |
Store a message about invalid IDs of nodes. More... | |
Private Attributes | |
bool | _makeRequiredGroups |
Driver reading a mesh from the GMF file.
The mesh to read is selected by an index (counted form 0) set via SetMeshId()
|
inherited |
DriverGMF_Read::DriverGMF_Read | ( | ) |
DriverGMF_Read::~DriverGMF_Read | ( | ) |
|
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(), Perform(), DriverMED_W_Field::Perform(), and storeBadNodeIds().
|
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().
|
virtualinherited |
References Driver_Mesh::myMeshName.
Referenced by SMESH_Mesh::CGNSToMesh().
|
virtual |
Read a GMF file.
Implements Driver_Mesh.
References _makeRequiredGroups, SMESHDS_Group::Add(), SMESHDS_Mesh::AddEdgeWithID(), SMESHDS_Mesh::AddFaceWithID(), SMESHDS_Mesh::AddGroup(), Driver_Mesh::addMessage(), SMESHDS_Mesh::AddNodeWithID(), SMESHDS_Mesh::AddVolumeWithID(), Driver_Mesh::DRS_OK, SMESHUtils::FreeVector(), SMESHDS_Mesh::GetGroups(), SMDS_Mesh::GetMeshInfo(), GmfEdges, GmfExtraVerticesAtEdges, GmfExtraVerticesAtHexahedra, GmfExtraVerticesAtQuadrilaterals, GmfExtraVerticesAtTetrahedra, GmfExtraVerticesAtTriangles, GmfFloat, GmfGetLin(), GmfGotoKwd(), GmfHexahedra, GmfOpenMesh(), GmfPrisms, GmfPyramids, GmfQuadrilaterals, GmfRead, GmfRequiredEdges, GmfRequiredQuadrilaterals, GmfRequiredTriangles, GmfRequiredVertices, GmfStatKwd(), GmfTetrahedra, GmfTriangles, GmfVertices, DriverGMF::isExtensionCorrect(), Driver_Mesh::myFile, Driver_SMESHDS_Mesh::myMesh, SMDS_MeshInfo::NbElements(), SMDS_MeshInfo::NbNodes(), SMESHDS_GroupBase::SetStoreName(), SMDSAbs_Edge, SMDSAbs_Face, SMDSAbs_Node, and storeBadNodeIds().
Referenced by SMESH_Mesh::GMFToMesh().
|
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().
void DriverGMF_Read::SetMakeRequiredGroups | ( | bool | theMakeRequiredGroups | ) |
Referenced by SMESH_Mesh::GMFToMesh().
|
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 |
|
virtualinherited |
References Driver_Mesh::myMeshName.
Referenced by SMESH_Mesh_i::ExportPartToMED().
|
virtualinherited |
|
private |
Store a message about invalid IDs of nodes.
References Driver_Mesh::addMessage(), Driver_Mesh::DRS_OK, SMDS_Mesh::FindNode(), Driver_SMESHDS_Mesh::myMesh, and Driver_Mesh::myStatus.
Referenced by Perform().
|
protectedinherited |
Referenced by Driver_Mesh::addMessage(), and Driver_Mesh::GetError().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by DriverMED_W_Field::Perform(), DriverMED_W_SMESHDS_Mesh::Perform(), and Driver_Mesh::SetMeshId().
|
protectedinherited |
|
protectedinherited |
Referenced by Driver_Mesh::addMessage(), Driver_Mesh::GetError(), and storeBadNodeIds().