VTK
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 
37 #ifndef vtkTessellatedBoxSource_h
38 #define vtkTessellatedBoxSource_h
39 
40 #include "vtkFiltersSourcesModule.h" // For export macro
41 #include "vtkPolyDataAlgorithm.h"
42 
44 {
45 public:
46  static vtkTessellatedBoxSource *New();
48  virtual void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
53  vtkSetVector6Macro(Bounds, double);
55 
57 
62  vtkGetVector6Macro(Bounds, double);
64 
66 
68  vtkSetMacro(Level,int);
70 
72 
74  vtkGetMacro(Level,int);
76 
78 
82  vtkSetMacro(DuplicateSharedPoints, int);
83  vtkGetMacro(DuplicateSharedPoints, int);
84  vtkBooleanMacro(DuplicateSharedPoints, int);
86 
88 
90  vtkSetMacro(Quads, int);
91  vtkGetMacro(Quads, int);
92  vtkBooleanMacro(Quads, int);
94 
96 
100  vtkSetMacro(OutputPointsPrecision,int);
101  vtkGetMacro(OutputPointsPrecision,int);
103 
104 protected:
107 
109 
111  virtual int RequestData(vtkInformation *request,
112  vtkInformationVector **inputVector,
113  vtkInformationVector *outpuVector);
115 
116 
117  void DuplicateSharedPointsMethod(double *bounds,
118  vtkPoints *points,
119  vtkCellArray *polys);
120 
121  void MinimalPointsMethod(double *bounds,
122  vtkPoints *points,
123  vtkCellArray *polys);
124 
126 
129  vtkIdType LocalFacePointCoordinatesToPointId(int f,
130  int i,
131  int j);
133 
135 
140  void BuildFace(vtkPoints *points,
141  vtkCellArray *polys,
142  vtkIdType firstPointId,
143  double facePoints[3][3],
144  int changed);
146 
147  double Bounds[6];
148  int Level;
150  int Quads;
152 
153 private:
154  vtkTessellatedBoxSource(const vtkTessellatedBoxSource&); // Not implemented.
155  void operator=(const vtkTessellatedBoxSource&); // Not implemented.
156 };
157 
158 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int vtkIdType
Definition: vtkType.h:275
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
object to represent cell connectivity
Definition: vtkCellArray.h:49
Create a polygonal representation of a box with a given level of subdivision.
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:38