Loading [MathJax]/extensions/tex2jax.js
VTK  9.4.20250406
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
42#ifndef vtkCellTypeSource_h
43#define vtkCellTypeSource_h
44
45#include "vtkFiltersSourcesModule.h" // For export macro
47
48VTK_ABI_NAMESPACE_BEGIN
49class vtkMergePoints;
50
51class VTKFILTERSSOURCES_EXPORT vtkCellTypeSource : public vtkUnstructuredGridAlgorithm
52{
53public:
55
60 void PrintSelf(ostream& os, vtkIndent indent) override;
62
64
67 void SetCellType(int cellType);
68 vtkGetMacro(CellType, int);
70
72
81 vtkSetMacro(CellOrder, int);
82 vtkGetMacro(CellOrder, int);
84
86
105 vtkSetMacro(CompleteQuadraticSimplicialElements, bool);
106 vtkGetMacro(CompleteQuadraticSimplicialElements, bool);
107 vtkBooleanMacro(CompleteQuadraticSimplicialElements, bool);
109
111
115 vtkSetClampMacro(PolynomialFieldOrder, int, 0, VTK_INT_MAX);
116 vtkGetMacro(PolynomialFieldOrder, int);
118
120
125
127
132 vtkSetClampMacro(OutputPrecision, int, 0, 1);
133 vtkGetMacro(OutputPrecision, int);
135
137
144 void SetBlocksDimensions(int, int, int);
145 vtkGetVector3Macro(BlocksDimensions, int);
147
148protected:
150 ~vtkCellTypeSource() override = default;
151
154
156 void GenerateQuads(vtkUnstructuredGrid*, int extent[6]);
158 void GeneratePixels(vtkUnstructuredGrid*, int extent[6]);
161 void GenerateTetras(vtkUnstructuredGrid*, int extent[6]);
164 void GenerateVoxels(vtkUnstructuredGrid*, int extent[6]);
165 void GenerateWedges(vtkUnstructuredGrid*, int extent[6]);
174
176 vtkUnstructuredGrid* output, int extent[6], int cellType, int cellOrder);
178 vtkUnstructuredGrid* output, int extent[6], int cellType, int cellOrder);
179 void GenerateHighOrderCurves(vtkUnstructuredGrid*, int extent[6], int cellType, int cellOrder);
181 vtkUnstructuredGrid*, int extent[6], int cellType, int cellOrder, bool complete);
183 vtkUnstructuredGrid*, int extent[6], int cellType, int cellOrder, bool complete);
185 vtkUnstructuredGrid*, int extent[6], int cellType, int cellOrder, bool complete);
186
187 VTK_DEPRECATED_IN_9_4_0("Use GenerateHighOrderCurve instead.")
188 void GenerateLagrangeCurves(vtkUnstructuredGrid*, int extent[6]);
189 VTK_DEPRECATED_IN_9_4_0("Use GenerateHighOrderTris instead.")
190 void GenerateLagrangeTris(vtkUnstructuredGrid*, int extent[6]);
191 VTK_DEPRECATED_IN_9_4_0("Use GenerateHighOrderTets instead.")
192 void GenerateLagrangeTets(vtkUnstructuredGrid*, int extent[6]);
193 VTK_DEPRECATED_IN_9_4_0("Use GenerateHighOrderWedges instead.")
194 void GenerateLagrangeWedges(vtkUnstructuredGrid*, int extent[6]);
195
196 VTK_DEPRECATED_IN_9_4_0("Use GenerateHighOrderCurve instead.")
197 void GenerateBezierCurves(vtkUnstructuredGrid*, int extent[6]);
198 VTK_DEPRECATED_IN_9_4_0("Use GenerateHighOrderTris instead.")
199 void GenerateBezierTris(vtkUnstructuredGrid*, int extent[6]);
200 VTK_DEPRECATED_IN_9_4_0("Use GenerateHighOrderTets instead.")
201 void GenerateBezierTets(vtkUnstructuredGrid*, int extent[6]);
202 VTK_DEPRECATED_IN_9_4_0("Use GenerateHighOrderWedges instead.")
203 void GenerateBezierWedges(vtkUnstructuredGrid*, int extent[6]);
204
205 virtual void ComputeFields(vtkUnstructuredGrid*);
206 double GetValueOfOrder(int order, double coords[3]);
207
208 int BlocksDimensions[3];
209 int CellType;
210 int CellOrder;
211 bool CompleteQuadraticSimplicialElements;
212 int OutputPrecision;
213 int PolynomialFieldOrder;
214 vtkMergePoints* Locator; // Only valid during RequestData.
215
216private:
217 vtkCellTypeSource(const vtkCellTypeSource&) = delete;
218 void operator=(const vtkCellTypeSource&) = delete;
219};
220
221VTK_ABI_NAMESPACE_END
222#endif
Create cells of a given type.
void GenerateQuadraticTriangles(vtkUnstructuredGrid *, int extent[6])
void GenerateHighOrderCurves(vtkUnstructuredGrid *, int extent[6], int cellType, int cellOrder)
void GenerateWedges(vtkUnstructuredGrid *, int extent[6])
void SetBlocksDimensions(int *)
Set the number of cells in each direction.
void GenerateHighOrderHexes(vtkUnstructuredGrid *output, int extent[6], int cellType, int cellOrder)
void GeneratePentagonalPrism(vtkUnstructuredGrid *, int extent[6])
void GenerateVoxels(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
~vtkCellTypeSource() override=default
void GenerateQuadraticPyramids(vtkUnstructuredGrid *, int extent[6])
static vtkCellTypeSource * New()
Standard methods for instantiation, obtaining type and printing instance values.
void GeneratePolygons(vtkUnstructuredGrid *, int extent[6])
void GenerateHighOrderTets(vtkUnstructuredGrid *, int extent[6], int cellType, int cellOrder, bool complete)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type and printing instance values.
void GenerateHighOrderQuads(vtkUnstructuredGrid *output, int extent[6], int cellType, int cellOrder)
void GenerateQuadraticHexahedron(vtkUnstructuredGrid *, int extent[6])
void GenerateHighOrderWedges(vtkUnstructuredGrid *, int extent[6], int cellType, int cellOrder, bool complete)
void GenerateQuads(vtkUnstructuredGrid *, int extent[6])
int GetCellDimension()
Get the dimension of the cell blocks to be generated.
void GenerateTriangles(vtkUnstructuredGrid *, int extent[6])
void GeneratePixels(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 GeneratePolyhedron(vtkUnstructuredGrid *, int extent[6])
void GenerateHexahedron(vtkUnstructuredGrid *, int extent[6])
void GenerateTriQuadraticPyramids(vtkUnstructuredGrid *, int extent[6])
void GenerateHighOrderTris(vtkUnstructuredGrid *, int extent[6], int cellType, int cellOrder, bool complete)
a simple class to control print indentation
Definition vtkIndent.h:108
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_DEPRECATED_IN_9_4_0(reason)
#define VTK_INT_MAX
Definition vtkType.h:161