mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-02 21:00:34 +05:00
PAL16842 (Genertion of groups when a mesh is transformed)
+ typedef boost::shared_ptr< SMDS_Iterator<SMESH_Group*> > GroupIteratorPtr; + GroupIteratorPtr GetGroups() const;
This commit is contained in:
parent
ee723494fa
commit
117656acc5
@ -37,6 +37,7 @@
|
||||
#include "SMESHDS_GroupOnGeom.hxx"
|
||||
#include "SMESHDS_Document.hxx"
|
||||
#include "SMDS_MeshVolume.hxx"
|
||||
#include "SMDS_SetIterator.hxx"
|
||||
|
||||
#include "utilities.h"
|
||||
|
||||
@ -1228,9 +1229,21 @@ SMESH_Group* SMESH_Mesh::AddGroup (const SMDSAbs_ElementType theType,
|
||||
return aGroup;
|
||||
}
|
||||
|
||||
//================================================================================
|
||||
/*!
|
||||
* \brief Return iterator on all existing groups
|
||||
*/
|
||||
//================================================================================
|
||||
|
||||
SMESH_Mesh::GroupIteratorPtr SMESH_Mesh::GetGroups() const
|
||||
{
|
||||
typedef map <int, SMESH_Group *> TMap;
|
||||
return GroupIteratorPtr( new SMDS_mapIterator<TMap>( _mapGroup ));
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
/*!
|
||||
*
|
||||
* \brief Return a group by ID
|
||||
*/
|
||||
//=============================================================================
|
||||
|
||||
@ -1244,11 +1257,11 @@ SMESH_Group* SMESH_Mesh::GetGroup (const int theGroupID)
|
||||
|
||||
//=============================================================================
|
||||
/*!
|
||||
*
|
||||
* \brief Return IDs of all groups
|
||||
*/
|
||||
//=============================================================================
|
||||
|
||||
list<int> SMESH_Mesh::GetGroupIds()
|
||||
list<int> SMESH_Mesh::GetGroupIds() const
|
||||
{
|
||||
list<int> anIds;
|
||||
for ( map<int, SMESH_Group*>::const_iterator it = _mapGroup.begin(); it != _mapGroup.end(); it++ )
|
||||
|
@ -217,13 +217,16 @@ public:
|
||||
int& theId,
|
||||
const TopoDS_Shape& theShape=TopoDS_Shape());
|
||||
|
||||
typedef boost::shared_ptr< SMDS_Iterator<SMESH_Group*> > GroupIteratorPtr;
|
||||
GroupIteratorPtr GetGroups() const;
|
||||
|
||||
std::list<int> GetGroupIds() const;
|
||||
|
||||
SMESH_Group* GetGroup (const int theGroupID);
|
||||
|
||||
std::list<int> GetGroupIds();
|
||||
|
||||
|
||||
void RemoveGroup (const int theGroupID);
|
||||
|
||||
|
||||
|
||||
SMDSAbs_ElementType GetElementType( const int id, const bool iselem );
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user