Driver writinging a mesh into the CGNS file. More...
#include <DriverCGNS_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 | |
DriverCGNS_Write () | |
Constructor. More... | |
~DriverCGNS_Write () | |
Close the cgns file at destruction. More... | |
virtual Status | Perform () |
Write the mesh into the CGNS 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 Attributes | |
int | _fn |
file index More... | |
Driver writinging a mesh into the CGNS file.
|
inherited |
DriverCGNS_Write::DriverCGNS_Write | ( | ) |
Constructor.
DriverCGNS_Write::~DriverCGNS_Write | ( | ) |
Close the cgns file at destruction.
References _fn.
|
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().
|
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 |
Write the mesh into the CGNS file.
Implements Driver_Mesh.
References cgsize_t, SMESH::DRS_OK, SMESHDS_GroupBase::Extent(), faceID, SMESHDS_GroupBase::GetElements(), SMDS_MeshElement::GetEntityType(), SMDS_VolumeTool::GetFaceNodes(), SMDS_MeshElement::GetID(), SMDS_MeshElement::GetNode(), SMESHDS_GroupBase::GetStoreName(), SMESHDS_GroupBase::GetType(), SMDS_MeshCell::interlacedSmdsOrder(), SMDS_VolumeTool::IsFreeFace(), SMDS_MeshInfo::NbElements(), SMDS_VolumeTool::NbFaceNodes(), SMDS_VolumeTool::NbFaces(), SMDS_MeshElement::NbNodes(), SMDS_MeshInfo::NbPolyhedrons(), SMDS_VolumeTool::Set(), SMDS_VolumeTool::SetExternalNormal(), SMDSAbs_Edge, SMDSAbs_Face, SMDSAbs_Node, SMDSAbs_Volume, SMDSEntity_Hexagonal_Prism, SMDSEntity_Last, SMDSEntity_Node, SMDSEntity_Polygon, SMDSEntity_Polyhedra, and SMDSEntity_Quad_Polygon.
|
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 |
|
private |
file index
Referenced by ~DriverCGNS_Write().
|
protectedinherited |
Referenced by Driver_Mesh::addMessage(), and Driver_Mesh::GetError().
|
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().
|
protectedinherited |
|
protectedinherited |
Referenced by Driver_Mesh::addMessage(), Driver_Mesh::GetError(), and DriverGMF_Read::storeBadNodeIds().