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