Version: 9.16.0
DriverGMF_Write Class Reference

Driver Writing a mesh into a GMF file. More...

#include <DriverGMF_Write.hxx>

Inheritance diagram for DriverGMF_Write:

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

 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 &, 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

SMESHDS_MeshmyMesh
 
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
 

Detailed Description

Driver Writing a mesh into a GMF file.

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

◆ DriverGMF_Write()

DriverGMF_Write::DriverGMF_Write ( )

◆ ~DriverGMF_Write()

DriverGMF_Write::~DriverGMF_Write ( )

Member Function Documentation

◆ addMessage()

◆ elementIterator() [1/3]

SMDS_ElemIteratorPtr DriverGMF_Write::elementIterator ( SMDSAbs_ElementType  type)
private

Returns an iterator on elements of a certain type.

References SMDS_Mesh::elementsIterator(), and Driver_SMESHDS_Mesh::myMesh.

◆ elementIterator() [2/3]

SMDS_ElemIteratorPtr DriverGMF_Write::elementIterator ( SMDSAbs_EntityType  type)
private

◆ elementIterator() [3/3]

SMDS_ElemIteratorPtr DriverGMF_Write::elementIterator ( SMDSAbs_GeometryType  type)
private

◆ 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()

◆ GetMeshName()

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

◆ GetSizeMapFiles()

std::vector< std::string > DriverGMF_Write::GetSizeMapFiles ( )

References mySolFile, and myVerticesFile.

◆ IsMeshTooLarge()

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

◆ Perform()

◆ PerformSizeMap()

◆ SetExportRequiredGroups()

void DriverGMF_Write::SetExportRequiredGroups ( bool  toExport)

Referenced by SMESH_Mesh::ExportGMF().

◆ SetFile()

◆ SetMesh()

◆ SetMeshId()

◆ SetMeshName()

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

◆ SetOption()

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

◆ SetSizeMapPrefix()

void DriverGMF_Write::SetSizeMapPrefix ( std::string  prefix)

Field Documentation

◆ _exportRequiredGroups

bool DriverGMF_Write::_exportRequiredGroups
private

Referenced by Perform().

◆ myErrorMessages

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

◆ myFile

◆ myMesh

◆ myMeshId

◆ myMeshName

◆ mySolFile

std::string DriverGMF_Write::mySolFile
private

Referenced by GetSizeMapFiles(), and PerformSizeMap().

◆ myStatus

Status Driver_Mesh::myStatus
protectedinherited

◆ myVerticesFile

std::string DriverGMF_Write::myVerticesFile
private

Referenced by GetSizeMapFiles(), and PerformSizeMap().