VTK  9.3.1
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:
36  static vtkTessellatedBoxSource* New();
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:
109  ~vtkTessellatedBoxSource() override;
110 
115  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
116  vtkInformationVector* outputVector) override;
117 
118  void DuplicateSharedPointsMethod(double* bounds, vtkPoints* points, vtkCellArray* polys);
119 
120  void MinimalPointsMethod(double* bounds, vtkPoints* points, vtkCellArray* polys);
121 
129  vtkIdType LocalFacePointCoordinatesToPointId(int f, int i, int j);
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
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:315
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
object to represent cell connectivity
Definition: vtkCellArray.h:175
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:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.