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 VTKFILTERSSOURCES_EXPORT vtkCellTypeSource : public vtkUnstructuredGridAlgorithm
36 {
37 public:
39 
42  static vtkCellTypeSource *New();
44  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46 
48 
51  void SetCellType(int cellType);
52  vtkGetMacro(CellType, int);
54 
56 
59  int GetCellDimension();
61 
63 
68  vtkSetMacro(OutputPointsPrecision,int);
69  vtkGetMacro(OutputPointsPrecision,int);
71 
73 
79  void SetBlocksDimensions(int*);
80  void SetBlocksDimensions(int, int, int);
81  vtkGetVector3Macro(BlocksDimensions, int);
83 
84 protected:
86  ~vtkCellTypeSource() VTK_OVERRIDE {}
87 
90 
91  void GenerateTriangles(vtkUnstructuredGrid*, int extent[6]);
92  void GenerateQuads(vtkUnstructuredGrid*, int extent[6]);
93  void GenerateQuadraticTriangles(vtkUnstructuredGrid*, int extent[6]);
94  void GenerateQuadraticQuads(vtkUnstructuredGrid*, int extent[6]);
95  void GenerateTetras(vtkUnstructuredGrid*, int extent[6]);
96  void GenerateHexahedron(vtkUnstructuredGrid*, int extent[6]);
97  void GenerateWedges(vtkUnstructuredGrid*, int extent[6]);
98  void GeneratePyramids(vtkUnstructuredGrid*, int extent[6]);
99  void GenerateQuadraticTetras(vtkUnstructuredGrid*, int extent[6]);
100  void GenerateQuadraticHexahedron(vtkUnstructuredGrid*, int extent[6]);
101  void GenerateQuadraticWedges(vtkUnstructuredGrid*, int extent[6]);
102  void GenerateQuadraticPyramids(vtkUnstructuredGrid*, int extent[6]);
103 
104  int BlocksDimensions[3];
105  int CellType;
107 
108 private:
109  vtkCellTypeSource(const vtkCellTypeSource&) VTK_DELETE_FUNCTION;
110  void operator=(const vtkCellTypeSource&) VTK_DELETE_FUNCTION;
111 };
112 
113 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store vtkAlgorithm input/output information.
static vtkUnstructuredGridAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
~vtkCellTypeSource() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
dataset represents arbitrary combinations of all possible cell types
Superclass for algorithms that produce only unstructured grid as output.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Create cells of a given type.
Store zero or more vtkInformation instances.