VTK  9.6.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
25
26#ifndef vtkTessellatedBoxSource_h
27#define vtkTessellatedBoxSource_h
28
29#include "vtkFiltersSourcesModule.h" // For export macro
31#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
32
33VTK_ABI_NAMESPACE_BEGIN
34class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkTessellatedBoxSource : public vtkPolyDataAlgorithm
35{
36public:
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
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
108protected:
111
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
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
150private:
152 void operator=(const vtkTessellatedBoxSource&) = delete;
153};
154
155VTK_ABI_NAMESPACE_END
156#endif
object to represent cell connectivity
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:30
Create a polygonal representation of a box with a given level of subdivision.
int vtkTypeBool
Definition vtkABI.h:64
static vtkBiQuadraticQuadraticHexahedron * New()
void PrintSelf(ostream &os, vtkIndent indent) override
int OutputPointsPrecision
double Bounds[6]
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
~vtkTessellatedBoxSource() override
vtkTessellatedBoxSource()
vtkIdType LocalFacePointCoordinatesToPointId(int f, int i, int j)
Compute the pointId of point (i,j) of face f.
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.
vtkTypeBool DuplicateSharedPoints
vtkTypeBool Quads
void DuplicateSharedPointsMethod(double *bounds, vtkPoints *points, vtkCellArray *polys)
void MinimalPointsMethod(double *bounds, vtkPoints *points, vtkCellArray *polys)
int vtkIdType
Definition vtkType.h:368
#define VTK_MARSHALAUTO
#define vtkPolyDataAlgorithm