#include <DriverUNV_R_SMDS_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 | |
DriverUNV_R_SMDS_Mesh () | |
~DriverUNV_R_SMDS_Mesh () | |
virtual Status | Perform () |
const SMDS_MeshGroup * | GetGroup () const |
const TGroupNamesMap & | GetGroupNamesMap () const |
const TGroupIdMap & | GetGroupIdMap () const |
void | SetMesh (SMDS_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 | |
SMDS_Mesh * | myMesh |
std::string | myFile |
std::string | myMeshName |
int | myMeshId |
std::vector< std::string > | myErrorMessages |
Status | myStatus |
Private Attributes | |
SMDS_MeshGroup * | myGroup |
TGroupNamesMap | myGroupNames |
TGroupIdMap | myGroupId |
|
inherited |
DriverUNV_R_SMDS_Mesh::DriverUNV_R_SMDS_Mesh | ( | ) |
DriverUNV_R_SMDS_Mesh::~DriverUNV_R_SMDS_Mesh | ( | ) |
|
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().
const SMDS_MeshGroup* DriverUNV_R_SMDS_Mesh::GetGroup | ( | ) | const |
Referenced by SMESH_Mesh::UNVToMesh().
const TGroupIdMap& DriverUNV_R_SMDS_Mesh::GetGroupIdMap | ( | ) | const |
const TGroupNamesMap& DriverUNV_R_SMDS_Mesh::GetGroupNamesMap | ( | ) | const |
Referenced by SMESH_Mesh::UNVToMesh().
|
virtualinherited |
References Driver_Mesh::myMeshName.
Referenced by SMESH_Mesh::CGNSToMesh().
|
virtual |
Implements Driver_Mesh.
References SMDS_MeshGroup::Add(), SMDS_MeshGroup::AddSubGroup(), UNV2411::TRecord::coord, SMESH::DRS_OK, UNV164::TRecord::factors, SMDS_MeshElement::GetType(), UNV2412::IsBeam(), UNV2412::IsFace(), UNV2412::IsVolume(), UNV2411::TRecord::label, UNV164::LENGTH_FACTOR, MESSAGE, MYDEBUG, UNV2417::Read(), UNV2411::Read(), UNV2412::Read(), UNV164::Read(), UNV2420::Read(), SMDSAbs_Edge, SMDSAbs_Face, SMDSAbs_Node, and SMDSAbs_Volume.
Referenced by SMESH_Mesh::UNVToMesh().
|
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_SMDS_Mesh::myMesh.
Referenced by SMESH_Mesh::STLToMesh(), and SMESH_Mesh::UNVToMesh().
|
inherited |
|
virtualinherited |
References Driver_Mesh::myMeshName.
Referenced by SMESH_Mesh_i::ExportPartToMED().
|
virtualinherited |
|
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().
|
private |
|
private |
|
private |
|
protectedinherited |
Referenced by DriverSTL_W_SMDS_Mesh::findVolumeTriangles(), DriverSTL_W_SMDS_Mesh::getFaces(), DriverSTL_R_SMDS_Mesh::Perform(), DriverSTL_W_SMDS_Mesh::Perform(), DriverSTL_R_SMDS_Mesh::readAscii(), DriverSTL_R_SMDS_Mesh::readBinary(), Driver_SMDS_Mesh::SetMesh(), and DriverSTL_W_SMDS_Mesh::writeBinary().
|
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().