Version: 9.16.0
DriverSTL_R_SMDS_Mesh Class Reference

#include <DriverSTL_R_SMDS_Mesh.h>

Inheritance diagram for DriverSTL_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

 DriverSTL_R_SMDS_Mesh ()
 
virtual Status Perform ()
 
void SetIsCreateFaces (const bool theIsCreate=true)
 
std::string GetName () 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 &, 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 Member Functions

Status readAscii (SMESH_File &file) const
 
Status readBinary (SMESH_File &file) const
 

Private Attributes

bool myIsCreateFaces
 
bool myIsAscii
 
std::string myName
 

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

◆ DriverSTL_R_SMDS_Mesh()

DriverSTL_R_SMDS_Mesh::DriverSTL_R_SMDS_Mesh ( )

References myIsAscii, and myIsCreateFaces.

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

◆ GetMeshName()

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

◆ GetName()

std::string DriverSTL_R_SMDS_Mesh::GetName ( ) const

Referenced by SMESH_Mesh::STLToMesh().

◆ IsMeshTooLarge()

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

◆ Perform()

◆ readAscii()

◆ readBinary()

Driver_Mesh::Status DriverSTL_R_SMDS_Mesh::readBinary ( SMESH_File file) const
private

◆ SetFile()

◆ SetIsCreateFaces()

void DriverSTL_R_SMDS_Mesh::SetIsCreateFaces ( const bool  theIsCreate = true)

References myIsCreateFaces.

◆ 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

◆ myIsAscii

bool DriverSTL_R_SMDS_Mesh::myIsAscii
private

Referenced by DriverSTL_R_SMDS_Mesh(), and Perform().

◆ myIsCreateFaces

bool DriverSTL_R_SMDS_Mesh::myIsCreateFaces
private

◆ myMesh

◆ myMeshId

◆ myMeshName

◆ myName

std::string DriverSTL_R_SMDS_Mesh::myName
private

Referenced by readAscii(), and readBinary().

◆ myStatus

Status Driver_Mesh::myStatus
protectedinherited