Version: 9.16.0
SMESH_Mesh_i.cxx File Reference
#include "SMESH_Mesh_i.hxx"
#include "DriverMED_R_SMESHDS_Mesh.h"
#include "DriverMED_W_Field.h"
#include "DriverMED_W_SMESHDS_Mesh.h"
#include "MED_Factory.hxx"
#include "SMDS_LinearEdge.hxx"
#include "SMDS_EdgePosition.hxx"
#include "SMDS_ElemIterator.hxx"
#include "SMDS_FacePosition.hxx"
#include "SMDS_IteratorOnIterators.hxx"
#include "SMDS_MeshGroup.hxx"
#include "SMDS_SetIterator.hxx"
#include "SMDS_StdIterator.hxx"
#include "SMDS_VolumeTool.hxx"
#include "SMESHDS_Command.hxx"
#include "SMESHDS_CommandType.hxx"
#include "SMESHDS_Group.hxx"
#include "SMESHDS_GroupOnGeom.hxx"
#include "SMESH_Controls.hxx"
#include "SMESH_File.hxx"
#include "SMESH_Filter_i.hxx"
#include "SMESH_Gen_i.hxx"
#include "SMESH_Group.hxx"
#include "SMESH_Group_i.hxx"
#include "SMESH_Mesh.hxx"
#include "SMESH_MeshAlgos.hxx"
#include "SMESH_MeshEditor.hxx"
#include "SMESH_MeshEditor_i.hxx"
#include "SMESH_MeshPartDS.hxx"
#include "SMESH_MesherHelper.hxx"
#include "SMESH_PreMeshInfo.hxx"
#include "SMESH_PythonDump.hxx"
#include "SMESH_subMesh_i.hxx"
#include "SMESH_Meshio.h"
#include <SALOMEDS_Attributes_wrap.hxx>
#include <SALOMEDS_wrap.hxx>
#include <Utils_ExceptHandlers.hxx>
#include <utilities.h>
#include <GEOMImpl_Types.hxx>
#include <GEOM_wrap.hxx>
#include <BRep_Builder.hxx>
#include <Standard_ErrorHandler.hxx>
#include <TColStd_MapOfInteger.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
#include <TopTools_DataMapOfShapeShape.hxx>
#include <TopTools_MapIteratorOfMapOfShape.hxx>
#include <TopTools_MapOfShape.hxx>
#include <TopoDS_Compound.hxx>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <vtkUnstructuredGridWriter.h>
#include "SMESH_TryCatch.hxx"

Data Structures

class  MEDFileSpeCls
 
class  MEDFileMemSpeCls
 

Macros

#define SMY_OWN_CATCH
 
#define SMESH_CAUGHT   error =
 
#define SMESH_CAUGHT
 
#define RETURNCASE(hyp_stat)   case SMESH_Hypothesis::hyp_stat: return SMESH::hyp_stat;
 Convert SMESH_Hypothesis::Hypothesis_Status into SMESH::Hypothesis_Status. More...
 
#define METH   "SMESH_Mesh_i::exportMEDFields() "
 
#define _GET_ITER_DEFINE(iterType, methName, elem, elemType)
 

Enumerations

enum  { ONLY_IF_CHANGED , IS_BREAK_LINK , MAIN_TRANSFORMED }
 Return new group contents if it has been changed and update group data. More...
 

Functions

static SMESH::DriverMED_ReadStatus ConvertDriverMEDReadStatus (int theStatus)
 Convert enum Driver_Mesh::Status to SMESH::DriverMED_ReadStatus. More...
 
static SMESH::ComputeErrorConvertComputeError (SMESH_ComputeErrorPtr errorPtr)
 Convert SMESH_ComputeError to SMESH::ComputeError. More...
 
static SALOMEDS::Color getUniqueColor (const std::list< SALOMEDS::Color > &theReservedColors)
 Return a random unique color. More...
 

Macro Definition Documentation

◆ _GET_ITER_DEFINE

#define _GET_ITER_DEFINE (   iterType,
  methName,
  elem,
  elemType 
)
Value:
iterType SMESH_MeshPartDS::methName() const \
{ \
return _meshDS ? _meshDS->methName() : iterType \
( new TIter( _elements[elemType].begin(), _elements[elemType].end() )); \
}
IMAP::const_iterator begin(const IMAP &m)
Definition: StdMeshers_Projection_2D.cxx:104
IMAP::const_iterator end(const IMAP &m)
Definition: StdMeshers_Projection_2D.cxx:106
SMDS_Iterator iterating over abstract set of values like STL containers.
Definition: SMDS_SetIterator.hxx:88
SMESHDS_Mesh * _meshDS
Definition: SMESH_MeshPartDS.hxx:70
TIDSortedElemSet _elements[SMDSAbs_NbElementTypes]
Definition: SMESH_MeshPartDS.hxx:69

◆ METH

#define METH   "SMESH_Mesh_i::exportMEDFields() "

◆ RETURNCASE

#define RETURNCASE (   hyp_stat)    case SMESH_Hypothesis::hyp_stat: return SMESH::hyp_stat;

◆ SMESH_CAUGHT [1/2]

#define SMESH_CAUGHT   error =

◆ SMESH_CAUGHT [2/2]

#define SMESH_CAUGHT

◆ SMY_OWN_CATCH

#define SMY_OWN_CATCH
Value:
catch( SALOME::SALOME_Exception& se ) { throw se; } \
{ SALOME::ExceptionStruct se = { \
SALOME::COMM, \
CORBA::string_dup(SMESH_Comment("Mesh is too large for export in format ") << ex.what()), \
CORBA::string_dup(SMESH_Comment("format=") << ex.what() ), 0 }; \
throw SALOME::SALOME_Exception( se ); }
Class to generate string from any type.
Definition: SMESH_Comment.hxx:37
Exception thrown by Export*() in case if a mesh is too large for export due to limitation of a format...
Definition: SMESH_Mesh.hxx:276

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Return new group contents if it has been changed and update group data.

Enumerator
ONLY_IF_CHANGED 
IS_BREAK_LINK 
MAIN_TRANSFORMED 

Function Documentation

◆ ConvertComputeError()

static SMESH::ComputeError * ConvertComputeError ( SMESH_ComputeErrorPtr  errorPtr)
static

◆ ConvertDriverMEDReadStatus()

◆ getUniqueColor()

static SALOMEDS::Color getUniqueColor ( const std::list< SALOMEDS::Color > &  theReservedColors)
static

Return a random unique color.

Referenced by SMESH_Mesh_i::SetAutoColor().