VTK
vtkSynchronizedTemplates3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSynchronizedTemplates3D.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 =========================================================================*/
33 #ifndef vtkSynchronizedTemplates3D_h
34 #define vtkSynchronizedTemplates3D_h
35 
36 #include "vtkFiltersCoreModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 #include "vtkContourValues.h" // Passes calls through
39 
40 class vtkImageData;
41 
43 {
44 public:
46 
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51  unsigned long int GetMTime();
52 
54 
58  vtkSetMacro(ComputeNormals,int);
59  vtkGetMacro(ComputeNormals,int);
60  vtkBooleanMacro(ComputeNormals,int);
62 
64 
70  vtkSetMacro(ComputeGradients,int);
71  vtkGetMacro(ComputeGradients,int);
72  vtkBooleanMacro(ComputeGradients,int);
74 
76 
77  vtkSetMacro(ComputeScalars,int);
78  vtkGetMacro(ComputeScalars,int);
79  vtkBooleanMacro(ComputeScalars,int);
81 
83 
85  vtkSetMacro(GenerateTriangles,int);
86  vtkGetMacro(GenerateTriangles,int);
87  vtkBooleanMacro(GenerateTriangles,int);
89 
92  void SetValue(int i, double value) {this->ContourValues->SetValue(i,value);}
93 
95  double GetValue(int i) {return this->ContourValues->GetValue(i);}
96 
99  double *GetValues() {return this->ContourValues->GetValues();}
100 
102 
105  void GetValues(double *contourValues) {
106  this->ContourValues->GetValues(contourValues);}
108 
110 
113  void SetNumberOfContours(int number) {
114  this->ContourValues->SetNumberOfContours(number);}
116 
118 
120  return this->ContourValues->GetNumberOfContours();}
122 
124 
126  void GenerateValues(int numContours, double range[2]) {
127  this->ContourValues->GenerateValues(numContours, range);}
129 
131 
133  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
134  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
136 
137  void ThreadedExecute(vtkImageData *data,
138  vtkInformation *inInfo,
139  vtkInformation *outInfo,
140  vtkDataArray *inScalars);
141 
143 
146  void SetInputMemoryLimit(unsigned long limit);
147  unsigned long GetInputMemoryLimit();
149 
151 
153  vtkSetMacro(ArrayComponent, int);
154  vtkGetMacro(ArrayComponent, int);
156 
157 protected:
160 
165 
169 
171 
173 
174 private:
175  vtkSynchronizedTemplates3D(const vtkSynchronizedTemplates3D&); // Not implemented.
176  void operator=(const vtkSynchronizedTemplates3D&); // Not implemented.
177 };
178 
179 
180 // template table.
181 //BTX
182 
185 
186 //ETX
187 
188 #endif
189 
helper object to manage setting and generating contour values
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2[]
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSCORE_EXPORT
void SetValue(int i, double value)
generate isosurface from structured points
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 and geometrically regular array of data
Definition: vtkImageData.h:44
int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[]
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
void GetValues(double *contourValues)
void GenerateValues(int numContours, double range[2])
Store zero or more vtkInformation instances.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)