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:
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 
130  int i,
131  int j);
133 
135 
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
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkTessellatedBoxSource::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outpuVector)
vtkGetVector6Macro
#define vtkGetVector6Macro(name, type)
Definition: vtkSetGet.h:380
vtkTessellatedBoxSource::vtkTessellatedBoxSource
vtkTessellatedBoxSource()
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkTessellatedBoxSource::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkTessellatedBoxSource
Create a polygonal representation of a box with a given level of subdivision.
Definition: vtkTessellatedBoxSource.h:44
vtkFiltersSourcesModule.h
vtkgl::points
GLsizei const GLfloat * points
Definition: vtkgl.h:14786
vtkPolyDataAlgorithm.h
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkTessellatedBoxSource::BuildFace
void BuildFace(vtkPoints *points, vtkCellArray *polys, vtkIdType firstPointId, double facePoints[3][3], int changed)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkTessellatedBoxSource::Quads
int Quads
Definition: vtkTessellatedBoxSource.h:150
vtkTessellatedBoxSource::Level
int Level
Definition: vtkTessellatedBoxSource.h:148
vtkTessellatedBoxSource::DuplicateSharedPointsMethod
void DuplicateSharedPointsMethod(double *bounds, vtkPoints *points, vtkCellArray *polys)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkgl::f
GLclampf f
Definition: vtkgl.h:14181
vtkTessellatedBoxSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkTessellatedBoxSource.h:151
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkTessellatedBoxSource::New
static vtkTessellatedBoxSource * New()
vtkSetVector6Macro
#define vtkSetVector6Macro(name, type)
Definition: vtkSetGet.h:360
vtkTessellatedBoxSource::LocalFacePointCoordinatesToPointId
vtkIdType LocalFacePointCoordinatesToPointId(int f, int i, int j)
vtkTessellatedBoxSource::~vtkTessellatedBoxSource
~vtkTessellatedBoxSource()
vtkTessellatedBoxSource::MinimalPointsMethod
void MinimalPointsMethod(double *bounds, vtkPoints *points, vtkCellArray *polys)
vtkTessellatedBoxSource::DuplicateSharedPoints
int DuplicateSharedPoints
Definition: vtkTessellatedBoxSource.h:149
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44