replaced DeletePoint with DeletePoint_2
[engrid.git] / vtkEgExtractVolumeCells.h
blob6cb10d31ca334ae2563a27fa911274a4485934a1
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 __vtkEgExtractVolumeCells_h
24 #define __vtkEgExtractVolumeCells_h
26 class vtkEgExtractVolumeCells;
28 #include "vtkEgGridFilter.h"
30 class vtkEgExtractVolumeCells : public vtkEgGridFilter
33 protected: // attributes
35 bool Clip;
36 vec3_t X;
37 vec3_t N;
38 bool tetra;
39 bool hexa;
40 bool wedge;
41 bool pyramid;
43 public: // methods
45 static vtkEgExtractVolumeCells* New();
46 void SetX(vec3_t x) { X = x; Modified(); };
47 void SetN(vec3_t n) { N = n; Modified(); };
48 void SetClippingOn() { Clip = true; Modified(); };
49 void SetClippingOff() { Clip = false; Modified(); };
50 void SetAllOn() { tetra = true; hexa = true; wedge = true; pyramid = true; };
51 void SetAllOff() { tetra = false; hexa = false; wedge = false; pyramid = false; };
52 void SetTetrasOn() { tetra = true; };
53 void SetTetrasOff() { tetra = false; };
54 void SetPyramidsOn() { pyramid = true; };
55 void SetPyramidsOff() { pyramid = false; };
56 void SetWedgesOn() { wedge = true; };
57 void SetWedgesOff() { wedge = false; };
58 void SetHexasOn() { hexa = true; };
59 void SetHexasOff() { hexa = false; };
61 protected: // methods
63 vtkEgExtractVolumeCells();
64 ~vtkEgExtractVolumeCells() {};
65 virtual void ExecuteEg();
67 private: // methods
69 vtkEgExtractVolumeCells (const vtkEgExtractVolumeCells&);
70 void operator= (const vtkEgExtractVolumeCells&);
74 #endif