VTK
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 =========================================================================*/
29 #ifndef vtkCellTypeSource_h
30 #define vtkCellTypeSource_h
31 
32 #include "vtkFiltersSourcesModule.h" // For export macro
34 
35 class vtkMergePoints;
36 
37 class VTKFILTERSSOURCES_EXPORT vtkCellTypeSource : public vtkUnstructuredGridAlgorithm
38 {
39 public:
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 
91  vtkSetMacro(CompleteQuadraticSimplicialElements, bool);
92  vtkGetMacro(CompleteQuadraticSimplicialElements, bool);
93  vtkBooleanMacro(CompleteQuadraticSimplicialElements, bool);
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 
134 protected:
136  ~vtkCellTypeSource() override {}
137 
140 
153 
160 
162  double GetValueOfOrder(int order, double coords[3]);
163 
164  int BlocksDimensions[3];
165  int CellType;
170  vtkMergePoints* Locator; // Only valid during RequestData.
171 
172 private:
173  vtkCellTypeSource(const vtkCellTypeSource&) = delete;
174  void operator=(const vtkCellTypeSource&) = delete;
175 };
176 
177 #endif
vtkCellTypeSource::GenerateLagrangeTets
void GenerateLagrangeTets(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::Locator
vtkMergePoints * Locator
Definition: vtkCellTypeSource.h:170
vtkCellTypeSource::CellOrder
int CellOrder
Definition: vtkCellTypeSource.h:166
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:159
vtkCellTypeSource::SetBlocksDimensions
void SetBlocksDimensions(int, int, int)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkCellTypeSource::GenerateLagrangeCurves
void GenerateLagrangeCurves(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GeneratePyramids
void GeneratePyramids(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource
Create cells of a given type.
Definition: vtkCellTypeSource.h:38
vtkCellTypeSource::GenerateLagrangeHexes
void GenerateLagrangeHexes(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GenerateTetras
void GenerateTetras(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::~vtkCellTypeSource
~vtkCellTypeSource() override
Definition: vtkCellTypeSource.h:136
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:169
vtkCellTypeSource::New
static vtkCellTypeSource * New()
Standard methods for instantiation, obtaining type and printing instance values.
vtkCellTypeSource::GenerateQuadraticTriangles
void GenerateQuadraticTriangles(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::CompleteQuadraticSimplicialElements
bool CompleteQuadraticSimplicialElements
Definition: vtkCellTypeSource.h:167
vtkCellTypeSource::GetValueOfOrder
double GetValueOfOrder(int order, double coords[3])
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkCellTypeSource::GenerateQuadraticQuads
void GenerateQuadraticQuads(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:440
vtkCellTypeSource::GenerateLagrangeWedges
void GenerateLagrangeWedges(vtkUnstructuredGrid *, int extent[6])
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkCellTypeSource::ComputeFields
virtual void ComputeFields(vtkUnstructuredGrid *)
vtkCellTypeSource::vtkCellTypeSource
vtkCellTypeSource()
vtkCellTypeSource::GenerateWedges
void GenerateWedges(vtkUnstructuredGrid *, int extent[6])
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:168
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:345
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:89
vtkCellTypeSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCellTypeSource::GenerateQuadraticHexahedron
void GenerateQuadraticHexahedron(vtkUnstructuredGrid *, int extent[6])
vtkCellTypeSource::GenerateLagrangeTris
void GenerateLagrangeTris(vtkUnstructuredGrid *, int extent[6])
vtkMergePoints
merge exactly coincident points
Definition: vtkMergePoints.h:37
vtkCellTypeSource::CellType
int CellType
Definition: vtkCellTypeSource.h:165
vtkCellTypeSource::SetBlocksDimensions
void SetBlocksDimensions(int *)
Set the number of cells in each direction.