VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filters
General
vtkDataSetTriangleFilter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkDataSetTriangleFilter.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
39
#ifndef __vtkDataSetTriangleFilter_h
40
#define __vtkDataSetTriangleFilter_h
41
42
#include "vtkFiltersGeneralModule.h"
// For export macro
43
#include "
vtkUnstructuredGridAlgorithm.h
"
44
45
class
vtkOrderedTriangulator
;
46
47
class
VTKFILTERSGENERAL_EXPORT
vtkDataSetTriangleFilter
:
public
vtkUnstructuredGridAlgorithm
48
{
49
public
:
50
static
vtkDataSetTriangleFilter
*
New
();
51
vtkTypeMacro(
vtkDataSetTriangleFilter
,
vtkUnstructuredGridAlgorithm
);
52
void
PrintSelf
(ostream& os,
vtkIndent
indent);
53
55
57
vtkSetMacro(TetrahedraOnly,
int
);
58
vtkGetMacro(TetrahedraOnly,
int
);
59
vtkBooleanMacro(TetrahedraOnly,
int
);
61
62
protected
:
63
vtkDataSetTriangleFilter
();
64
~
vtkDataSetTriangleFilter
();
65
66
// Usual data generation method
67
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
68
69
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
70
71
// Used to triangulate 3D cells
72
vtkOrderedTriangulator
*
Triangulator
;
73
74
// Different execute methods depending on whether input is structured or not
75
void
StructuredExecute(
vtkDataSet
*,
vtkUnstructuredGrid
*);
76
void
UnstructuredExecute(
vtkDataSet
*,
vtkUnstructuredGrid
*);
77
78
int
TetrahedraOnly
;
79
80
private
:
81
vtkDataSetTriangleFilter
(
const
vtkDataSetTriangleFilter
&);
// Not implemented.
82
void
operator=(
const
vtkDataSetTriangleFilter
&);
// Not implemented.
83
};
84
85
#endif
86
87
Generated on Thu May 24 2012 22:22:15 for VTK by
1.8.1