VTK  9.3.0
vtkCellTypeSource.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
20#ifndef vtkCellTypeSource_h
21#define vtkCellTypeSource_h
22
23#include "vtkFiltersSourcesModule.h" // For export macro
25
26VTK_ABI_NAMESPACE_BEGIN
27class vtkMergePoints;
28
29class VTKFILTERSSOURCES_EXPORT vtkCellTypeSource : public vtkUnstructuredGridAlgorithm
30{
31public:
33
38 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
45 void SetCellType(int cellType);
46 vtkGetMacro(CellType, int);
48
50
59 vtkSetMacro(CellOrder, int);
60 vtkGetMacro(CellOrder, int);
62
64
83 vtkSetMacro(CompleteQuadraticSimplicialElements, bool);
84 vtkGetMacro(CompleteQuadraticSimplicialElements, bool);
85 vtkBooleanMacro(CompleteQuadraticSimplicialElements, bool);
87
89
93 vtkSetClampMacro(PolynomialFieldOrder, int, 0, VTK_INT_MAX);
94 vtkGetMacro(PolynomialFieldOrder, int);
96
98
103
105
110 vtkSetClampMacro(OutputPrecision, int, 0, 1);
111 vtkGetMacro(OutputPrecision, int);
113
115
122 void SetBlocksDimensions(int, int, int);
123 vtkGetVector3Macro(BlocksDimensions, int);
125
126protected:
128 ~vtkCellTypeSource() override = default;
129
132
134 void GenerateQuads(vtkUnstructuredGrid*, int extent[6]);
137 void GenerateTetras(vtkUnstructuredGrid*, int extent[6]);
139 void GenerateWedges(vtkUnstructuredGrid*, int extent[6]);
148
155
162
164 double GetValueOfOrder(int order, double coords[3]);
165
166 int BlocksDimensions[3];
172 vtkMergePoints* Locator; // Only valid during RequestData.
173
174private:
175 vtkCellTypeSource(const vtkCellTypeSource&) = delete;
176 void operator=(const vtkCellTypeSource&) = delete;
177};
178
179VTK_ABI_NAMESPACE_END
180#endif
Create cells of a given type.
void GenerateQuadraticTriangles(vtkUnstructuredGrid *, int extent[6])
void GenerateWedges(vtkUnstructuredGrid *, int extent[6])
void SetBlocksDimensions(int *)
Set the number of cells in each direction.
void GeneratePentagonalPrism(vtkUnstructuredGrid *, int extent[6])
void GenerateLagrangeTris(vtkUnstructuredGrid *, int extent[6])
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetBlocksDimensions(int, int, int)
Set the number of cells in each direction.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void GenerateLagrangeWedges(vtkUnstructuredGrid *, int extent[6])
void GenerateBezierTets(vtkUnstructuredGrid *, int extent[6])
void GenerateBezierTris(vtkUnstructuredGrid *, int extent[6])
~vtkCellTypeSource() override=default
void GenerateQuadraticPyramids(vtkUnstructuredGrid *, int extent[6])
void GenerateBezierWedges(vtkUnstructuredGrid *, int extent[6])
static vtkCellTypeSource * New()
Standard methods for instantiation, obtaining type and printing instance values.
virtual void ComputeFields(vtkUnstructuredGrid *)
void GenerateBezierHexes(vtkUnstructuredGrid *, int extent[6])
void GenerateLagrangeHexes(vtkUnstructuredGrid *, int extent[6])
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type and printing instance values.
void GenerateBezierCurves(vtkUnstructuredGrid *, int extent[6])
void GenerateLagrangeTets(vtkUnstructuredGrid *, int extent[6])
void GenerateQuadraticHexahedron(vtkUnstructuredGrid *, int extent[6])
void GenerateLagrangeCurves(vtkUnstructuredGrid *, int extent[6])
void GenerateQuads(vtkUnstructuredGrid *, int extent[6])
double GetValueOfOrder(int order, double coords[3])
vtkMergePoints * Locator
int GetCellDimension()
Get the dimension of the cell blocks to be generated.
void GenerateTriangles(vtkUnstructuredGrid *, int extent[6])
void GenerateHexagonalPrism(vtkUnstructuredGrid *, int extent[6])
void GenerateQuadraticWedges(vtkUnstructuredGrid *, int extent[6])
void GenerateQuadraticQuads(vtkUnstructuredGrid *, int extent[6])
void SetCellType(int cellType)
Set/Get the type of cells to be generated.
void GenerateTetras(vtkUnstructuredGrid *, int extent[6])
void GenerateQuadraticTetras(vtkUnstructuredGrid *, int extent[6])
void GeneratePyramids(vtkUnstructuredGrid *, int extent[6])
void GenerateBezierQuads(vtkUnstructuredGrid *, int extent[6])
void GenerateLagrangeQuads(vtkUnstructuredGrid *, int extent[6])
void GenerateHexahedron(vtkUnstructuredGrid *, int extent[6])
void GenerateTriQuadraticPyramids(vtkUnstructuredGrid *, int extent[6])
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
merge exactly coincident points
Superclass for algorithms that produce only unstructured grid as output.
dataset represents arbitrary combinations of all possible cell types
#define VTK_INT_MAX
Definition vtkType.h:144