2 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 // + This file is part of enGrid. +
6 // + Copyright 2008-2013 enGits GmbH +
8 // + enGrid is free software: you can redistribute it and/or modify +
9 // + it under the terms of the GNU General Public License as published by +
10 // + the Free Software Foundation, either version 3 of the License, or +
11 // + (at your option) any later version. +
13 // + enGrid is distributed in the hope that it will be useful, +
14 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
15 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
16 // + GNU General Public License for more details. +
18 // + You should have received a copy of the GNU General Public License +
19 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
21 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28 #include "operation.h"
30 class Iterator
: public Operation
33 private: // attributes
35 protected: // attributes
46 /** array used to mark item for the next iteration loop. */
49 /** array used to marked "finished" items */
52 QVector
<vtkIdType
> item
;
54 bool volume_iteration
;
55 bool custom_iteration
;
57 QVector
<vtkIdType
> cells
;
58 QVector
<vtkIdType
> nodes
;
61 QVector
<QSet
<int> > n2c
;
62 QVector
<QSet
<int> > n2n
;
63 QVector
<QVector
<int> > c2c
;
69 virtual void pass2() {}
76 void setVolumeIteration() { volume_iteration
= true; }
77 void setSurfaceIteration() { volume_iteration
= false; }