VTK
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 
43 
45 
47 {
48 public:
49  static vtkDataSetTriangleFilter *New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
56  vtkSetMacro(TetrahedraOnly, int);
57  vtkGetMacro(TetrahedraOnly, int);
58  vtkBooleanMacro(TetrahedraOnly, int);
60 
61 protected:
64 
65  // Usual data generation method
67 
69 
70  // Used to triangulate 3D cells
72 
73  // Different execute methods depending on whether input is structured or not
74  void StructuredExecute(vtkDataSet *, vtkUnstructuredGrid *);
75  void UnstructuredExecute(vtkDataSet *, vtkUnstructuredGrid *);
76 
78 
79 private:
80  vtkDataSetTriangleFilter(const vtkDataSetTriangleFilter&); // Not implemented.
81  void operator=(const vtkDataSetTriangleFilter&); // Not implemented.
82 };
83 
84 #endif
85 
86 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_GRAPHICS_EXPORT
Store vtkAlgorithm input/output information.
vtkOrderedTriangulator * Triangulator
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
static vtkUnstructuredGridAlgorithm * New()
helper class to generate triangulations
virtual int FillInputPortInformation(int port, vtkInformation *info)
triangulate any type of dataset
a simple class to control print indentation
Definition: vtkIndent.h:37
dataset represents arbitrary combinations of all possible cell types
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.