VTK
vtkGridSynchronizedTemplates3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGridSynchronizedTemplates3D.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 =========================================================================*/
29 #ifndef vtkGridSynchronizedTemplates3D_h
30 #define vtkGridSynchronizedTemplates3D_h
31 
32 #include "vtkFiltersCoreModule.h" // For export macro
33 #include "vtkPolyDataAlgorithm.h"
34 #include "vtkContourValues.h" // Because it passes all the calls to it
35 
36 class vtkStructuredGrid;
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46  unsigned long int GetMTime();
47 
49 
53  vtkSetMacro(ComputeNormals,int);
54  vtkGetMacro(ComputeNormals,int);
55  vtkBooleanMacro(ComputeNormals,int);
57 
59 
65  vtkSetMacro(ComputeGradients,int);
66  vtkGetMacro(ComputeGradients,int);
67  vtkBooleanMacro(ComputeGradients,int);
69 
71 
72  vtkSetMacro(ComputeScalars,int);
73  vtkGetMacro(ComputeScalars,int);
74  vtkBooleanMacro(ComputeScalars,int);
76 
78 
80  vtkSetMacro(GenerateTriangles,int);
81  vtkGetMacro(GenerateTriangles,int);
82  vtkBooleanMacro(GenerateTriangles,int);
84 
87  void SetValue(int i, double value) {this->ContourValues->SetValue(i,value);}
88 
90  double GetValue(int i) {return this->ContourValues->GetValue(i);}
91 
94  double *GetValues() {return this->ContourValues->GetValues();}
95 
97 
100  void GetValues(double *contourValues) {
101  this->ContourValues->GetValues(contourValues);}
103 
105 
108  void SetNumberOfContours(int number) {
109  this->ContourValues->SetNumberOfContours(number);}
111 
113 
115  return this->ContourValues->GetNumberOfContours();}
117 
119 
121  void GenerateValues(int numContours, double range[2]) {
122  this->ContourValues->GenerateValues(numContours, range);}
124 
126 
128  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
129  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
131 
133 
135  vtkInformationVector **inVec,
136  vtkInformation *outInfo);
138 
142 
144 
147  vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
148  vtkGetMacro(OutputPointsPrecision, int);
150 
151 protected:
154 
158 
163 
165 
166  int MinimumPieceSize[3];
168 
169 private:
171  void operator=(const vtkGridSynchronizedTemplates3D&); // Not implemented.
172 };
173 
174 
175 #endif
vtkGridSynchronizedTemplates3D::ComputeGradients
int ComputeGradients
Definition: vtkGridSynchronizedTemplates3D.h:160
vtkGridSynchronizedTemplates3D::GenerateTriangles
int GenerateTriangles
Definition: vtkGridSynchronizedTemplates3D.h:162
vtkGridSynchronizedTemplates3D::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkGridSynchronizedTemplates3D::ContourValues
vtkContourValues * ContourValues
Definition: vtkGridSynchronizedTemplates3D.h:164
vtkGridSynchronizedTemplates3D::vtkGridSynchronizedTemplates3D
vtkGridSynchronizedTemplates3D()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:63
vtkGridSynchronizedTemplates3D::GetValues
double * GetValues()
Definition: vtkGridSynchronizedTemplates3D.h:94
vtkGridSynchronizedTemplates3D::GetNumberOfContours
int GetNumberOfContours()
Definition: vtkGridSynchronizedTemplates3D.h:114
vtkGridSynchronizedTemplates3D
generate isosurface from structured grids
Definition: vtkGridSynchronizedTemplates3D.h:39
vtkgl::input
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
vtkGridSynchronizedTemplates3D::~vtkGridSynchronizedTemplates3D
~vtkGridSynchronizedTemplates3D()
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
vtkGridSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double range[2])
Definition: vtkGridSynchronizedTemplates3D.h:121
vtkFiltersCoreModule.h
vtkGridSynchronizedTemplates3D::GetValue
double GetValue(int i)
Definition: vtkGridSynchronizedTemplates3D.h:90
vtkPolyDataAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkGridSynchronizedTemplates3D::SetNumberOfContours
void SetNumberOfContours(int number)
Definition: vtkGridSynchronizedTemplates3D.h:108
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
vtkGridSynchronizedTemplates3D::GetMTime
unsigned long int GetMTime()
VTKFILTERSCORE_EXPORT
#define VTKFILTERSCORE_EXPORT
Definition: vtkFiltersCoreModule.h:15
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkgl::limit
GLint limit
Definition: vtkgl.h:17746
vtkGridSynchronizedTemplates3D::ComputeScalars
int ComputeScalars
Definition: vtkGridSynchronizedTemplates3D.h:161
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkContourValues.h
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkGridSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Definition: vtkGridSynchronizedTemplates3D.h:128
vtkGridSynchronizedTemplates3D::SetInputMemoryLimit
void SetInputMemoryLimit(long limit)
vtkGridSynchronizedTemplates3D::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkGridSynchronizedTemplates3D.h:167
vtkGridSynchronizedTemplates3D::ComputeNormals
int ComputeNormals
Definition: vtkGridSynchronizedTemplates3D.h:159
vtkGridSynchronizedTemplates3D::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGridSynchronizedTemplates3D::New
static vtkGridSynchronizedTemplates3D * New()
vtkGridSynchronizedTemplates3D::GetValues
void GetValues(double *contourValues)
Definition: vtkGridSynchronizedTemplates3D.h:100
vtkGridSynchronizedTemplates3D::ThreadedExecute
void ThreadedExecute(vtkStructuredGrid *input, vtkInformationVector **inVec, vtkInformation *outInfo)
vtkGridSynchronizedTemplates3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGridSynchronizedTemplates3D::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGridSynchronizedTemplates3D::SetValue
void SetValue(int i, double value)
Definition: vtkGridSynchronizedTemplates3D.h:87
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44