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 =========================================================================*/
40 #ifndef vtkDataSetTriangleFilter_h
41 #define vtkDataSetTriangleFilter_h
42 
43 #include "vtkFiltersGeneralModule.h" // For export macro
45 
47 
48 class VTKFILTERSGENERAL_EXPORT vtkDataSetTriangleFilter : public vtkUnstructuredGridAlgorithm
49 {
50 public:
51  static vtkDataSetTriangleFilter *New();
53  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
54 
56 
60  vtkSetMacro(TetrahedraOnly, int);
61  vtkGetMacro(TetrahedraOnly, int);
62  vtkBooleanMacro(TetrahedraOnly, int);
64 
65 protected:
67  ~vtkDataSetTriangleFilter() VTK_OVERRIDE;
68 
69  // Usual data generation method
70  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
71 
72  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
73 
74  // Used to triangulate 3D cells
75  vtkOrderedTriangulator *Triangulator;
76 
77  // Different execute methods depending on whether input is structured or not
78  void StructuredExecute(vtkDataSet *, vtkUnstructuredGrid *);
79  void UnstructuredExecute(vtkDataSet *, vtkUnstructuredGrid *);
80 
81  int TetrahedraOnly;
82 
83 private:
84  vtkDataSetTriangleFilter(const vtkDataSetTriangleFilter&) VTK_DELETE_FUNCTION;
85  void operator=(const vtkDataSetTriangleFilter&) VTK_DELETE_FUNCTION;
86 };
87 
88 #endif
89 
90 
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkDataSetTriangleFilter
triangulate any type of dataset
Definition: vtkDataSetTriangleFilter.h:48
vtkOrderedTriangulator
helper class to generate triangulations
Definition: vtkOrderedTriangulator.h:117
vtkX3D::port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
Definition: vtkX3D.h:376
vtkUnstructuredGridAlgorithm::New
static vtkUnstructuredGridAlgorithm * New()
vtkUnstructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:81