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 );
243 raises ( SALOME::SALOME_Exception );
254 raises ( SALOME::SALOME_Exception );
259 raises ( SALOME::SALOME_Exception );
266 raises ( SALOME::SALOME_Exception );
273 raises ( SALOME::SALOME_Exception );
279 raises ( SALOME::SALOME_Exception );
286 raises ( SALOME::SALOME_Exception );
294 in
boolean theMakeRequiredGroups,
296 raises ( SALOME::SALOME_Exception );
305 in
boolean adaptToShape)
306 raises ( SALOME::SALOME_Exception );
318 in
boolean toCopyGroups,
319 in
boolean toKeepIDs)
320 raises ( SALOME::SALOME_Exception );
341 in GEOM::GEOM_Object newGeometry,
343 in
boolean toCopyGroups,
344 in
boolean toReuseHypotheses,
345 in
boolean toCopyElements,
351 raises ( SALOME::SALOME_Exception );
362 in
boolean theUniteIdenticalGroups,
363 in
boolean theMergeNodesAndElements,
364 in
double theMergeTolerance,
366 raises ( SALOME::SALOME_Exception );
378 in
boolean theUniteIdenticalGroups,
379 in
boolean theMergeNodesAndElements,
380 in
double theMergeTolerance,
382 raises ( SALOME::SALOME_Exception );
390 in GEOM::GEOM_Object theSubObject )
391 raises ( SALOME::SALOME_Exception );
397 in GEOM::GEOM_Object theSubObject );
403 in GEOM::GEOM_Object theSubObject )
404 raises ( SALOME::SALOME_Exception );
410 in GEOM::GEOM_Object theSubObject)
411 raises ( SALOME::SALOME_Exception );
419 in GEOM::GEOM_Object theSubObject,
422 raises ( SALOME::SALOME_Exception );
429 in GEOM::GEOM_Object theSubObject )
430 raises ( SALOME::SALOME_Exception );
437 in GEOM::GEOM_Object theSubObject )
438 raises ( SALOME::SALOME_Exception );
444 in
short theSubShapeID )
445 raises ( SALOME::SALOME_Exception );
451 in
short theSubShapeID,
452 in
string theGroupName)
453 raises ( SALOME::SALOME_Exception );
459 long_array GetSubShapesId( in GEOM::GEOM_Object theMainObject,
461 raises ( SALOME::SALOME_Exception );
468 GEOM::GEOM_Object GetGeometryByMeshElement( in
SMESH_Mesh theMesh,
469 in smIdType theElementID,
470 in
string theGeomName)
471 raises ( SALOME::SALOME_Exception );
477 GEOM::GEOM_Object FindGeometryByMeshElement( in
SMESH_Mesh theMesh,
478 in smIdType theElementID)
479 raises ( SALOME::SALOME_Exception );
486 long GetObjectId(in Object theObject);
491 string GetMEDFileVersion();
506 boolean CheckWriteCompatibility(in
string theFileName);
522 in SALOMEDS::SObject where,
533 in
string theLibName,
534 in GEOM::GEOM_Object theShapeObject,
535 in
boolean toCheckAll );
605 in GEOM::GEOM_Object theGeom,
606 in
double theTolerance );
609 SMESHHOMARD::HOMARD_Gen CreateHOMARD_ADAPT() raises ( SALOME::SALOME_Exception );
611 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:1196
Definition: SMESH_Homard.idl:108
Interface of Filter manager.
Definition: SMESH_Filter.idl:581
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.
boolean IsEnablePublish()
Get enable publishing in the study.
boolean IsEmbeddedMode()
Get the current mode.
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 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:1106
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_ControlsDef.hxx:64
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:332
const long Tag_SubMeshOnVertex
Definition: SMESH_Gen.idl:68
sequence< SMESH_IDSource > ListOfIDSources
Definition: SMESH_Mesh.idl:40
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:36
sequence< SMESH_GroupBase > ListOfGroups
Definition: SMESH_Mesh.idl:38
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