Version: 9.16.0
SMESH_BadInputElements Struct Reference

#include <SMESH_ComputeError.hxx>

Inheritance diagram for SMESH_BadInputElements:

Public Types

typedef std::list< const SMDS_MeshElement * > TElemList
 

Public Member Functions

 SMESH_BadInputElements (const SMDS_Mesh *mesh, int error=COMPERR_OK, std::string comment="", const SMESH_Algo *algo=0)
 
const SMDS_MeshGetMesh () const
 
const TElemListGetElements ()
 
virtual bool HasBadElems () const
 
virtual SMDS_ElemIteratorPtr getElements ()
 < the descendant object return its elements just before the mesh compacting More...
 
virtual void tmpClear ()
 the descendant object re-add its elements after the mesh compacting More...
 
virtual void add (const SMDS_MeshElement *element)
 the descendant squeeze its element storage after re-adding elements More...
 
virtual void compact ()
 allow the descendant treat its elements before mesh clearing More...
 
bool IsOK () const
 
bool IsKO () const
 
bool IsCommon () const
 
std::string CommonName () const
 

Static Public Member Functions

static SMESH_ComputeErrorPtr New (int error=COMPERR_OK, std::string comment="", const SMESH_Algo *algo=0)
 
static SMESH_ComputeErrorPtr Worst (SMESH_ComputeErrorPtr er1, SMESH_ComputeErrorPtr er2)
 

Data Fields

TElemList myBadElements
 to explain COMPERR_BAD_INPUT_MESH More...
 
int myName
 SMESH_ComputeErrorName or anything algo specific. More...
 
std::string myComment
 
const SMESH_AlgomyAlgo
 

Protected Member Functions

virtual void clear ()
 

Protected Attributes

SMDS_MeshmyMesh
 

Private Member Functions

void beforeCompacting ()
 store vtkIDs of elements More...
 
void restoreElements (const std::vector< smIdType > &idNodessOldToNew, const std::vector< smIdType > &idCellsOldToNew)
 restore pointers to elements More...
 

Private Attributes

std::vector< const SMDS_MeshElement * > myExternalElems
 elements not contained in the mesh More...
 
std::vector< vtkIdType > myVtkIDs
 vtk IDs of elements More...
 
std::vector< boolmyIsNode
 
std::set< SMDS_ElementHolder * >::iterator myPtrInMesh
 

Member Typedef Documentation

◆ TElemList

Constructor & Destructor Documentation

◆ SMESH_BadInputElements()

SMESH_BadInputElements::SMESH_BadInputElements ( const SMDS_Mesh mesh,
int  error = COMPERR_OK,
std::string  comment = "",
const SMESH_Algo algo = 0 
)

Member Function Documentation

◆ add()

void SMESH_BadInputElements::add ( const SMDS_MeshElement element)
virtual

the descendant squeeze its element storage after re-adding elements

Implements SMDS_ElementHolder.

References myBadElements.

Referenced by StdMeshers_Quadrangle_2D::computeQuadDominant().

◆ beforeCompacting()

◆ clear()

virtual void SMDS_ElementHolder::clear ( )
protectedvirtualinherited

◆ CommonName()

◆ compact()

virtual void SMESH_BadInputElements::compact ( )
virtual

allow the descendant treat its elements before mesh clearing

Implements SMDS_ElementHolder.

◆ GetElements()

const TElemList & SMESH_BadInputElements::GetElements ( )

Referenced by SMESH_Algo::error().

◆ getElements()

SMDS_ElemIteratorPtr SMESH_BadInputElements::getElements ( )
virtual

< the descendant object return its elements just before the mesh compacting

the descendant object temporary remove its elements

Implements SMDS_ElementHolder.

References myBadElements.

◆ GetMesh()

const SMDS_Mesh * SMESH_BadInputElements::GetMesh ( ) const

Referenced by SMESH_Algo::error().

◆ HasBadElems()

virtual bool SMESH_BadInputElements::HasBadElems ( ) const
virtual

Reimplemented from SMESH_ComputeError.

◆ IsCommon()

bool SMESH_ComputeError::IsCommon ( ) const
inherited

◆ IsKO()

bool SMESH_ComputeError::IsKO ( ) const
inherited

References COMPERR_OK, and COMPERR_WARNING.

◆ IsOK()

bool SMESH_ComputeError::IsOK ( ) const
inherited

References COMPERR_OK.

◆ New()

◆ restoreElements()

void SMDS_ElementHolder::restoreElements ( const std::vector< smIdType > &  idNodessOldToNew,
const std::vector< smIdType > &  idCellsOldToNew 
)
privateinherited

◆ tmpClear()

void SMESH_BadInputElements::tmpClear ( )
virtual

the descendant object re-add its elements after the mesh compacting

Implements SMDS_ElementHolder.

References myBadElements.

◆ Worst()

SMESH_ComputeErrorPtr SMESH_ComputeError::Worst ( SMESH_ComputeErrorPtr  er1,
SMESH_ComputeErrorPtr  er2 
)
staticinherited

Field Documentation

◆ myAlgo

const SMESH_Algo* SMESH_ComputeError::myAlgo
inherited

◆ myBadElements

TElemList SMESH_BadInputElements::myBadElements

◆ myComment

std::string SMESH_ComputeError::myComment
inherited

◆ myExternalElems

std::vector<const SMDS_MeshElement*> SMDS_ElementHolder::myExternalElems
privateinherited

elements not contained in the mesh

Referenced by SMDS_ElementHolder::beforeCompacting(), and SMDS_ElementHolder::restoreElements().

◆ myIsNode

std::vector< bool > SMDS_ElementHolder::myIsNode
privateinherited

◆ myMesh

◆ myName

int SMESH_ComputeError::myName
inherited

SMESH_ComputeErrorName or anything algo specific.

Referenced by SMESH_ComputeError::CommonName().

◆ myPtrInMesh

std::set<SMDS_ElementHolder*>::iterator SMDS_ElementHolder::myPtrInMesh
privateinherited

◆ myVtkIDs

std::vector< vtkIdType > SMDS_ElementHolder::myVtkIDs
privateinherited