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

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

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

DriverSTL_R_SMDS_Mesh::DriverSTL_R_SMDS_Mesh ( )

References myIsAscii, and myIsCreateFaces.

Member Function Documentation

Driver_Mesh::Status Driver_Mesh::addMessage ( const std::string &  msg,
const bool  isFatal = false 
)
protectedinherited
SMESH_ComputeErrorPtr Driver_Mesh::GetError ( )
virtualinherited
std::string Driver_Mesh::GetMeshName ( ) const
virtualinherited
std::string DriverSTL_R_SMDS_Mesh::GetName ( ) const

Referenced by SMESH_Mesh::STLToMesh().

Driver_Mesh::Status DriverSTL_R_SMDS_Mesh::readBinary ( SMESH_File file) const
private
void DriverSTL_R_SMDS_Mesh::SetIsCreateFaces ( const bool  theIsCreate = true)

References myIsCreateFaces.

void Driver_SMDS_Mesh::SetMesh ( SMDS_Mesh theMesh)
inherited
void Driver_Mesh::SetMeshName ( const std::string &  theMeshName)
virtualinherited
virtual void Driver_Mesh::SetOption ( const std::string &  optionName,
const std::string &  optionValue 
)
virtualinherited

Field Documentation

std::vector< std::string > Driver_Mesh::myErrorMessages
protectedinherited
bool DriverSTL_R_SMDS_Mesh::myIsAscii
private

Referenced by DriverSTL_R_SMDS_Mesh(), and Perform().

bool DriverSTL_R_SMDS_Mesh::myIsCreateFaces
private
int Driver_Mesh::myMeshId
protectedinherited
std::string Driver_Mesh::myMeshName
protectedinherited
std::string DriverSTL_R_SMDS_Mesh::myName
private

Referenced by readAscii(), and readBinary().

Status Driver_Mesh::myStatus
protectedinherited