VTK  9.3.1
vtkDataSetTriangleFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
25 #ifndef vtkDataSetTriangleFilter_h
26 #define vtkDataSetTriangleFilter_h
27 
28 #include "vtkFiltersGeneralModule.h" // For export macro
30 
31 VTK_ABI_NAMESPACE_BEGIN
33 
34 class VTKFILTERSGENERAL_EXPORT vtkDataSetTriangleFilter : public vtkUnstructuredGridAlgorithm
35 {
36 public:
37  static vtkDataSetTriangleFilter* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
46  vtkSetMacro(TetrahedraOnly, vtkTypeBool);
47  vtkGetMacro(TetrahedraOnly, vtkTypeBool);
48  vtkBooleanMacro(TetrahedraOnly, vtkTypeBool);
50 
51 protected:
53  ~vtkDataSetTriangleFilter() override;
54 
55  // Usual data generation method
57 
59 
60  // Used to triangulate 3D cells
62 
63  // Different execute methods depending on whether input is structured or not
64  void StructuredExecute(vtkDataSet*, vtkUnstructuredGrid*);
65  void UnstructuredExecute(vtkDataSet*, vtkUnstructuredGrid*);
66 
68 
69 private:
71  void operator=(const vtkDataSetTriangleFilter&) = delete;
72 };
73 
74 VTK_ABI_NAMESPACE_END
75 #endif
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:52
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:64
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:28
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.