Version: 9.16.0
SMESH_MeshPartDS.hxx
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Lesser General Public
8// License as published by the Free Software Foundation; either
9// version 2.1 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19//
20// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21//
22// File : SMESH_MeshPartDS.hxx
23// Created : Thu Sep 13 20:26:47 2012
24// Author : Edward AGAPOV (eap)
25
26#ifndef __SMESH_MeshPartDS_HXX__
27#define __SMESH_MeshPartDS_HXX__
28
29#include "SMESHDS_Mesh.hxx"
30#include "SMESH_TypeDefs.hxx"
31#include <smIdType.hxx>
32
33#include <SALOMEconfig.h>
34#include CORBA_SERVER_HEADER(SMESH_Mesh)
35
36#include <list>
37
38//=============================================================================
43// Implementation is in SMESH_Mesh_i.cxx where this class was extracted from
44
46{
47public:
48 SMESH_MeshPartDS(SMESH::SMESH_IDSource_ptr meshPart);
49 SMESH_MeshPartDS(const std::list< const SMDS_MeshElement* > & badElems );
50
51 virtual SMDS_NodeIteratorPtr nodesIterator () const;
52 virtual SMDS_EdgeIteratorPtr edgesIterator () const;
53 virtual SMDS_FaceIteratorPtr facesIterator () const;
55
59
60 virtual const SMDS_MeshElement *FindElement(int IDelem) const;
61
62 virtual bool HasNumerationHoles();
63 virtual smIdType MaxNodeID() const;
64 virtual smIdType MinNodeID() const;
65 virtual smIdType MaxElementID() const;
66 virtual smIdType MinElementID() const;
67
68private:
71};
72
73#endif
SMDSAbs_GeometryType
enumeration for element geometry type
Definition: SMDSAbs_ElementType.hxx:47
SMDSAbs_ElementType
Type (node, edge, face or volume) of elements.
Definition: SMDSAbs_ElementType.hxx:34
@ SMDSAbs_NbElementTypes
Definition: SMDSAbs_ElementType.hxx:42
@ SMDSAbs_All
Definition: SMDSAbs_ElementType.hxx:35
SMDSAbs_EntityType
Enumeration of entity type used in mesh info array.
Definition: SMDSAbs_ElementType.hxx:79
boost::shared_ptr< SMDS_Iterator< const SMDS_MeshElement * > > SMDS_ElemIteratorPtr
Definition: SMDS_ElemIterator.hxx:43
boost::shared_ptr< SMDS_Iterator< const SMDS_MeshVolume * > > SMDS_VolumeIteratorPtr
Definition: SMDS_ElemIterator.hxx:58
boost::shared_ptr< SMDS_Iterator< const SMDS_MeshEdge * > > SMDS_EdgeIteratorPtr
Definition: SMDS_ElemIterator.hxx:52
boost::shared_ptr< SMDS_Iterator< const SMDS_MeshNode * > > SMDS_NodeIteratorPtr
Definition: SMDS_ElemIterator.hxx:46
boost::shared_ptr< SMDS_Iterator< const SMDS_MeshFace * > > SMDS_FaceIteratorPtr
Definition: SMDS_ElemIterator.hxx:55
std::set< const SMDS_MeshElement *, TIDCompare > TIDSortedElemSet
Definition: SMESH_TypeDefs.hxx:58
Base class for elements.
Definition: SMDS_MeshElement.hxx:56
Definition: SMESHDS_Mesh.hxx:98
Class providing SMESHDS_Mesh API to SMESH_IDSource.
Definition: SMESH_MeshPartDS.hxx:46
virtual SMDS_ElemIteratorPtr elementGeomIterator(SMDSAbs_GeometryType type) const
Definition: SMESH_Mesh_i.cxx:7408
SMESHDS_Mesh * _meshDS
Definition: SMESH_MeshPartDS.hxx:70
virtual const SMDS_MeshElement * FindElement(int IDelem) const
Definition: SMESH_Mesh_i.cxx:7351
virtual SMDS_VolumeIteratorPtr volumesIterator() const
Return an iterator on volumes of the current mesh.
Definition: SMESH_Mesh_i.cxx:7474
virtual SMDS_EdgeIteratorPtr edgesIterator() const
Return an iterator on edges of the current mesh.
Definition: SMESH_Mesh_i.cxx:7472
virtual SMDS_FaceIteratorPtr facesIterator() const
Return an iterator on faces of the current mesh.
Definition: SMESH_Mesh_i.cxx:7473
virtual smIdType MinNodeID() const
Definition: SMESH_Mesh_i.cxx:7382
SMESH_MeshPartDS(SMESH::SMESH_IDSource_ptr meshPart)
Definition: SMESH_Mesh_i.cxx:7275
virtual smIdType MinElementID() const
Definition: SMESH_Mesh_i.cxx:7398
virtual smIdType MaxElementID() const
Definition: SMESH_Mesh_i.cxx:7388
TIDSortedElemSet _elements[SMDSAbs_NbElementTypes]
Definition: SMESH_MeshPartDS.hxx:69
virtual SMDS_NodeIteratorPtr nodesIterator() const
Return an iterator on nodes of the current mesh factory.
Definition: SMESH_Mesh_i.cxx:7471
virtual bool HasNumerationHoles()
are there holes in elements or nodes numeration
Definition: SMESH_Mesh_i.cxx:7366
virtual SMDS_ElemIteratorPtr elementEntityIterator(SMDSAbs_EntityType type) const
Definition: SMESH_Mesh_i.cxx:7426
virtual SMDS_ElemIteratorPtr elementsIterator(SMDSAbs_ElementType type=SMDSAbs_All) const
Return an iterator on elements of the current mesh factory.
Definition: SMESH_Mesh_i.cxx:7444
virtual smIdType MaxNodeID() const
Definition: SMESH_Mesh_i.cxx:7376