VTK  9.3.0
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 
26 #ifndef vtkTessellatedBoxSource_h
27 #define vtkTessellatedBoxSource_h
28 
29 #include "vtkFiltersSourcesModule.h" // For export macro
30 #include "vtkPolyDataAlgorithm.h"
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKFILTERSSOURCES_EXPORT vtkTessellatedBoxSource : public vtkPolyDataAlgorithm
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
45  vtkSetVector6Macro(Bounds, double);
47 
49 
56  vtkGetVector6Macro(Bounds, double);
58 
60 
64  vtkSetMacro(Level, int);
66 
68 
72  vtkGetMacro(Level, int);
74 
76 
82  vtkSetMacro(DuplicateSharedPoints, vtkTypeBool);
83  vtkGetMacro(DuplicateSharedPoints, vtkTypeBool);
84  vtkBooleanMacro(DuplicateSharedPoints, vtkTypeBool);
86 
88 
92  vtkSetMacro(Quads, vtkTypeBool);
93  vtkGetMacro(Quads, vtkTypeBool);
94  vtkBooleanMacro(Quads, vtkTypeBool);
96 
98 
103  vtkSetMacro(OutputPointsPrecision, int);
104  vtkGetMacro(OutputPointsPrecision, int);
106 
107 protected:
110 
115  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
116  vtkInformationVector* outputVector) override;
117 
119 
120  void MinimalPointsMethod(double* bounds, vtkPoints* points, vtkCellArray* polys);
121 
130 
140  void BuildFace(vtkPoints* points, vtkCellArray* polys, vtkIdType firstPointId,
141  double facePoints[3][3], int changed);
142 
143  double Bounds[6];
144  int Level;
148 
149 private:
151  void operator=(const vtkTessellatedBoxSource&) = delete;
152 };
153 
154 VTK_ABI_NAMESPACE_END
155 #endif
object to represent cell connectivity
Definition: vtkCellArray.h:176
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:29
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