VTK  9.5.20250910
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
48
49VTK_ABI_NAMESPACE_BEGIN
50class vtkMergePoints;
51
52class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkCellTypeSource
54{
55public:
57
62 void PrintSelf(ostream& os, vtkIndent indent) override;
64
66
69 void SetCellType(int cellType);
70 vtkGetMacro(CellType, int);
72
74
83 vtkSetMacro(CellOrder, int);
84 vtkGetMacro(CellOrder, int);
86
88
107 vtkSetMacro(CompleteQuadraticSimplicialElements, bool);
108 vtkGetMacro(CompleteQuadraticSimplicialElements, bool);
109 vtkBooleanMacro(CompleteQuadraticSimplicialElements, bool);
111
113
117 vtkSetClampMacro(PolynomialFieldOrder, int, 0, VTK_INT_MAX);
118 vtkGetMacro(PolynomialFieldOrder, int);
120
122
127
129
134 vtkSetClampMacro(OutputPrecision, int, 0, 1);
135 vtkGetMacro(OutputPrecision, int);
137
139
146 void SetBlocksDimensions(int, int, int);
147 vtkGetVector3Macro(BlocksDimensions, int);
149
150protected:
152 ~vtkCellTypeSource() override = default;
153
156
158 void GenerateQuads(vtkUnstructuredGrid*, int extent[6]);
160 void GeneratePixels(vtkUnstructuredGrid*, int extent[6]);
163 void GenerateTetras(vtkUnstructuredGrid*, int extent[6]);
166 void GenerateVoxels(vtkUnstructuredGrid*, int extent[6]);
167 void GenerateWedges(vtkUnstructuredGrid*, int extent[6]);
176
178 vtkUnstructuredGrid* output, int extent[6], int cellType, int cellOrder);
180 vtkUnstructuredGrid* output, int extent[6], int cellType, int cellOrder);
181 void GenerateHighOrderCurves(vtkUnstructuredGrid*, int extent[6], int cellType, int cellOrder);
183 vtkUnstructuredGrid*, int extent[6], int cellType, int cellOrder, bool complete);
185 vtkUnstructuredGrid*, int extent[6], int cellType, int cellOrder, bool complete);
187 vtkUnstructuredGrid*, int extent[6], int cellType, int cellOrder, bool complete);
188
190 double GetValueOfOrder(int order, double coords[3]);
191
192 int BlocksDimensions[3];
198 vtkMergePoints* Locator; // Only valid during RequestData.
199
200private:
201 vtkCellTypeSource(const vtkCellTypeSource&) = delete;
202 void operator=(const vtkCellTypeSource&) = delete;
203};
204
205VTK_ABI_NAMESPACE_END
206#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.
virtual void ComputeFields(vtkUnstructuredGrid *)
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])
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 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_INT_MAX
Definition vtkType.h:161
#define VTK_MARSHALAUTO