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 
110  virtual int RequestInformation(vtkInformation *request,
111  vtkInformationVector **inputVector,
112  vtkInformationVector *outputVector);
114 
116 
118  virtual int RequestData(vtkInformation *request,
119  vtkInformationVector **inputVector,
120  vtkInformationVector *outpuVector);
122 
123 
124  void DuplicateSharedPointsMethod(double *bounds,
125  vtkPoints *points,
126  vtkCellArray *polys);
127 
128  void MinimalPointsMethod(double *bounds,
129  vtkPoints *points,
130  vtkCellArray *polys);
131 
133 
136  vtkIdType LocalFacePointCoordinatesToPointId(int f,
137  int i,
138  int j);
140 
142 
147  void BuildFace(vtkPoints *points,
148  vtkCellArray *polys,
149  vtkIdType firstPointId,
150  double facePoints[3][3],
151  int changed);
153 
154  double Bounds[6];
155  int Level;
157  int Quads;
159 
160 private:
161  vtkTessellatedBoxSource(const vtkTessellatedBoxSource&); // Not implemented.
162  void operator=(const vtkTessellatedBoxSource&); // Not implemented.
163 };
164 
165 #endif
GLclampf f
Definition: vtkgl.h:14181
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
int vtkIdType
Definition: vtkType.h:268
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
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
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSSOURCES_EXPORT
#define vtkSetVector6Macro(name, type)
Definition: vtkSetGet.h:350
object to represent cell connectivity
Definition: vtkCellArray.h:49
GLsizei const GLfloat * points
Definition: vtkgl.h:14786
Create a polygonal representation of a box with a given level of subdivision.
Store zero or more vtkInformation instances.
#define vtkBooleanMacro(name, type)
Definition: vtkSetGet.h:234
#define vtkGetVector6Macro(name, type)
Definition: vtkSetGet.h:370
represent and manipulate 3D points
Definition: vtkPoints.h:39
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69