VTK
vtkThreadedSynchronizedTemplates3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkThreadedSynchronizedTemplates3D.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 vtkThreadedSynchronizedTemplates3D_h
34 #define vtkThreadedSynchronizedTemplates3D_h
35 
36 #include "vtkFiltersSMPModule.h" // For export macro
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 
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:
176  void operator=(const vtkThreadedSynchronizedTemplates3D&); // Not implemented.
177 };
178 
179 
180 // template table.
181 //BTX
182 
185 
186 //ETX
187 
188 #endif
vtkThreadedSynchronizedTemplates3D::GetMTime
unsigned long int GetMTime()
VTKFILTERSSMP_EXPORT
#define VTKFILTERSSMP_EXPORT
Definition: vtkFiltersSMPModule.h:15
vtkgl::data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: vtkgl.h:11339
vtkThreadedSynchronizedTemplates3D::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkThreadedSynchronizedTemplates3D::ContourValues
vtkContourValues * ContourValues
Definition: vtkThreadedSynchronizedTemplates3D.h:164
VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2
int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2[]
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkThreadedSynchronizedTemplates3D::GetInputMemoryLimit
unsigned long GetInputMemoryLimit()
vtkThreadedSynchronizedTemplates3D::GetValues
void GetValues(double *contourValues)
Definition: vtkThreadedSynchronizedTemplates3D.h:105
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkThreadedSynchronizedTemplates3D::ComputeNormals
int ComputeNormals
Definition: vtkThreadedSynchronizedTemplates3D.h:161
vtkThreadedSynchronizedTemplates3D::~vtkThreadedSynchronizedTemplates3D
~vtkThreadedSynchronizedTemplates3D()
vtkThreadedSynchronizedTemplates3D::SetValue
void SetValue(int i, double value)
Definition: vtkThreadedSynchronizedTemplates3D.h:92
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkThreadedSynchronizedTemplates3D::New
static vtkThreadedSynchronizedTemplates3D * New()
VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_1
int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_1[]
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
vtkThreadedSynchronizedTemplates3D::vtkThreadedSynchronizedTemplates3D
vtkThreadedSynchronizedTemplates3D()
vtkThreadedSynchronizedTemplates3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkThreadedSynchronizedTemplates3D::SetNumberOfContours
void SetNumberOfContours(int number)
Definition: vtkThreadedSynchronizedTemplates3D.h:113
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkThreadedSynchronizedTemplates3D::SetInputMemoryLimit
void SetInputMemoryLimit(unsigned long limit)
vtkThreadedSynchronizedTemplates3D::ComputeScalars
int ComputeScalars
Definition: vtkThreadedSynchronizedTemplates3D.h:163
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkgl::limit
GLint limit
Definition: vtkgl.h:17746
vtkMultiBlockDataSetAlgorithm.h
vtkThreadedSynchronizedTemplates3D::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkThreadedSynchronizedTemplates3D::GetNumberOfContours
int GetNumberOfContours()
Definition: vtkThreadedSynchronizedTemplates3D.h:119
vtkThreadedSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Definition: vtkThreadedSynchronizedTemplates3D.h:133
vtkThreadedSynchronizedTemplates3D::ArrayComponent
int ArrayComponent
Definition: vtkThreadedSynchronizedTemplates3D.h:170
vtkContourValues.h
vtkThreadedSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double range[2])
Definition: vtkThreadedSynchronizedTemplates3D.h:126
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
vtkThreadedSynchronizedTemplates3D::GenerateTriangles
int GenerateTriangles
Definition: vtkThreadedSynchronizedTemplates3D.h:172
vtkThreadedSynchronizedTemplates3D::ThreadedExecute
void ThreadedExecute(vtkImageData *data, vtkInformation *inInfo, vtkInformation *outInfo, vtkDataArray *inScalars)
vtkThreadedSynchronizedTemplates3D::ComputeGradients
int ComputeGradients
Definition: vtkThreadedSynchronizedTemplates3D.h:162
vtkThreadedSynchronizedTemplates3D::GetValues
double * GetValues()
Definition: vtkThreadedSynchronizedTemplates3D.h:99
vtkThreadedSynchronizedTemplates3D::GetValue
double GetValue(int i)
Definition: vtkThreadedSynchronizedTemplates3D.h:95
vtkThreadedSynchronizedTemplates3D
generate isosurface from structured points
Definition: vtkThreadedSynchronizedTemplates3D.h:43
vtkThreadedSynchronizedTemplates3D::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkFiltersSMPModule.h
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:32