25#ifndef _SMESH_GEN_IDL_
26#define _SMESH_GEN_IDL_
28#include "SALOME_Exception.idl"
29#include "SALOME_Component.idl"
30#include "SALOMEDS.idl"
32#include "GEOM_Gen.idl"
36#include "SMESH_smIdType.idl"
137 interface SMESH_Gen : Engines::EngineComponent, SALOMEDS::Driver
181 in
string theLibName )
182 raises ( SALOME::SALOME_Exception );
188 in
string theLibName,
189 in
double theAverageLength,
190 in
boolean theQuadDominated)
191 raises ( SALOME::SALOME_Exception );
201 in
string theLibName,
203 in GEOM::GEOM_Object theGeom,
205 raises ( SALOME::SALOME_Exception );
216 out GEOM::GEOM_Object theShape);
232 in
string theObjectName )
233 raises ( SALOME::SALOME_Exception );
280 raises ( SALOME::SALOME_Exception );
291 raises ( SALOME::SALOME_Exception );
296 raises ( SALOME::SALOME_Exception );
299 raises(SALOME::SALOME_Exception);
306 raises ( SALOME::SALOME_Exception );
313 raises ( SALOME::SALOME_Exception );
320 raises ( SALOME::SALOME_Exception );
327 raises ( SALOME::SALOME_Exception );
334 raises ( SALOME::SALOME_Exception );
342 raises ( SALOME::SALOME_Exception );
349 raises ( SALOME::SALOME_Exception );
355 raises ( SALOME::SALOME_Exception );
362 raises ( SALOME::SALOME_Exception );
370 in
boolean theMakeRequiredGroups,
372 raises ( SALOME::SALOME_Exception );
379 in
string selectedFilter,
381 raises (SALOME::SALOME_Exception);
392 in
boolean adaptToShape)
393 raises ( SALOME::SALOME_Exception );
405 in
boolean toCopyGroups,
406 in
boolean toKeepIDs)
407 raises ( SALOME::SALOME_Exception );
428 in GEOM::GEOM_Object newGeometry,
430 in
boolean toCopyGroups,
431 in
boolean toReuseHypotheses,
432 in
boolean toCopyElements,
438 raises ( SALOME::SALOME_Exception );
449 in
boolean theUniteIdenticalGroups,
450 in
boolean theMergeNodesAndElements,
451 in
double theMergeTolerance,
453 raises ( SALOME::SALOME_Exception );
465 in
boolean theUniteIdenticalGroups,
466 in
boolean theMergeNodesAndElements,
467 in
double theMergeTolerance,
469 raises ( SALOME::SALOME_Exception );
477 in GEOM::GEOM_Object theSubObject )
478 raises ( SALOME::SALOME_Exception );
484 in GEOM::GEOM_Object theSubObject );
490 in GEOM::GEOM_Object theSubObject )
491 raises ( SALOME::SALOME_Exception );
497 in GEOM::GEOM_Object theSubObject)
498 raises ( SALOME::SALOME_Exception );
506 in GEOM::GEOM_Object theSubObject,
509 raises ( SALOME::SALOME_Exception );
516 in GEOM::GEOM_Object theSubObject )
517 raises ( SALOME::SALOME_Exception );
524 in GEOM::GEOM_Object theSubObject )
525 raises ( SALOME::SALOME_Exception );
531 in
short theSubShapeID )
532 raises ( SALOME::SALOME_Exception );
538 in
short theSubShapeID,
539 in
string theGroupName)
540 raises ( SALOME::SALOME_Exception );
546 long_array GetSubShapesId( in GEOM::GEOM_Object theMainObject,
548 raises ( SALOME::SALOME_Exception );
555 GEOM::GEOM_Object GetGeometryByMeshElement( in
SMESH_Mesh theMesh,
556 in smIdType theElementID,
557 in
string theGeomName)
558 raises ( SALOME::SALOME_Exception );
564 GEOM::GEOM_Object FindGeometryByMeshElement( in
SMESH_Mesh theMesh,
565 in smIdType theElementID)
566 raises ( SALOME::SALOME_Exception );
573 long GetObjectId(in Object theObject);
578 string GetMEDFileVersion();
593 boolean CheckWriteCompatibility(in
string theFileName);
609 in SALOMEDS::SObject where,
620 in
string theLibName,
621 in GEOM::GEOM_Object theShapeObject,
622 in
boolean toCheckAll );
692 in GEOM::GEOM_Object theGeom,
693 in
double theTolerance );
696 SMESHHOMARD::HOMARD_Gen CreateHOMARD_ADAPT() raises ( SALOME::SALOME_Exception );
698 SALOME::GenericObj Adaptation(in
string adaptType) raises ( SALOME::SALOME_Exception );
@ COMPERR_CANCELED
compute canceled
Definition: SMESH_ComputeError.hxx:56
@ COMPERR_NO_MESH_ON_SHAPE
no mesh elements assigned to sub-shape
Definition: SMESH_ComputeError.hxx:57
@ COMPERR_WARNING
algo reports error but sub-mesh is computed anyway
Definition: SMESH_ComputeError.hxx:55
@ COMPERR_BAD_SHAPE
bad geometry
Definition: SMESH_ComputeError.hxx:54
@ COMPERR_SLM_EXCEPTION
SALOME exception raised.
Definition: SMESH_ComputeError.hxx:50
@ COMPERR_MEMORY_PB
std::bad_alloc exception
Definition: SMESH_ComputeError.hxx:52
@ COMPERR_BAD_INPUT_MESH
wrong mesh on lower submesh
Definition: SMESH_ComputeError.hxx:47
@ COMPERR_EXCEPTION
other exception raised
Definition: SMESH_ComputeError.hxx:51
@ COMPERR_OK
Definition: SMESH_ComputeError.hxx:46
@ COMPERR_ALGO_FAILED
algo failed for some reason
Definition: SMESH_ComputeError.hxx:53
@ COMPERR_BAD_PARMETERS
incorrect hypotheses parameters
Definition: SMESH_ComputeError.hxx:58
@ COMPERR_OCC_EXCEPTION
OCC exception raised.
Definition: SMESH_ComputeError.hxx:49
@ COMPERR_STD_EXCEPTION
some std exception raised
Definition: SMESH_ComputeError.hxx:48
bool Compute(::SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, const int aFlags=COMPACT_MESH, const ::MeshDimension aDim=::MeshDim_3D, TSetOfInt *aShapesId=0, TopTools_IndexedMapOfShape *anAllowedSubShapes=0)
Computes aMesh on aShape.
bool Evaluate(::SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, MapShapeNbElems &aResMap, const bool anUpward=false, TSetOfInt *aShapesId=0)
evaluates size of prospective mesh on a shape
void CancelCompute(::SMESH_Mesh &aMesh, const TopoDS_Shape &aShape)
bool GetAlgoState(SMESH_Mesh &aMesh, const TopoDS_Shape &aShape, std::list< SMESH_Gen::TAlgoStateError > &theErrors)
Definition: SMESH_Gen.cxx:1184
Definition: SMESH_Homard.idl:108
Interface of Filter manager.
Definition: SMESH_Filter.idl:583
Definition: MG_ADAPT.idl:138
Definition: SMESH_Measurements.idl:47
Definition: SMESH_Gen.idl:138
void SetDefaultNbSegments(in long theNbSegments)
Sets default number of segments per edge.
void SetEnablePublish(in boolean theIsEnablePublish)
Set enable publishing in the study.
void SetName(in string theObjectIOR, in string theObjectName)
Set the object name.
void PausePythonDumpRecording()
Pauses the Python dump recording.
boolean IsEnablePublish()
Get enable publishing in the study.
boolean IsEmbeddedMode()
Get the current mode.
void ResumePythonDumpRecording()
Resumes Python dump recording.
boolean GetSoleSubMeshUsingHyp(in SMESH_Hypothesis theHyp, out SMESH_Mesh theMesh, out GEOM::GEOM_Object theShape)
Returns True if a hypothesis is assigned to a sole sub-mesh in a current Study.
void SetEmbeddedMode(in boolean theMode)
Set the current mode.
SMESH_ParallelMesh CreateParallelMesh(in GEOM::GEOM_Object theObject)
Create a Mesh object, given a geometry shape.
SMESH_Pattern GetPattern()
Measurements CreateMeasurements()
SMESH_Hypothesis CreateHypothesisByAverageLength(in string theHypName, in string theLibName, in double theAverageLength, in boolean theQuadDominated)
Create a hypothesis and initialize it by average length.
void SetGeomEngine(in GEOM::GEOM_Gen geomcompo)
void UpdateStudy()
Update the study.
SMESH_Mesh CreateMesh(in GEOM::GEOM_Object theObject)
Create a Mesh object, given a geometry shape.
FilterManager CreateFilterManager()
SMESH_Hypothesis CreateHypothesis(in string theHypName, in string theLibName)
Create a hypothesis that can be shared by different parts of the mesh.
void AddToPythonScript(in string theCommand)
Manually add a command to the Python dump script.
void SetBoundaryBoxSegmentation(in long theNbSegments)
Sets number of segments per diagonal of boundary box of geometry by which default segment length of a...
SMESH_Mesh CreateEmptyMesh()
Create an empty mesh object.
SMESH_Hypothesis GetHypothesisParameterValues(in string theHypName, in string theLibName, in SMESH_Mesh theMesh, in GEOM::GEOM_Object theGeom, in HypInitParams theWay)
Return a hypothesis holding parameter values corresponding either to the mesh existing on the given g...
Definition: SMESH_Hypothesis.idl:45
Definition: SMESH_Mesh.idl:286
Definition: SMESH_Mesh.idl:338
Definition: SMESH_Mesh.idl:1127
SMESH_Pattern: interface of mesh pattern.
Definition: SMESH_Pattern.idl:42
bool CheckCompatibility(const std::string &fileName, bool isForAppend)
: Check read or write(append) Compatibility of a med file
Definition: MED_Factory.cxx:114
bool GetMEDVersion(const std::string &fileName, int &major, int &minor, int &release)
Definition: MED_Factory.cxx:150
Definition: MG_ADAPT.hxx:36
Definition: SMESH_Gen.idl:39
Definition: SMESH_ControlsClassifier.cxx:39
const long Tag_NodeGroups
Definition: SMESH_Gen.idl:78
const long Tag_SubMeshOnFace
Definition: SMESH_Gen.idl:71
const long Tag_FirstMeshRoot
Definition: SMESH_Gen.idl:61
const long Tag_SubMeshOnCompound
Definition: SMESH_Gen.idl:74
const long Tag_FirstSubMesh
Definition: SMESH_Gen.idl:67
const long Tag_SubMeshOnSolid
Definition: SMESH_Gen.idl:73
sequence< AlgoStateError > algo_error_array
Definition: SMESH_Gen.idl:96
Hypothesis_Status
Enumeration for hypothesis status (used by AddHypothesis() and RemoveHypothesis() methods)
Definition: SMESH_Mesh.idl:208
bool IsApplicable(const QString &aHypType, GEOM::GEOM_Object_ptr theGeomObject, const bool toCheckAll)
Definition: SMESHGUI_HypothesesUtils.cxx:617
const long Tag_FaceGroups
Definition: SMESH_Gen.idl:80
sequence< GEOM::GEOM_Object > object_array
Definition: SMESH_Gen.idl:46
sequence< SMESH_subMesh > submesh_array
Definition: SMESH_Mesh.idl:334
const long Tag_SubMeshOnVertex
Definition: SMESH_Gen.idl:68
sequence< SMESH_IDSource > ListOfIDSources
Definition: SMESH_Mesh.idl:41
const long Tag_RefOnShape
Definition: SMESH_Gen.idl:63
sequence< ComputeError > compute_error_array
Definition: SMESH_Gen.idl:125
sequence< smIdType > smIdType_array
Definition: SMESH_Mesh.idl:45
ComputeErrorName
Mesh computation error.
Definition: SMESH_Gen.idl:102
const long Tag_EdgeGroups
Definition: SMESH_Gen.idl:79
const long Tag_AlgorithmsRoot
Definition: SMESH_Gen.idl:60
const long Tag_SubMeshOnWire
Definition: SMESH_Gen.idl:70
Dimension
Definition: SMESH_Hypothesis.idl:35
const long Tag_RefOnAppliedHypothesis
Definition: SMESH_Gen.idl:64
const long Tag_LastGroup
Definition: SMESH_Gen.idl:84
const long Tag_FirstGroup
Definition: SMESH_Gen.idl:77
const long Tag_SubMeshOnEdge
Definition: SMESH_Gen.idl:69
ElementType
Enumeration for element type, like in SMDS.
Definition: SMESH_Mesh.idl:128
sequence< string > string_array
Definition: SMESH_Mesh.idl:46
sequence< SMESH_Hypothesis > ListOfHypothesis
Definition: SMESH_Mesh.idl:37
sequence< SMESH_GroupBase > ListOfGroups
Definition: SMESH_Mesh.idl:39
sequence< SMESH_Mesh > mesh_array
Definition: SMESH_Gen.idl:47
sequence< SALOMEDS::SObject > sobject_list
Definition: SMESH_Gen.idl:45
const long Tag_RefOnAppliedAlgorithms
Definition: SMESH_Gen.idl:65
const long Tag_BallElementsGroups
Definition: SMESH_Gen.idl:83
DriverMED_ReadStatus
Enumeration for mesh read status (used by SMESH_Gen::CreateMeshesFrom*() methods)
Definition: SMESH_Mesh.idl:231
const long Tag_0DElementsGroups
Definition: SMESH_Gen.idl:82
const long Tag_VolumeGroups
Definition: SMESH_Gen.idl:81
sequence< long > long_array
Definition: SMESH_Mesh.idl:44
const long Tag_HypothesisRoot
Tags definition.
Definition: SMESH_Gen.idl:59
const long Tag_LastSubMesh
Definition: SMESH_Gen.idl:75
const long Tag_SubMeshOnShell
Definition: SMESH_Gen.idl:72
Hypothesis definition error.
Definition: SMESH_Gen.idl:90
string algoName
Definition: SMESH_Gen.idl:92
long algoDim
Definition: SMESH_Gen.idl:93
Hypothesis_Status state
Definition: SMESH_Gen.idl:91
boolean isGlobalAlgo
Definition: SMESH_Gen.idl:94
Definition: SMESH_Gen.idl:118
short code
Definition: SMESH_Gen.idl:119
string comment
Definition: SMESH_Gen.idl:120
boolean hasBadMesh
Definition: SMESH_Gen.idl:123
string algoName
Definition: SMESH_Gen.idl:121
long subShapeID
Definition: SMESH_Gen.idl:122
Way to initialize hypothesis.
Definition: SMESH_Gen.idl:131
short way
Definition: SMESH_Gen.idl:132
double averageLength
Definition: SMESH_Gen.idl:133
boolean quadDominated
Definition: SMESH_Gen.idl:134
Structure containing mesh edit preview data.
Definition: SMESH_Mesh.idl:279