mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-05 06:10:33 +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_GroupOnGeom.hxx"
|
||||||
#include "SMESHDS_Document.hxx"
|
#include "SMESHDS_Document.hxx"
|
||||||
#include "SMDS_MeshVolume.hxx"
|
#include "SMDS_MeshVolume.hxx"
|
||||||
|
#include "SMDS_SetIterator.hxx"
|
||||||
|
|
||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
|
|
||||||
@ -1228,9 +1229,21 @@ SMESH_Group* SMESH_Mesh::AddGroup (const SMDSAbs_ElementType theType,
|
|||||||
return aGroup;
|
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;
|
list<int> anIds;
|
||||||
for ( map<int, SMESH_Group*>::const_iterator it = _mapGroup.begin(); it != _mapGroup.end(); it++ )
|
for ( map<int, SMESH_Group*>::const_iterator it = _mapGroup.begin(); it != _mapGroup.end(); it++ )
|
||||||
|
@ -217,13 +217,16 @@ public:
|
|||||||
int& theId,
|
int& theId,
|
||||||
const TopoDS_Shape& theShape=TopoDS_Shape());
|
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);
|
SMESH_Group* GetGroup (const int theGroupID);
|
||||||
|
|
||||||
std::list<int> GetGroupIds();
|
|
||||||
|
|
||||||
void RemoveGroup (const int theGroupID);
|
void RemoveGroup (const int theGroupID);
|
||||||
|
|
||||||
|
|
||||||
SMDSAbs_ElementType GetElementType( const int id, const bool iselem );
|
SMDSAbs_ElementType GetElementType( const int id, const bool iselem );
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user