#include <SMESH_ComputeError.hxx>

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_Mesh * | GetMesh () const |
| const TElemList & | GetElements () |
| 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_Algo * | myAlgo |
Protected Member Functions | |
| virtual void | clear () |
Protected Attributes | |
| SMDS_Mesh * | myMesh |
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< bool > | myIsNode |
| std::set< SMDS_ElementHolder * >::iterator | myPtrInMesh |
| typedef std::list<const SMDS_MeshElement*> SMESH_BadInputElements::TElemList |
| SMESH_BadInputElements::SMESH_BadInputElements | ( | const SMDS_Mesh * | mesh, |
| int | error = COMPERR_OK, |
||
| std::string | comment = "", |
||
| const SMESH_Algo * | algo = 0 |
||
| ) |
|
virtual |
the descendant squeeze its element storage after re-adding elements
Implements SMDS_ElementHolder.
References myBadElements.
Referenced by StdMeshers_Quadrangle_2D::computeQuadDominant().
|
privateinherited |
store vtkIDs of elements
References SMDS_Mesh::Contains(), SMDS_ElementHolder::getElements(), SMDS_MeshElement::GetType(), SMDS_MeshElement::GetVtkID(), SMDS_MeshElement::IsNull(), SMDS_ElementHolder::myExternalElems, SMDS_ElementHolder::myIsNode, SMDS_ElementHolder::myMesh, SMDS_ElementHolder::myVtkIDs, and SMDSAbs_Node.
|
protectedvirtualinherited |
Reimplemented in SMESH_ProxyMesh::SubMesh.
Referenced by SMESH_MeshEditor::SplitBiQuadraticIntoLinear().
|
inherited |
References _case2char, COMPERR_ALGO_FAILED, COMPERR_BAD_INPUT_MESH, COMPERR_BAD_PARMETERS, COMPERR_BAD_SHAPE, COMPERR_CANCELED, COMPERR_EXCEPTION, COMPERR_MEMORY_PB, COMPERR_NO_MESH_ON_SHAPE, COMPERR_OCC_EXCEPTION, COMPERR_OK, COMPERR_SLM_EXCEPTION, COMPERR_STD_EXCEPTION, COMPERR_WARNING, and SMESH_ComputeError::myName.
|
virtual |
allow the descendant treat its elements before mesh clearing
Implements SMDS_ElementHolder.
| const TElemList & SMESH_BadInputElements::GetElements | ( | ) |
Referenced by SMESH_Algo::error().
|
virtual |
< the descendant object return its elements just before the mesh compacting
the descendant object temporary remove its elements
Implements SMDS_ElementHolder.
References myBadElements.
| const SMDS_Mesh * SMESH_BadInputElements::GetMesh | ( | ) | const |
Referenced by SMESH_Algo::error().
|
virtual |
Reimplemented from SMESH_ComputeError.
|
inherited |
References COMPERR_LAST_ALGO_ERROR.
|
inherited |
References COMPERR_OK, and COMPERR_WARNING.
|
inherited |
References COMPERR_OK.
|
staticinherited |
Referenced by VISCOUS_3D::_ViscousBuilder::_ViscousBuilder(), VISCOUS_2D::_ViscousBuilder2D::_ViscousBuilder2D(), SMESH_subMesh::checkComputeError(), StdMeshers_ViscousLayers2D::CheckHypothesis(), StdMeshers_BlockRenumber::CheckHypothesis(), StdMeshers_Prism_3D::compute(), StdMeshers_Prism_3D::Compute(), ComputePentahedralMesh(), SMESH_subMesh::ComputeStateEngine(), _QuadFaceGrid::error(), VISCOUS_3D::_ViscousBuilder::error(), StdMeshers_PrismAsBlock::error(), SMESH_subMesh::Evaluate(), SMESH_Algo::GetComputeError(), Driver_Mesh::GetError(), StdMeshers_SMESHBlock::GetError(), StdMeshers_PrismAsBlock::Init(), StdMeshers_Cartesian_VL::ViscousBuilder::MakeViscousLayers(), and StdMeshers_Prism_3D::projectBottomToTop().
|
privateinherited |
restore pointers to elements
References SMDS_ElementHolder::add(), SMDS_ElementHolder::compact(), SMDS_Mesh::FindElementVtk(), SMDS_Mesh::FindNodeVtk(), SMDS_ElementHolder::myExternalElems, SMDS_ElementHolder::myIsNode, SMDS_ElementHolder::myMesh, SMDS_ElementHolder::myVtkIDs, and SMDS_ElementHolder::tmpClear().
|
virtual |
the descendant object re-add its elements after the mesh compacting
Implements SMDS_ElementHolder.
References myBadElements.
|
staticinherited |
References COMPERR_CANCELED.
Referenced by SMESH_subMesh::ComputeStateEngine().
|
inherited |
| TElemList SMESH_BadInputElements::myBadElements |
to explain COMPERR_BAD_INPUT_MESH
Referenced by add(), StdMeshers_Quadrangle_2D::check(), SMESH_Algo::GetComputeError(), getElements(), VISCOUS_3D::_ViscousBuilder::refine(), and tmpClear().
|
inherited |
|
privateinherited |
elements not contained in the mesh
Referenced by SMDS_ElementHolder::beforeCompacting(), and SMDS_ElementHolder::restoreElements().
|
privateinherited |
Referenced by SMDS_ElementHolder::beforeCompacting(), and SMDS_ElementHolder::restoreElements().
|
protectedinherited |
|
inherited |
SMESH_ComputeErrorName or anything algo specific.
Referenced by SMESH_ComputeError::CommonName().
|
privateinherited |
Referenced by SMDS_ElementHolder::SMDS_ElementHolder(), and SMDS_ElementHolder::~SMDS_ElementHolder().
|
privateinherited |
vtk IDs of elements
Referenced by SMDS_ElementHolder::beforeCompacting(), and SMDS_ElementHolder::restoreElements().