VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
32 
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkTessellatedBoxSource : public vtkPolyDataAlgorithm
35 {
36 public:
37  static vtkTessellatedBoxSource* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
46  vtkSetVector6Macro(Bounds, double);
48 
50 
57  vtkGetVector6Macro(Bounds, double);
59 
61 
65  vtkSetMacro(Level, int);
67 
69 
73  vtkGetMacro(Level, int);
75 
77 
83  vtkSetMacro(DuplicateSharedPoints, vtkTypeBool);
84  vtkGetMacro(DuplicateSharedPoints, vtkTypeBool);
85  vtkBooleanMacro(DuplicateSharedPoints, vtkTypeBool);
87 
89 
93  vtkSetMacro(Quads, vtkTypeBool);
94  vtkGetMacro(Quads, vtkTypeBool);
95  vtkBooleanMacro(Quads, vtkTypeBool);
97 
99 
104  vtkSetMacro(OutputPointsPrecision, int);
105  vtkGetMacro(OutputPointsPrecision, int);
107 
108 protected:
110  ~vtkTessellatedBoxSource() override;
111 
116  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
117  vtkInformationVector* outputVector) override;
118 
119  void DuplicateSharedPointsMethod(double* bounds, vtkPoints* points, vtkCellArray* polys);
120 
121  void MinimalPointsMethod(double* bounds, vtkPoints* points, vtkCellArray* polys);
122 
130  vtkIdType LocalFacePointCoordinatesToPointId(int f, int i, int j);
131 
141  void BuildFace(vtkPoints* points, vtkCellArray* polys, vtkIdType firstPointId,
142  double facePoints[3][3], int changed);
143 
144  double Bounds[6];
145  int Level;
149 
150 private:
152  void operator=(const vtkTessellatedBoxSource&) = delete;
153 };
154 
155 VTK_ABI_NAMESPACE_END
156 #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:363
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:177
Create a polygonal representation of a box with a given level of subdivision.
Store zero or more vtkInformation instances.
#define VTK_MARSHALAUTO
represent and manipulate 3D points
Definition: vtkPoints.h:30
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.