VTK  9.3.20240419
vtkTessellatedBoxSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
55 #ifndef vtkTessellatedBoxSource_h
56 #define vtkTessellatedBoxSource_h
57 
58 #include "vtkFiltersSourcesModule.h" // For export macro
59 #include "vtkPolyDataAlgorithm.h"
60 
61 VTK_ABI_NAMESPACE_BEGIN
62 class VTKFILTERSSOURCES_EXPORT vtkTessellatedBoxSource : public vtkPolyDataAlgorithm
63 {
64 public:
67  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
70 
74  vtkSetVector6Macro(Bounds, double);
76 
78 
85  vtkGetVector6Macro(Bounds, double);
87 
89 
93  vtkSetMacro(Level, int);
95 
97 
101  vtkGetMacro(Level, int);
103 
105 
111  vtkSetMacro(DuplicateSharedPoints, vtkTypeBool);
112  vtkGetMacro(DuplicateSharedPoints, vtkTypeBool);
113  vtkBooleanMacro(DuplicateSharedPoints, vtkTypeBool);
115 
117 
121  vtkSetMacro(Quads, vtkTypeBool);
122  vtkGetMacro(Quads, vtkTypeBool);
123  vtkBooleanMacro(Quads, vtkTypeBool);
125 
127 
132  vtkSetMacro(OutputPointsPrecision, int);
133  vtkGetMacro(OutputPointsPrecision, int);
135 
136 protected:
139 
144  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
145  vtkInformationVector* outputVector) override;
146 
148 
149  void MinimalPointsMethod(double* bounds, vtkPoints* points, vtkCellArray* polys);
150 
159 
169  void BuildFace(vtkPoints* points, vtkCellArray* polys, vtkIdType firstPointId,
170  double facePoints[3][3], int changed);
171 
172  double Bounds[6];
173  int Level;
177 
178 private:
180  void operator=(const vtkTessellatedBoxSource&) = delete;
181 };
182 
183 VTK_ABI_NAMESPACE_END
184 #endif
object to represent cell connectivity
Definition: vtkCellArray.h:286
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:139
Superclass for algorithms that produce only polydata as output.
Create a polygonal representation of a box with a given level of subdivision.
vtkIdType LocalFacePointCoordinatesToPointId(int f, int i, int j)
Compute the pointId of point (i,j) of face f.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Called by the superclass.
void MinimalPointsMethod(double *bounds, vtkPoints *points, vtkCellArray *polys)
~vtkTessellatedBoxSource() override
static vtkTessellatedBoxSource * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void BuildFace(vtkPoints *points, vtkCellArray *polys, vtkIdType firstPointId, double facePoints[3][3], int changed)
Build one of the face of the box with some level of tessellation.
void DuplicateSharedPointsMethod(double *bounds, vtkPoints *points, vtkCellArray *polys)
@ points
Definition: vtkX3D.h:446
int vtkTypeBool
Definition: vtkABI.h:64
int vtkIdType
Definition: vtkType.h:315