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 =========================================================================*/
37 #ifndef vtkDataSetTriangleFilter_h
38 #define vtkDataSetTriangleFilter_h
39 
40 #include "vtkFiltersGeneralModule.h" // For export macro
42 
44 
45 class VTKFILTERSGENERAL_EXPORT vtkDataSetTriangleFilter : public vtkUnstructuredGridAlgorithm
46 {
47 public:
48  static vtkDataSetTriangleFilter *New();
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
57  vtkSetMacro(TetrahedraOnly, vtkTypeBool);
58  vtkGetMacro(TetrahedraOnly, vtkTypeBool);
59  vtkBooleanMacro(TetrahedraOnly, vtkTypeBool);
61 
62 protected:
64  ~vtkDataSetTriangleFilter() override;
65 
66  // Usual data generation method
68 
70 
71  // Used to triangulate 3D cells
73 
74  // Different execute methods depending on whether input is structured or not
75  void StructuredExecute(vtkDataSet *, vtkUnstructuredGrid *);
76  void UnstructuredExecute(vtkDataSet *, vtkUnstructuredGrid *);
77 
79 
80 private:
82  void operator=(const vtkDataSetTriangleFilter&) = delete;
83 };
84 
85 #endif
86 
87 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store vtkAlgorithm input/output information.
vtkOrderedTriangulator * Triangulator
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
static vtkUnstructuredGridAlgorithm * New()
helper class to generate triangulations
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int vtkTypeBool
Definition: vtkABI.h:69
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
triangulate any type of dataset
a simple class to control print indentation
Definition: vtkIndent.h:39
dataset represents arbitrary combinations of all possible cell types
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.