#include "SALOMEDS_Attributes.idl"
#include "SMESH_Mesh.idl"
+#include "SMESH_smIdType.idl"
module SMESH
{
/*!
* Returns the number of elements in the group
*/
- long Size();
+ smIdType Size();
/*!
* Returns true if the group does not contain any elements
/*!
* returns true if the group contains an element with ID == <elem_id>
*/
- boolean Contains( in long elem_id );
+ boolean Contains( in smIdType elem_id );
/*!
* Returns ID of an element at position <elem_index> counted from 1
*/
- long GetID( in long elem_index );
+ smIdType GetID( in smIdType elem_index );
/*!
* Returns a sequence of all element IDs in the group
* Get the number of nodes of cells included to the group
* For a nodal group returns the same value as Size() function
*/
- long GetNumberOfNodes();
+ smIdType GetNumberOfNodes();
/*!
* Get IDs of nodes of cells included to the group
* Sets group color number
* (corresponds to the "hue" parameter of the color - must be in range [0, 360])
*/
- void SetColorNumber( in long color );
+ void SetColorNumber( in smIdType color );
/*!
* Returns group color number (obsolete - use GetColor instead)
* (corresponds to the "hue" parameter of the color - must be in range [0, 360])
*/
- long GetColorNumber();
+ smIdType GetColorNumber();
/*!
* Returns \c true if \c this group depends on the \a other via
/*!
* Adds elements or nodes with specified identifiers to the group
*/
- long Add( in long_array elem_ids );
+ smIdType Add( in long_array elem_ids );
/*!
* Adds elements or nodes that match specified predicate to the group
*/
- long AddByPredicate( in Predicate thePredicate );
+ smIdType AddByPredicate( in Predicate thePredicate );
/*!
* Add all elements or nodes from the specified source to the group
*/
- long AddFrom( in SMESH_IDSource theSource );
+ smIdType AddFrom( in SMESH_IDSource theSource );
/*!
* Removes elements or nodes with specified identifiers from the group
*/
- long Remove( in long_array elem_ids );
+ smIdType Remove( in long_array elem_ids );
/*!
* Removes elements or nodes that match specified predicate from the group
*/
- long RemoveByPredicate( in Predicate thePredicate );
+ smIdType RemoveByPredicate( in Predicate thePredicate );
};