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 
134  void ThreadedExecute(vtkStructuredGrid *input,
135  vtkInformationVector **inVec,
136  vtkInformation *outInfo);
138 
141  void SetInputMemoryLimit(long limit);
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
helper object to manage setting and generating contour values
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
void GenerateValues(int numContours, double range[2])
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
generate isosurface from structured grids
#define VTKFILTERSCORE_EXPORT
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Superclass for algorithms that produce only polydata as output.
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically regular array of data
Store zero or more vtkInformation instances.