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 "vtkPolyDataAlgorithm.h"
41 
43 {
44 public:
45  static vtkTessellatedBoxSource *New();
47  virtual void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
52  vtkSetVector6Macro(Bounds, double);
54 
56 
61  vtkGetVector6Macro(Bounds, double);
63 
65 
67  vtkSetMacro(Level,int);
69 
71 
73  vtkGetMacro(Level,int);
75 
77 
81  vtkSetMacro(DuplicateSharedPoints, int);
82  vtkGetMacro(DuplicateSharedPoints, int);
83  vtkBooleanMacro(DuplicateSharedPoints, int);
85 
87 
89  vtkSetMacro(Quads, int);
90  vtkGetMacro(Quads, int);
91  vtkBooleanMacro(Quads, int);
93 
94 protected:
97 
99 
100  virtual int RequestInformation(vtkInformation *request,
101  vtkInformationVector **inputVector,
102  vtkInformationVector *outputVector);
104 
106 
108  virtual int RequestData(vtkInformation *request,
109  vtkInformationVector **inputVector,
110  vtkInformationVector *outpuVector);
112 
113 
114  void DuplicateSharedPointsMethod(double *bounds,
115  vtkPoints *points,
116  vtkCellArray *polys);
117 
118  void MinimalPointsMethod(double *bounds,
119  vtkPoints *points,
120  vtkCellArray *polys);
121 
123 
126  vtkIdType LocalFacePointCoordinatesToPointId(int f,
127  int i,
128  int j);
130 
132 
137  void BuildFace(vtkPoints *points,
138  vtkCellArray *polys,
139  vtkIdType firstPointId,
140  double facePoints[3][3],
141  int changed);
143 
144  double Bounds[6];
145  int Level;
147  int Quads;
148 
149 private:
150  vtkTessellatedBoxSource(const vtkTessellatedBoxSource&); // Not implemented.
151  void operator=(const vtkTessellatedBoxSource&); // Not implemented.
152 };
153 
154 #endif
#define VTK_GRAPHICS_EXPORT
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int vtkIdType
Definition: vtkType.h:255
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:37
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
object to represent cell connectivity
Definition: vtkCellArray.h:48
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