Salome HOME
PR: mesh and visu hexa no copy
[modules/smesh.git] / src / SMDS / SMDS_VtkCellIterator.hxx
1 #ifndef _SMDS_VTKCELLITERATOR_HXX_
2 #define _SMDS_VTKCELLITERATOR_HXX_
3
4 #include "SMDS_ElemIterator.hxx"
5 #include "SMDS_Mesh.hxx"
6 #include "SMDSAbs_ElementType.hxx"
7
8 #include <vtkCell.h>
9 #include <vtkIdList.h>
10
11 class SMDS_VtkCellIterator : public SMDS_ElemIterator
12 {
13 public:
14   SMDS_VtkCellIterator(SMDS_Mesh* mesh, int vtkCellId, SMDSAbs_EntityType aType);
15   virtual ~SMDS_VtkCellIterator();
16   virtual bool more();
17   virtual const SMDS_MeshElement* next();
18 protected:
19   SMDS_Mesh* _mesh;
20   int _cellId;
21   int _index;
22   int _nbNodes;
23   SMDSAbs_EntityType _type;
24   vtkIdList* _vtkIdList;
25 };
26
27 #endif