VMTK
Loading...
Searching...
No Matches
vtkvmtkUnstructuredGridTetraFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
28
29#ifndef __vtkvmtkUnstructuredGridTetraFilter_h
30#define __vtkvmtkUnstructuredGridTetraFilter_h
31
32#include "vtkUnstructuredGridAlgorithm.h"
33#include "vtkvmtkWin32Header.h"
34
35class vtkOrderedTriangulator;
36class vtkIdList;
37
38class VTK_VMTK_MISC_EXPORT vtkvmtkUnstructuredGridTetraFilter : public vtkUnstructuredGridAlgorithm
39{
40public:
42 vtkTypeMacro(vtkvmtkUnstructuredGridTetraFilter,vtkUnstructuredGridAlgorithm);
43 void PrintSelf(std::ostream& os, vtkIndent indent) override;
44
46
50 vtkSetMacro(TetrahedraOnly, int);
51 vtkGetMacro(TetrahedraOnly, int);
52 vtkBooleanMacro(TetrahedraOnly, int);
54
55protected:
58
59 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
60
61 int TriangulateQuad(vtkUnstructuredGrid* output, vtkIdList *quadPtIds, vtkIdList *ptIds);
62
63 vtkOrderedTriangulator *Triangulator;
64
65 void Execute(vtkUnstructuredGrid *, vtkUnstructuredGrid *);
66
68
69private:
71 void operator=(const vtkvmtkUnstructuredGridTetraFilter&); // Not implemented.
72};
73
74#endif
75
static vtkvmtkUnstructuredGridTetraFilter * New()
int TriangulateQuad(vtkUnstructuredGrid *output, vtkIdList *quadPtIds, vtkIdList *ptIds)
void Execute(vtkUnstructuredGrid *, vtkUnstructuredGrid *)
void PrintSelf(std::ostream &os, vtkIndent indent) override
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override