VTK  9.3.20240327
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
39 #ifndef vtkCellTypeSource_h
40 #define vtkCellTypeSource_h
41 
42 #include "vtkFiltersSourcesModule.h" // For export macro
44 
45 VTK_ABI_NAMESPACE_BEGIN
46 class vtkMergePoints;
47 
48 class VTKFILTERSSOURCES_EXPORT vtkCellTypeSource : public vtkUnstructuredGridAlgorithm
49 {
50 public:
52 
57  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
61 
64  void SetCellType(int cellType);
65  vtkGetMacro(CellType, int);
67 
69 
78  vtkSetMacro(CellOrder, int);
79  vtkGetMacro(CellOrder, int);
81 
83 
102  vtkSetMacro(CompleteQuadraticSimplicialElements, bool);
103  vtkGetMacro(CompleteQuadraticSimplicialElements, bool);
104  vtkBooleanMacro(CompleteQuadraticSimplicialElements, bool);
106 
108 
112  vtkSetClampMacro(PolynomialFieldOrder, int, 0, VTK_INT_MAX);
113  vtkGetMacro(PolynomialFieldOrder, int);
115 
117 
122 
124 
129  vtkSetClampMacro(OutputPrecision, int, 0, 1);
130  vtkGetMacro(OutputPrecision, int);
132 
134 
141  void SetBlocksDimensions(int, int, int);
142  vtkGetVector3Macro(BlocksDimensions, int);
144 
145 protected:
147  ~vtkCellTypeSource() override = default;
148 
151 
171 
173  vtkUnstructuredGrid* output, int extent[6], int cellType, int cellOrder);
175  vtkUnstructuredGrid* output, int extent[6], int cellType, int cellOrder);
180 
185 
187  double GetValueOfOrder(int order, double coords[3]);
188 
189  int BlocksDimensions[3];
190  int CellType;
195  vtkMergePoints* Locator; // Only valid during RequestData.
196 
197 private:
198  vtkCellTypeSource(const vtkCellTypeSource&) = delete;
199  void operator=(const vtkCellTypeSource&) = delete;
200 };
201 
202 VTK_ABI_NAMESPACE_END
203 #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 GenerateHighOrderHexes(vtkUnstructuredGrid *output, int extent[6], int cellType, int cellOrder)
void GeneratePentagonalPrism(vtkUnstructuredGrid *, int extent[6])
void GenerateVoxels(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
static vtkCellTypeSource * New()
Standard methods for instantiation, obtaining type and printing instance values.
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])
virtual void ComputeFields(vtkUnstructuredGrid *)
void GeneratePolygons(vtkUnstructuredGrid *, int extent[6])
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 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 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])
bool CompleteQuadraticSimplicialElements
void GeneratePolyhedron(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: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
@ order
Definition: vtkX3D.h:440
@ extent
Definition: vtkX3D.h:345
#define VTK_INT_MAX
Definition: vtkType.h:144