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
35#ifndef vtkTessellatedBoxSource_h
36#define vtkTessellatedBoxSource_h
37
38#include "vtkFiltersSourcesModule.h" // For export macro
40
41VTK_ABI_NAMESPACE_BEGIN
42class VTKFILTERSSOURCES_EXPORT vtkTessellatedBoxSource : public vtkPolyDataAlgorithm
43{
44public:
47 void PrintSelf(ostream& os, vtkIndent indent) override;
48
50
54 vtkSetVector6Macro(Bounds, double);
56
58
65 vtkGetVector6Macro(Bounds, double);
67
69
73 vtkSetMacro(Level, int);
75
77
81 vtkGetMacro(Level, int);
83
85
91 vtkSetMacro(DuplicateSharedPoints, vtkTypeBool);
92 vtkGetMacro(DuplicateSharedPoints, vtkTypeBool);
93 vtkBooleanMacro(DuplicateSharedPoints, vtkTypeBool);
95
97
101 vtkSetMacro(Quads, vtkTypeBool);
102 vtkGetMacro(Quads, vtkTypeBool);
103 vtkBooleanMacro(Quads, vtkTypeBool);
105
107
112 vtkSetMacro(OutputPointsPrecision, int);
113 vtkGetMacro(OutputPointsPrecision, int);
115
116protected:
119
125 vtkInformationVector* outputVector) override;
126
127 void DuplicateSharedPointsMethod(double* bounds, vtkPoints* points, vtkCellArray* polys);
128
129 void MinimalPointsMethod(double* bounds, vtkPoints* points, vtkCellArray* polys);
130
139
149 void BuildFace(vtkPoints* points, vtkCellArray* polys, vtkIdType firstPointId,
150 double facePoints[3][3], int changed);
151
152 double Bounds[6];
153 int Level;
157
158private:
160 void operator=(const vtkTessellatedBoxSource&) = delete;
161};
162
163VTK_ABI_NAMESPACE_END
164#endif
object to represent cell connectivity
a simple class to control print indentation
Definition vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition vtkPoints.h:38
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:315