Version: 9.16.0
DriverUNV_R_SMDS_Mesh Class Reference

#include <DriverUNV_R_SMDS_Mesh.h>

Inheritance diagram for DriverUNV_R_SMDS_Mesh:

Public Types

enum  Status {
  DRS_OK , DRS_EMPTY , DRS_WARN_RENUMBER , DRS_WARN_SKIP_ELEM ,
  DRS_WARN_DESCENDING , DRS_FAIL , DRS_TOO_LARGE_MESH
}
 

Public Member Functions

 DriverUNV_R_SMDS_Mesh ()
 
 ~DriverUNV_R_SMDS_Mesh ()
 
virtual Status Perform ()
 
TGroupNamesMapGetGroupNamesMap ()
 
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 &, const std::string &)
 
virtual SMESH_ComputeErrorPtr GetError ()
 Return a structure containing description of errors. More...
 

Static Public Member Functions

template<typename IDTYPE >
static bool IsMeshTooLarge (const SMDS_Mesh *mesh, bool checkIDs)
 

Protected Member Functions

Status addMessage (const std::string &msg, const bool isFatal=false)
 Stores an error message. More...
 

Static Protected Member Functions

static std::string fixUTF8 (const std::string &s)
 Assure a string is UTF-8 valid by replacing invalid chars. More...
 

Protected Attributes

SMDS_MeshmyMesh
 
std::string myFile
 
std::string myMeshName
 
int myMeshId
 
std::vector< std::string > myErrorMessages
 
Status myStatus
 

Private Attributes

TGroupNamesMap myGroupNames
 

Member Enumeration Documentation

◆ Status

enum Driver_Mesh::Status
inherited
Enumerator
DRS_OK 
DRS_EMPTY 
DRS_WARN_RENUMBER 
DRS_WARN_SKIP_ELEM 
DRS_WARN_DESCENDING 
DRS_FAIL 
DRS_TOO_LARGE_MESH 

Constructor & Destructor Documentation

◆ DriverUNV_R_SMDS_Mesh()

DriverUNV_R_SMDS_Mesh::DriverUNV_R_SMDS_Mesh ( )

◆ ~DriverUNV_R_SMDS_Mesh()

DriverUNV_R_SMDS_Mesh::~DriverUNV_R_SMDS_Mesh ( )

References myGroupNames.

Member Function Documentation

◆ addMessage()

◆ fixUTF8()

std::string Driver_Mesh::fixUTF8 ( const std::string &  s)
staticprotectedinherited

Assure a string is UTF-8 valid by replacing invalid chars.

Referenced by DriverMED_R_SMESHDS_Mesh::Perform().

◆ GetError()

◆ GetGroupNamesMap()

TGroupNamesMap & DriverUNV_R_SMDS_Mesh::GetGroupNamesMap ( )

Referenced by SMESH_Mesh::UNVToMesh().

◆ GetMeshName()

std::string Driver_Mesh::GetMeshName ( ) const
virtualinherited

◆ IsMeshTooLarge()

template<typename IDTYPE >
static bool Driver_Mesh::IsMeshTooLarge ( const SMDS_Mesh mesh,
bool  checkIDs 
)
staticinherited

◆ Perform()

◆ SetFile()

◆ SetMesh()

void Driver_SMDS_Mesh::SetMesh ( SMDS_Mesh theMesh)
inherited

◆ SetMeshId()

◆ SetMeshName()

void Driver_Mesh::SetMeshName ( const std::string &  theMeshName)
virtualinherited

◆ SetOption()

virtual void Driver_Mesh::SetOption ( const std::string &  ,
const std::string &   
)
virtualinherited

Field Documentation

◆ myErrorMessages

std::vector< std::string > Driver_Mesh::myErrorMessages
protectedinherited

◆ myFile

◆ myGroupNames

TGroupNamesMap DriverUNV_R_SMDS_Mesh::myGroupNames
private

Referenced by Perform(), and ~DriverUNV_R_SMDS_Mesh().

◆ myMesh

◆ myMeshId

◆ myMeshName

◆ myStatus

Status Driver_Mesh::myStatus
protectedinherited