VTK
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 =========================================================================*/
34 #ifndef vtkDataSetTriangleFilter_h
35 #define vtkDataSetTriangleFilter_h
36 
37 #include "vtkFiltersGeneralModule.h" // For export macro
39 
41 
42 class VTKFILTERSGENERAL_EXPORT vtkDataSetTriangleFilter : public vtkUnstructuredGridAlgorithm
43 {
44 public:
45  static vtkDataSetTriangleFilter* New();
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
54  vtkSetMacro(TetrahedraOnly, vtkTypeBool);
55  vtkGetMacro(TetrahedraOnly, vtkTypeBool);
56  vtkBooleanMacro(TetrahedraOnly, vtkTypeBool);
58 
59 protected:
61  ~vtkDataSetTriangleFilter() override;
62 
63  // Usual data generation method
65 
67 
68  // Used to triangulate 3D cells
70 
71  // Different execute methods depending on whether input is structured or not
72  void StructuredExecute(vtkDataSet*, vtkUnstructuredGrid*);
73  void UnstructuredExecute(vtkDataSet*, vtkUnstructuredGrid*);
74 
76 
77 private:
79  void operator=(const vtkDataSetTriangleFilter&) = delete;
80 };
81 
82 #endif
vtkDataSetTriangleFilter::Triangulator
vtkOrderedTriangulator * Triangulator
Definition: vtkDataSetTriangleFilter.h:69
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkDataSetTriangleFilter
triangulate any type of dataset
Definition: vtkDataSetTriangleFilter.h:42
vtkOrderedTriangulator
helper class to generate triangulations
Definition: vtkOrderedTriangulator.h:114
vtkX3D::port
Definition: vtkX3D.h:453
vtkUnstructuredGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkUnstructuredGridAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkX3D::info
Definition: vtkX3D.h:382
vtkDataSetTriangleFilter::TetrahedraOnly
vtkTypeBool TetrahedraOnly
Definition: vtkDataSetTriangleFilter.h:75
vtkUnstructuredGridAlgorithm::New
static vtkUnstructuredGridAlgorithm * New()
vtkUnstructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:92
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69