VTK  9.5.20250914
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
60#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
61
62VTK_ABI_NAMESPACE_BEGIN
63class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkTessellatedBoxSource : public vtkPolyDataAlgorithm
64{
65public:
68 void PrintSelf(ostream& os, vtkIndent indent) override;
69
71
75 vtkSetVector6Macro(Bounds, double);
77
79
86 vtkGetVector6Macro(Bounds, double);
88
90
94 vtkSetMacro(Level, int);
96
98
102 vtkGetMacro(Level, int);
104
106
112 vtkSetMacro(DuplicateSharedPoints, vtkTypeBool);
113 vtkGetMacro(DuplicateSharedPoints, vtkTypeBool);
114 vtkBooleanMacro(DuplicateSharedPoints, vtkTypeBool);
116
118
122 vtkSetMacro(Quads, vtkTypeBool);
123 vtkGetMacro(Quads, vtkTypeBool);
124 vtkBooleanMacro(Quads, vtkTypeBool);
126
128
133 vtkSetMacro(OutputPointsPrecision, int);
134 vtkGetMacro(OutputPointsPrecision, int);
136
137protected:
140
146 vtkInformationVector* outputVector) override;
147
148 void DuplicateSharedPointsMethod(double* bounds, vtkPoints* points, vtkCellArray* polys);
149
150 void MinimalPointsMethod(double* bounds, vtkPoints* points, vtkCellArray* polys);
151
160
170 void BuildFace(vtkPoints* points, vtkCellArray* polys, vtkIdType firstPointId,
171 double facePoints[3][3], int changed);
172
173 double Bounds[6];
174 int Level;
178
179private:
181 void operator=(const vtkTessellatedBoxSource&) = delete;
182};
183
184VTK_ABI_NAMESPACE_END
185#endif
object to represent cell connectivity
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
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTessellatedBoxSource * New()
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)
int vtkTypeBool
Definition vtkABI.h:64
int vtkIdType
Definition vtkType.h:333
#define VTK_MARSHALAUTO