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 
35 #ifndef vtkTessellatedBoxSource_h
36 #define vtkTessellatedBoxSource_h
37 
38 #include "vtkFiltersSourcesModule.h" // For export macro
39 #include "vtkPolyDataAlgorithm.h"
40 
41 class VTKFILTERSSOURCES_EXPORT vtkTessellatedBoxSource : public vtkPolyDataAlgorithm
42 {
43 public:
44  static vtkTessellatedBoxSource *New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
53  vtkSetVector6Macro(Bounds, double);
55 
57 
64  vtkGetVector6Macro(Bounds, double);
66 
68 
72  vtkSetMacro(Level,int);
74 
76 
80  vtkGetMacro(Level,int);
82 
84 
90  vtkSetMacro(DuplicateSharedPoints, vtkTypeBool);
91  vtkGetMacro(DuplicateSharedPoints, vtkTypeBool);
92  vtkBooleanMacro(DuplicateSharedPoints, vtkTypeBool);
94 
96 
100  vtkSetMacro(Quads, vtkTypeBool);
101  vtkGetMacro(Quads, vtkTypeBool);
102  vtkBooleanMacro(Quads, vtkTypeBool);
104 
106 
111  vtkSetMacro(OutputPointsPrecision,int);
112  vtkGetMacro(OutputPointsPrecision,int);
114 
115 protected:
117  ~vtkTessellatedBoxSource() override;
118 
123  int RequestData(vtkInformation *request,
124  vtkInformationVector **inputVector,
125  vtkInformationVector *outpuVector) override;
126 
127 
128  void DuplicateSharedPointsMethod(double *bounds,
129  vtkPoints *points,
130  vtkCellArray *polys);
131 
132  void MinimalPointsMethod(double *bounds,
133  vtkPoints *points,
134  vtkCellArray *polys);
135 
143  vtkIdType LocalFacePointCoordinatesToPointId(int f,
144  int i,
145  int j);
146 
156  void BuildFace(vtkPoints *points,
157  vtkCellArray *polys,
158  vtkIdType firstPointId,
159  double facePoints[3][3],
160  int changed);
161 
162  double Bounds[6];
163  int Level;
167 
168 private:
170  void operator=(const vtkTessellatedBoxSource&) = delete;
171 };
172 
173 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int vtkIdType
Definition: vtkType.h:347
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
object to represent cell connectivity
Definition: vtkCellArray.h:44
Create a polygonal representation of a box with a given level of subdivision.
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.