Version: 8.3.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
}
 

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_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

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

Constructor & Destructor Documentation

DriverGMF_Write::DriverGMF_Write ( )
DriverGMF_Write::~DriverGMF_Write ( )

Member Function Documentation

Driver_Mesh::Status Driver_Mesh::addMessage ( const std::string &  msg,
const bool  isFatal = false 
)
protectedinherited
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.

SMDS_ElemIteratorPtr DriverGMF_Write::elementIterator ( SMDSAbs_EntityType  type)
private
SMDS_ElemIteratorPtr DriverGMF_Write::elementIterator ( SMDSAbs_GeometryType  type)
private
SMESH_ComputeErrorPtr Driver_Mesh::GetError ( )
virtualinherited
std::string Driver_Mesh::GetMeshName ( ) const
virtualinherited
std::vector< std::string > DriverGMF_Write::GetSizeMapFiles ( )

References mySolFile, and myVerticesFile.

void DriverGMF_Write::SetExportRequiredGroups ( bool  toExport)
void Driver_Mesh::SetMeshName ( const std::string &  theMeshName)
virtualinherited
virtual void Driver_Mesh::SetOption ( const std::string &  optionName,
const std::string &  optionValue 
)
virtualinherited
void DriverGMF_Write::SetSizeMapPrefix ( std::string  prefix)

Field Documentation

bool DriverGMF_Write::_exportRequiredGroups
private

Referenced by Perform().

std::vector< std::string > Driver_Mesh::myErrorMessages
protectedinherited
int Driver_Mesh::myMeshId
protectedinherited
std::string Driver_Mesh::myMeshName
protectedinherited
std::string DriverGMF_Write::mySolFile
private

Referenced by GetSizeMapFiles(), and PerformSizeMap().

Status Driver_Mesh::myStatus
protectedinherited
std::string DriverGMF_Write::myVerticesFile
private

Referenced by GetSizeMapFiles(), and PerformSizeMap().