Driver Writing a mesh into a GMF file. More...
#include <DriverGMF_Write.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_Write () | |
~DriverGMF_Write () | |
void | SetExportRequiredGroups (bool toExport) |
virtual Status | Perform () |
Reads a GMF file. More... | |
Status | PerformSizeMap (const std::vector< SMESHUtils::ControlPnt > &points) |
void | SetSizeMapPrefix (std::string prefix) |
std::vector< std::string > | GetSizeMapFiles () |
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 | |
SMDS_ElemIteratorPtr | elementIterator (SMDSAbs_ElementType type) |
Returns an iterator on elements of a certain type. More... | |
SMDS_ElemIteratorPtr | elementIterator (SMDSAbs_EntityType type) |
SMDS_ElemIteratorPtr | elementIterator (SMDSAbs_GeometryType type) |
Private Attributes | |
bool | _exportRequiredGroups |
std::string | myVerticesFile |
std::string | mySolFile |
Driver Writing a mesh into a GMF file.
|
inherited |
DriverGMF_Write::DriverGMF_Write | ( | ) |
DriverGMF_Write::~DriverGMF_Write | ( | ) |
|
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 Perform(), DriverGMF_Read::Perform(), DriverMED_W_Field::Perform(), and DriverGMF_Read::storeBadNodeIds().
|
private |
Returns an iterator on elements of a certain type.
References SMDS_Mesh::elementsIterator(), and Driver_SMESHDS_Mesh::myMesh.
|
private |
References SMDS_Mesh::elementEntityIterator(), and Driver_SMESHDS_Mesh::myMesh.
|
private |
References SMDS_Mesh::elementGeomIterator(), and Driver_SMESHDS_Mesh::myMesh.
|
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().
std::vector< std::string > DriverGMF_Write::GetSizeMapFiles | ( | ) |
References mySolFile, and myVerticesFile.
|
virtual |
Reads a GMF file.
Implements Driver_Mesh.
References _exportRequiredGroups, Driver_Mesh::addMessage(), BEGIN_ELEM_WRITE, BEGIN_EXTRA_VERTICES_WRITE, Driver_Mesh::DRS_OK, END_ELEM_WRITE, END_ELEM_WRITE_ADD_TO_MAP, END_EXTRA_VERTICES_WRITE, SMESHDS_GroupBase::Extent(), SMESHDS_GroupBase::GetElements(), SMDS_MeshElement::GetEntityType(), SMESHDS_Mesh::GetGroups(), SMDS_MeshElement::getshapeId(), SMESHDS_GroupBase::GetStoreName(), SMDS_MeshNode::GetXYZ(), GmfEdges, GmfExtraVerticesAtEdges, GmfExtraVerticesAtHexahedra, GmfExtraVerticesAtQuadrilaterals, GmfExtraVerticesAtTetrahedra, GmfExtraVerticesAtTriangles, GmfHexahedra, GmfOpenMesh(), GmfPrisms, GmfPyramids, GmfQuadrilaterals, GmfRequiredEdges, GmfRequiredQuadrilaterals, GmfRequiredTriangles, GmfRequiredVertices, GmfSetKwd(), GmfSetLin(), GmfTetrahedra, GmfTriangles, GmfVertices, GmfWrite, DriverGMF::isExtensionCorrect(), Driver_Mesh::myFile, Driver_SMESHDS_Mesh::myMesh, SMDS_Mesh::NbEdges(), SMDS_Mesh::NbFaces(), SMDS_Mesh::NbNodes(), SMDS_Mesh::nodesIterator(), SMDSEntity_Edge, SMDSEntity_Hexa, SMDSEntity_Node, SMDSEntity_Penta, SMDSEntity_Pyramid, SMDSEntity_Quadrangle, SMDSEntity_Tetra, SMDSEntity_Triangle, SMDSGeom_EDGE, SMDSGeom_HEXA, SMDSGeom_QUADRANGLE, SMDSGeom_TETRA, and SMDSGeom_TRIANGLE.
Driver_Mesh::Status DriverGMF_Write::PerformSizeMap | ( | const std::vector< SMESHUtils::ControlPnt > & | points | ) |
References Driver_Mesh::DRS_OK, GmfCloseMesh(), GmfOpenMesh(), GmfSca, GmfSetKwd(), GmfSetLin(), GmfSolAtVertices, GmfVertices, GmfWrite, mySolFile, and myVerticesFile.
void DriverGMF_Write::SetExportRequiredGroups | ( | bool | toExport | ) |
|
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 |
|
virtualinherited |
References Driver_Mesh::myMeshName.
Referenced by SMESH_Mesh_i::ExportPartToMED().
|
virtualinherited |
void DriverGMF_Write::SetSizeMapPrefix | ( | std::string | prefix | ) |
|
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 |
|
private |
Referenced by GetSizeMapFiles(), and PerformSizeMap().
|
protectedinherited |
Referenced by Driver_Mesh::addMessage(), Driver_Mesh::GetError(), and DriverGMF_Read::storeBadNodeIds().
|
private |
Referenced by GetSizeMapFiles(), and PerformSizeMap().