VTK  9.2.6
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 
47 #ifndef vtkTessellatedBoxSource_h
48 #define vtkTessellatedBoxSource_h
49 
50 #include "vtkFiltersSourcesModule.h" // For export macro
51 #include "vtkPolyDataAlgorithm.h"
52 
53 class VTKFILTERSSOURCES_EXPORT vtkTessellatedBoxSource : public vtkPolyDataAlgorithm
54 {
55 public:
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
61 
65  vtkSetVector6Macro(Bounds, double);
67 
69 
76  vtkGetVector6Macro(Bounds, double);
78 
80 
84  vtkSetMacro(Level, int);
86 
88 
92  vtkGetMacro(Level, int);
94 
96 
102  vtkSetMacro(DuplicateSharedPoints, vtkTypeBool);
103  vtkGetMacro(DuplicateSharedPoints, vtkTypeBool);
104  vtkBooleanMacro(DuplicateSharedPoints, vtkTypeBool);
106 
108 
112  vtkSetMacro(Quads, vtkTypeBool);
113  vtkGetMacro(Quads, vtkTypeBool);
114  vtkBooleanMacro(Quads, vtkTypeBool);
116 
118 
123  vtkSetMacro(OutputPointsPrecision, int);
124  vtkGetMacro(OutputPointsPrecision, int);
126 
127 protected:
130 
135  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
136  vtkInformationVector* outputVector) override;
137 
139 
140  void MinimalPointsMethod(double* bounds, vtkPoints* points, vtkCellArray* polys);
141 
150 
160  void BuildFace(vtkPoints* points, vtkCellArray* polys, vtkIdType firstPointId,
161  double facePoints[3][3], int changed);
162 
163  double Bounds[6];
164  int Level;
168 
169 private:
171  void operator=(const vtkTessellatedBoxSource&) = delete;
172 };
173 
174 #endif
object to represent cell connectivity
Definition: vtkCellArray.h:196
a simple class to control print indentation
Definition: vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:49
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
static vtkTessellatedBoxSource * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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)
@ points
Definition: vtkX3D.h:452
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:332