VTK  9.6.1
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
22
23#ifndef vtkCellTypeSource_h
24#define vtkCellTypeSource_h
25
26#include "vtkFiltersSourcesModule.h" // For export macro
28#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
29
30VTK_ABI_NAMESPACE_BEGIN
31class vtkMergePoints;
32
33class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkCellTypeSource
35{
36public:
38
43 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
50 void SetCellType(int cellType);
51 vtkGetMacro(CellType, int);
53
55
64 vtkSetMacro(CellOrder, int);
65 vtkGetMacro(CellOrder, int);
67
69
92
94
98 vtkSetClampMacro(PolynomialFieldOrder, int, 0, VTK_INT_MAX);
99 vtkGetMacro(PolynomialFieldOrder, int);
101
103
108
110
115 vtkSetClampMacro(OutputPrecision, int, 0, 1);
116 vtkGetMacro(OutputPrecision, int);
118
120
127 void SetBlocksDimensions(int, int, int);
128 vtkGetVector3Macro(BlocksDimensions, int);
130
131protected:
133 ~vtkCellTypeSource() override = default;
134
137
139 void GenerateQuads(vtkUnstructuredGrid*, int extent[6]);
141 void GeneratePixels(vtkUnstructuredGrid*, int extent[6]);
144 void GenerateTetras(vtkUnstructuredGrid*, int extent[6]);
147 void GenerateVoxels(vtkUnstructuredGrid*, int extent[6]);
148 void GenerateWedges(vtkUnstructuredGrid*, int extent[6]);
157
159 vtkUnstructuredGrid* output, int extent[6], int cellType, int cellOrder);
161 vtkUnstructuredGrid* output, int extent[6], int cellType, int cellOrder);
162 void GenerateHighOrderCurves(vtkUnstructuredGrid*, int extent[6], int cellType, int cellOrder);
164 vtkUnstructuredGrid*, int extent[6], int cellType, int cellOrder, bool complete);
166 vtkUnstructuredGrid*, int extent[6], int cellType, int cellOrder, bool complete);
168 vtkUnstructuredGrid*, int extent[6], int cellType, int cellOrder, bool complete);
169
171 double GetValueOfOrder(int order, double coords[3]);
172
179 vtkMergePoints* Locator; // Only valid during RequestData.
180
181private:
182 vtkCellTypeSource(const vtkCellTypeSource&) = delete;
183 void operator=(const vtkCellTypeSource&) = delete;
184};
185
186VTK_ABI_NAMESPACE_END
187#endif
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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
merge exactly coincident points
dataset represents arbitrary combinations of all possible cell types
#define VTK_INT_MAX
Definition vtkType.h:197
#define VTK_MARSHALAUTO