#include "SMESH_Mesh.idl"
#include "SMESH_Hypothesis.idl"
+#include "SMESH_smIdType.idl"
module SMESH
{
* Tags definition
*/
// Top level
- const long Tag_HypothesisRoot = 1; // hypotheses root
- const long Tag_AlgorithmsRoot = 2; // algorithms root
- const long Tag_FirstMeshRoot = 3; // first mesh root
+ const smIdType Tag_HypothesisRoot = 1; // hypotheses root
+ const smIdType Tag_AlgorithmsRoot = 2; // algorithms root
+ const smIdType Tag_FirstMeshRoot = 3; // first mesh root
// Mesh/Submesh
- const long Tag_RefOnShape = 1; // references to shape
- const long Tag_RefOnAppliedHypothesis = 2; // applied hypotheses root
- const long Tag_RefOnAppliedAlgorithms = 3; // applied algorithms root
+ const smIdType Tag_RefOnShape = 1; // references to shape
+ const smIdType Tag_RefOnAppliedHypothesis = 2; // applied hypotheses root
+ const smIdType Tag_RefOnAppliedAlgorithms = 3; // applied algorithms root
// Mesh only: sub-meshes roots by type
- const long Tag_FirstSubMesh = 4;
- const long Tag_SubMeshOnVertex = 4;
- const long Tag_SubMeshOnEdge = 5;
- const long Tag_SubMeshOnWire = 6;
- const long Tag_SubMeshOnFace = 7;
- const long Tag_SubMeshOnShell = 8;
- const long Tag_SubMeshOnSolid = 9;
- const long Tag_SubMeshOnCompound = 10;
- const long Tag_LastSubMesh = 10;
+ const smIdType Tag_FirstSubMesh = 4;
+ const smIdType Tag_SubMeshOnVertex = 4;
+ const smIdType Tag_SubMeshOnEdge = 5;
+ const smIdType Tag_SubMeshOnWire = 6;
+ const smIdType Tag_SubMeshOnFace = 7;
+ const smIdType Tag_SubMeshOnShell = 8;
+ const smIdType Tag_SubMeshOnSolid = 9;
+ const smIdType Tag_SubMeshOnCompound = 10;
+ const smIdType Tag_LastSubMesh = 10;
// Mesh only: group roots by type
- const long Tag_FirstGroup = 11;
- const long Tag_NodeGroups = 11;
- const long Tag_EdgeGroups = 12;
- const long Tag_FaceGroups = 13;
- const long Tag_VolumeGroups = 14;
- const long Tag_0DElementsGroups = 15;
- const long Tag_BallElementsGroups = 16;
- const long Tag_LastGroup = 16;
+ const smIdType Tag_FirstGroup = 11;
+ const smIdType Tag_NodeGroups = 11;
+ const smIdType Tag_EdgeGroups = 12;
+ const smIdType Tag_FaceGroups = 13;
+ const smIdType Tag_VolumeGroups = 14;
+ const smIdType Tag_0DElementsGroups = 15;
+ const smIdType Tag_BallElementsGroups = 16;
+ const smIdType Tag_LastGroup = 16;
/*!
* Hypothesis definition error
{
Hypothesis_Status state;
string algoName;
- long algoDim;
+ smIdType algoDim;
boolean isGlobalAlgo;
};
typedef sequence<AlgoStateError> algo_error_array;
* Sets number of segments per diagonal of boundary box of geometry by which
* default segment length of appropriate 1D hypotheses is defined
*/
- void SetBoundaryBoxSegmentation( in long theNbSegments ) raises ( SALOME::SALOME_Exception );
+ void SetBoundaryBoxSegmentation( in smIdType theNbSegments ) raises ( SALOME::SALOME_Exception );
/*!
* \brief Sets default number of segments per edge
*/
- void SetDefaultNbSegments( in long theNbSegments) raises ( SALOME::SALOME_Exception );
+ void SetDefaultNbSegments( in smIdType theNbSegments) raises ( SALOME::SALOME_Exception );
/*!
* Set the object name
* study or is published by this method with the given name
*/
GEOM::GEOM_Object GetGeometryByMeshElement( in SMESH_Mesh theMesh,
- in long theElementID,
+ in smIdType theElementID,
in string theGeomName)
raises ( SALOME::SALOME_Exception );
* The returned geometrical object not published in study by this method.
*/
GEOM::GEOM_Object FindGeometryByMeshElement( in SMESH_Mesh theMesh,
- in long theElementID)
+ in smIdType theElementID)
raises ( SALOME::SALOME_Exception );
/*!
*
* Can be used to check if the object was created in the same container, as this engine.
*/
- long GetObjectId(in Object theObject);
+ smIdType GetObjectId(in Object theObject);
/*!
* \brief Get version of MED format being used.
*/
void Move( in sobject_list what,
in SALOMEDS::SObject where,
- in long row );
+ in smIdType row );
/*!
* Returns true if algorithm can be used to mesh a given geometry
* \param theAlgoType - the algorithm type