VTK  9.3.0
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
34#ifndef vtkDataSetTriangleFilter_h
35#define vtkDataSetTriangleFilter_h
36
37#include "vtkFiltersGeneralModule.h" // For export macro
39
40VTK_ABI_NAMESPACE_BEGIN
42
43class VTKFILTERSGENERAL_EXPORT vtkDataSetTriangleFilter : public vtkUnstructuredGridAlgorithm
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
55 vtkSetMacro(TetrahedraOnly, vtkTypeBool);
56 vtkGetMacro(TetrahedraOnly, vtkTypeBool);
57 vtkBooleanMacro(TetrahedraOnly, vtkTypeBool);
59
60protected:
63
64 // Usual data generation method
66
67 int FillInputPortInformation(int port, vtkInformation* info) override;
68
69 // Used to triangulate 3D cells
71
72 // Different execute methods depending on whether input is structured or not
75
77
78private:
80 void operator=(const vtkDataSetTriangleFilter&) = delete;
81};
82
83VTK_ABI_NAMESPACE_END
84#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:62
a simple class to control print indentation
Definition vtkIndent.h:38
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