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
25#ifndef vtkDataSetTriangleFilter_h
26#define vtkDataSetTriangleFilter_h
27
28#include "vtkFiltersGeneralModule.h" // For export macro
30
31VTK_ABI_NAMESPACE_BEGIN
33
34class VTKFILTERSGENERAL_EXPORT vtkDataSetTriangleFilter : public vtkUnstructuredGridAlgorithm
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
46 vtkSetMacro(TetrahedraOnly, vtkTypeBool);
47 vtkGetMacro(TetrahedraOnly, vtkTypeBool);
48 vtkBooleanMacro(TetrahedraOnly, vtkTypeBool);
50
51protected:
54
55 // Usual data generation method
57
58 int FillInputPortInformation(int port, vtkInformation* info) override;
59
60 // Used to triangulate 3D cells
62
63 // Different execute methods depending on whether input is structured or not
66
68
69private:
71 void operator=(const vtkDataSetTriangleFilter&) = delete;
72};
73
74VTK_ABI_NAMESPACE_END
75#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:53
a simple class to control print indentation
Definition vtkIndent.h:29
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