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 
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 
vtkgl::data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: vtkgl.h:11339
vtkSynchronizedTemplates3D::SetInputMemoryLimit
void SetInputMemoryLimit(unsigned long limit)
vtkSynchronizedTemplates3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkSynchronizedTemplates3D::ThreadedExecute
void ThreadedExecute(vtkImageData *data, vtkInformation *inInfo, vtkInformation *outInfo, vtkDataArray *inScalars)
vtkSynchronizedTemplates3D::GenerateTriangles
int GenerateTriangles
Definition: vtkSynchronizedTemplates3D.h:172
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkSynchronizedTemplates3D::ComputeScalars
int ComputeScalars
Definition: vtkSynchronizedTemplates3D.h:163
vtkSynchronizedTemplates3D::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSynchronizedTemplates3D::New
static vtkSynchronizedTemplates3D * New()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
vtkSynchronizedTemplates3D::ContourValues
vtkContourValues * ContourValues
Definition: vtkSynchronizedTemplates3D.h:164
vtkFiltersCoreModule.h
vtkPolyDataAlgorithm.h
vtkSynchronizedTemplates3D::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkSynchronizedTemplates3D::GetValues
double * GetValues()
Definition: vtkSynchronizedTemplates3D.h:99
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkSynchronizedTemplates3D::~vtkSynchronizedTemplates3D
~vtkSynchronizedTemplates3D()
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double range[2])
Definition: vtkSynchronizedTemplates3D.h:126
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
VTKFILTERSCORE_EXPORT
#define VTKFILTERSCORE_EXPORT
Definition: vtkFiltersCoreModule.h:15
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1
int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[]
vtkSynchronizedTemplates3D::GetInputMemoryLimit
unsigned long GetInputMemoryLimit()
vtkSynchronizedTemplates3D::SetValue
void SetValue(int i, double value)
Definition: vtkSynchronizedTemplates3D.h:92
vtkSynchronizedTemplates3D::ComputeGradients
int ComputeGradients
Definition: vtkSynchronizedTemplates3D.h:162
vtkSynchronizedTemplates3D::ArrayComponent
int ArrayComponent
Definition: vtkSynchronizedTemplates3D.h:170
vtkgl::limit
GLint limit
Definition: vtkgl.h:17746
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2
int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2[]
vtkSynchronizedTemplates3D::GetValue
double GetValue(int i)
Definition: vtkSynchronizedTemplates3D.h:95
vtkSynchronizedTemplates3D::ComputeNormals
int ComputeNormals
Definition: vtkSynchronizedTemplates3D.h:161
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
vtkSynchronizedTemplates3D::GetNumberOfContours
int GetNumberOfContours()
Definition: vtkSynchronizedTemplates3D.h:119
vtkSynchronizedTemplates3D::vtkSynchronizedTemplates3D
vtkSynchronizedTemplates3D()
vtkSynchronizedTemplates3D
generate isosurface from structured points
Definition: vtkSynchronizedTemplates3D.h:43
vtkSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Definition: vtkSynchronizedTemplates3D.h:133
vtkSynchronizedTemplates3D::GetValues
void GetValues(double *contourValues)
Definition: vtkSynchronizedTemplates3D.h:105
vtkSynchronizedTemplates3D::GetMTime
unsigned long int GetMTime()
vtkSynchronizedTemplates3D::SetNumberOfContours
void SetNumberOfContours(int number)
Definition: vtkSynchronizedTemplates3D.h:113
vtkSynchronizedTemplates3D::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44