VTK  9.1.0
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 =========================================================================*/
48 #ifndef vtkCellTypeSource_h
49 #define vtkCellTypeSource_h
50 
51 #include "vtkFiltersSourcesModule.h" // For export macro
53 
54 class vtkMergePoints;
55 
56 class VTKFILTERSSOURCES_EXPORT vtkCellTypeSource : public vtkUnstructuredGridAlgorithm
57 {
58 public:
60 
65  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
69 
72  void SetCellType(int cellType);
73  vtkGetMacro(CellType, int);
75 
77 
86  vtkSetMacro(CellOrder, int);
87  vtkGetMacro(CellOrder, int);
89 
91 
110  vtkSetMacro(CompleteQuadraticSimplicialElements, bool);
111  vtkGetMacro(CompleteQuadraticSimplicialElements, bool);
112  vtkBooleanMacro(CompleteQuadraticSimplicialElements, bool);
114 
116 
120  vtkSetClampMacro(PolynomialFieldOrder, int, 0, VTK_INT_MAX);
121  vtkGetMacro(PolynomialFieldOrder, int);
123 
125 
130 
132 
137  vtkSetClampMacro(OutputPrecision, int, 0, 1);
138  vtkGetMacro(OutputPrecision, int);
140 
142 
149  void SetBlocksDimensions(int, int, int);
150  vtkGetVector3Macro(BlocksDimensions, int);
152 
153 protected:
155  ~vtkCellTypeSource() override = default;
156 
159 
175 
182 
189 
191  double GetValueOfOrder(int order, double coords[3]);
192 
193  int BlocksDimensions[3];
194  int CellType;
199  vtkMergePoints* Locator; // Only valid during RequestData.
200 
201 private:
202  vtkCellTypeSource(const vtkCellTypeSource&) = delete;
203  void operator=(const vtkCellTypeSource&) = delete;
204 };
205 
206 #endif
vtkCellTypeSource::GenerateLagrangeTets
void GenerateLagrangeTets(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::Locator
vtkMergePoints * Locator
Definition: vtkCellTypeSource.h:199
vtkCellTypeSource::CellOrder
int CellOrder
Definition: vtkCellTypeSource.h:195
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkCellTypeSource::SetBlocksDimensions
void SetBlocksDimensions(int, int, int)
Set the number of cells in each direction.
vtkCellTypeSource::GenerateBezierTris
void GenerateBezierTris(vtkUnstructuredGrid *, int extent[6])
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkCellTypeSource::GenerateLagrangeCurves
void GenerateLagrangeCurves(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GeneratePyramids
void GeneratePyramids(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GenerateBezierTets
void GenerateBezierTets(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource
Create cells of a given type.
Definition: vtkCellTypeSource.h:57
vtkCellTypeSource::GenerateLagrangeHexes
void GenerateLagrangeHexes(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GenerateTetras
void GenerateTetras(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GenerateBezierWedges
void GenerateBezierWedges(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GenerateQuadraticTetras
void GenerateQuadraticTetras(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkCellTypeSource::GetCellDimension
int GetCellDimension()
Get the dimension of the cell blocks to be generated.
vtkCellTypeSource::GenerateLagrangeQuads
void GenerateLagrangeQuads(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::PolynomialFieldOrder
int PolynomialFieldOrder
Definition: vtkCellTypeSource.h:198
vtkCellTypeSource::GeneratePentagonalPrism
void GeneratePentagonalPrism(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GenerateTriQuadraticPyramids
void GenerateTriQuadraticPyramids(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::New
static vtkCellTypeSource * New()
Standard methods for instantiation, obtaining type and printing instance values.
vtkCellTypeSource::GenerateHexagonalPrism
void GenerateHexagonalPrism(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GenerateQuadraticTriangles
void GenerateQuadraticTriangles(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::CompleteQuadraticSimplicialElements
bool CompleteQuadraticSimplicialElements
Definition: vtkCellTypeSource.h:196
vtkCellTypeSource::GetValueOfOrder
double GetValueOfOrder(int order, double coords[3])
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkCellTypeSource::GenerateQuadraticQuads
void GenerateQuadraticQuads(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GenerateBezierCurves
void GenerateBezierCurves(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GenerateTriangles
void GenerateTriangles(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GenerateQuads
void GenerateQuads(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GenerateQuadraticWedges
void GenerateQuadraticWedges(vtkUnstructuredGrid *, int extent[6])
vtkX3D::order
@ order
Definition: vtkX3D.h:446
vtkCellTypeSource::GenerateLagrangeWedges
void GenerateLagrangeWedges(vtkUnstructuredGrid *, int extent[6])
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkCellTypeSource::ComputeFields
virtual void ComputeFields(vtkUnstructuredGrid *)
vtkCellTypeSource::vtkCellTypeSource
vtkCellTypeSource()
vtkCellTypeSource::GenerateWedges
void GenerateWedges(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::~vtkCellTypeSource
~vtkCellTypeSource() override=default
vtkCellTypeSource::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkCellTypeSource::GenerateQuadraticPyramids
void GenerateQuadraticPyramids(vtkUnstructuredGrid *, int extent[6])
vtkUnstructuredGridAlgorithm.h
vtkCellTypeSource::GenerateHexahedron
void GenerateHexahedron(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::OutputPrecision
int OutputPrecision
Definition: vtkCellTypeSource.h:197
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:41
vtkCellTypeSource::SetCellType
void SetCellType(int cellType)
Set/Get the type of cells to be generated.
vtkX3D::extent
@ extent
Definition: vtkX3D.h:351
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:204
vtkCellTypeSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type and printing instance values.
vtkCellTypeSource::GenerateQuadraticHexahedron
void GenerateQuadraticHexahedron(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GenerateLagrangeTris
void GenerateLagrangeTris(vtkUnstructuredGrid *, int extent[6])
vtkMergePoints
merge exactly coincident points
Definition: vtkMergePoints.h:63
vtkCellTypeSource::GenerateBezierQuads
void GenerateBezierQuads(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::CellType
int CellType
Definition: vtkCellTypeSource.h:194
vtkCellTypeSource::SetBlocksDimensions
void SetBlocksDimensions(int *)
Set the number of cells in each direction.
vtkCellTypeSource::GenerateBezierHexes
void GenerateBezierHexes(vtkUnstructuredGrid *, int extent[6])