VTK
vtkTessellatedBoxSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTessellatedBoxSource.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 =========================================================================*/
15 
38 #ifndef vtkTessellatedBoxSource_h
39 #define vtkTessellatedBoxSource_h
40 
41 #include "vtkFiltersSourcesModule.h" // For export macro
42 #include "vtkPolyDataAlgorithm.h"
43 
44 class VTKFILTERSSOURCES_EXPORT vtkTessellatedBoxSource : public vtkPolyDataAlgorithm
45 {
46 public:
47  static vtkTessellatedBoxSource *New();
49  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
50 
52 
56  vtkSetVector6Macro(Bounds, double);
58 
60 
67  vtkGetVector6Macro(Bounds, double);
69 
71 
75  vtkSetMacro(Level,int);
77 
79 
83  vtkGetMacro(Level,int);
85 
87 
93  vtkSetMacro(DuplicateSharedPoints, int);
94  vtkGetMacro(DuplicateSharedPoints, int);
95  vtkBooleanMacro(DuplicateSharedPoints, int);
97 
99 
103  vtkSetMacro(Quads, int);
104  vtkGetMacro(Quads, int);
105  vtkBooleanMacro(Quads, int);
107 
109 
114  vtkSetMacro(OutputPointsPrecision,int);
115  vtkGetMacro(OutputPointsPrecision,int);
117 
118 protected:
120  ~vtkTessellatedBoxSource() VTK_OVERRIDE;
121 
126  int RequestData(vtkInformation *request,
127  vtkInformationVector **inputVector,
128  vtkInformationVector *outpuVector) VTK_OVERRIDE;
129 
130 
131  void DuplicateSharedPointsMethod(double *bounds,
132  vtkPoints *points,
133  vtkCellArray *polys);
134 
135  void MinimalPointsMethod(double *bounds,
136  vtkPoints *points,
137  vtkCellArray *polys);
138 
146  vtkIdType LocalFacePointCoordinatesToPointId(int f,
147  int i,
148  int j);
149 
159  void BuildFace(vtkPoints *points,
160  vtkCellArray *polys,
161  vtkIdType firstPointId,
162  double facePoints[3][3],
163  int changed);
164 
165  double Bounds[6];
166  int Level;
167  int DuplicateSharedPoints;
168  int Quads;
169  int OutputPointsPrecision;
170 
171 private:
172  vtkTessellatedBoxSource(const vtkTessellatedBoxSource&) VTK_DELETE_FUNCTION;
173  void operator=(const vtkTessellatedBoxSource&) VTK_DELETE_FUNCTION;
174 };
175 
176 #endif
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:287
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
object to represent cell connectivity
Definition: vtkCellArray.h:50
Create a polygonal representation of a box with a given level of subdivision.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
represent and manipulate 3D points
Definition: vtkPoints.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.