VTK  9.1.0
vtkTessellatedBoxSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkTessellatedBoxSource.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15
64#ifndef vtkTessellatedBoxSource_h
65#define vtkTessellatedBoxSource_h
66
67#include "vtkFiltersSourcesModule.h" // For export macro
69
70class VTKFILTERSSOURCES_EXPORT vtkTessellatedBoxSource : public vtkPolyDataAlgorithm
71{
72public:
75 void PrintSelf(ostream& os, vtkIndent indent) override;
76
78
82 vtkSetVector6Macro(Bounds, double);
84
86
93 vtkGetVector6Macro(Bounds, double);
95
97
101 vtkSetMacro(Level, int);
103
105
109 vtkGetMacro(Level, int);
111
113
119 vtkSetMacro(DuplicateSharedPoints, vtkTypeBool);
120 vtkGetMacro(DuplicateSharedPoints, vtkTypeBool);
121 vtkBooleanMacro(DuplicateSharedPoints, vtkTypeBool);
123
125
129 vtkSetMacro(Quads, vtkTypeBool);
130 vtkGetMacro(Quads, vtkTypeBool);
131 vtkBooleanMacro(Quads, vtkTypeBool);
133
135
140 vtkSetMacro(OutputPointsPrecision, int);
141 vtkGetMacro(OutputPointsPrecision, int);
143
144protected:
147
153 vtkInformationVector* outputVector) override;
154
155 void DuplicateSharedPointsMethod(double* bounds, vtkPoints* points, vtkCellArray* polys);
156
157 void MinimalPointsMethod(double* bounds, vtkPoints* points, vtkCellArray* polys);
158
167
177 void BuildFace(vtkPoints* points, vtkCellArray* polys, vtkIdType firstPointId,
178 double facePoints[3][3], int changed);
179
180 double Bounds[6];
181 int Level;
185
186private:
188 void operator=(const vtkTessellatedBoxSource&) = delete;
189};
190
191#endif
object to represent cell connectivity
Definition: vtkCellArray.h:290
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:143
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:69
int vtkIdType
Definition: vtkType.h:332