VTK  9.1.0
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=========================================================================*/
43#ifndef vtkDataSetTriangleFilter_h
44#define vtkDataSetTriangleFilter_h
45
46#include "vtkFiltersGeneralModule.h" // For export macro
48
50
51class VTKFILTERSGENERAL_EXPORT vtkDataSetTriangleFilter : public vtkUnstructuredGridAlgorithm
52{
53public:
56 void PrintSelf(ostream& os, vtkIndent indent) override;
57
59
63 vtkSetMacro(TetrahedraOnly, vtkTypeBool);
64 vtkGetMacro(TetrahedraOnly, vtkTypeBool);
65 vtkBooleanMacro(TetrahedraOnly, vtkTypeBool);
67
68protected:
71
72 // Usual data generation method
74
76
77 // Used to triangulate 3D cells
79
80 // Different execute methods depending on whether input is structured or not
83
85
86private:
88 void operator=(const vtkDataSetTriangleFilter&) = delete;
89};
90
91#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:66
a simple class to control print indentation
Definition: vtkIndent.h:43
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
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69