VTK  9.2.6
vtkCellTypeSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkCellTypeSource.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
28
29#ifndef vtkCellTypeSource_h
30#define vtkCellTypeSource_h
31
32#include "vtkFiltersSourcesModule.h" // For export macro
34
35class vtkMergePoints;
36
37class VTKFILTERSSOURCES_EXPORT vtkCellTypeSource : public vtkUnstructuredGridAlgorithm
38{
39public:
41
46 void PrintSelf(ostream& os, vtkIndent indent) override;
48
50
53 void SetCellType(int cellType);
54 vtkGetMacro(CellType, int);
56
58
67 vtkSetMacro(CellOrder, int);
68 vtkGetMacro(CellOrder, int);
70
72
95
97
101 vtkSetClampMacro(PolynomialFieldOrder, int, 0, VTK_INT_MAX);
102 vtkGetMacro(PolynomialFieldOrder, int);
104
106
111
113
118 vtkSetClampMacro(OutputPrecision, int, 0, 1);
119 vtkGetMacro(OutputPrecision, int);
121
123
130 void SetBlocksDimensions(int, int, int);
131 vtkGetVector3Macro(BlocksDimensions, int);
133
134protected:
136 ~vtkCellTypeSource() override = default;
137
140
142 void GenerateQuads(vtkUnstructuredGrid*, int extent[6]);
145 void GenerateTetras(vtkUnstructuredGrid*, int extent[6]);
147 void GenerateWedges(vtkUnstructuredGrid*, int extent[6]);
156
163
170
172 double GetValueOfOrder(int order, double coords[3]);
173
180 vtkMergePoints* Locator; // Only valid during RequestData.
181
182private:
183 vtkCellTypeSource(const vtkCellTypeSource&) = delete;
184 void operator=(const vtkCellTypeSource&) = delete;
185};
186
187#endif
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:34
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:155