Added getNeighbours functions to class Operation + moved UpdateMeshDensity to class...
[engrid.git] / vtkEgGridFilter.h
blob3704229e92489c29cba5d25ff759fe6d4454cd82
1 //
2 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 // + +
4 // + This file is part of enGrid. +
5 // + +
6 // + Copyright 2008,2009 Oliver Gloth +
7 // + +
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. +
12 // + +
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. +
17 // + +
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/>. +
20 // + +
21 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23 #ifndef __vtkEgGridFilter_h
24 #define __vtkEgGridFilter_h
26 class vtkEgGridFilter;
28 #include <vtkUnstructuredGridAlgorithm.h>
29 #include <vtkUnstructuredGrid.h>
30 #include <vtkIntArray.h>
31 #include <vtkLongArray.h>
32 #include <vtkDoubleArray.h>
33 #include <vtkCellData.h>
34 #include <vtkCellType.h>
35 #include <vtkCellLinks.h>
36 #include <vtkObjectFactory.h>
38 #include <QSet>
39 #include <QVector>
41 #include "engrid.h"
42 #include "egvtkobject.h"
44 class vtkEgGridFilter : public vtkUnstructuredGridAlgorithm, public EgVtkObject
47 protected: // attributes
49 QSet<int> *BoundaryCodes;
50 vtkUnstructuredGrid *input;
51 vtkUnstructuredGrid *output;
53 protected: // methods
55 vtkEgGridFilter();
56 ~vtkEgGridFilter() {};
58 virtual int FillInputPortInformation
60 int,
61 vtkInformation* info
64 virtual int FillOutputPortInformation
66 int,
67 vtkInformation* info
70 virtual int RequestData
72 vtkInformation*,
73 vtkInformationVector** inputVector,
74 vtkInformationVector* outputVector
77 virtual void ExecuteEg() = 0;
79 /**
80 * Extract boundary elements and nodes with a given set of boundary conditions
81 * @param cells On return, this will contain the indexes of the extracted boundary elements.
82 * @param modes On return, this will contain the indexes of the extracted boundary nodes.
83 * @param grid The grid to operate on.
84 * @param bc A set of the boundary conditions to extract.
86 void ExtractBoundary
88 QVector<vtkIdType> &cells,
89 QVector<vtkIdType> &nodes,
90 QSet<int> &bc,
91 vtkUnstructuredGrid *grid
94 public: // methods
96 void SetBoundaryCodes(QSet<int> *bc);
100 #endif