VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
42 class VTKFILTERSCORE_EXPORT vtkSynchronizedTemplates3D : public vtkPolyDataAlgorithm
43 {
44 public:
45  static vtkSynchronizedTemplates3D *New();
46 
47  vtkTypeMacro(vtkSynchronizedTemplates3D,vtkPolyDataAlgorithm);
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 
139  int *GetExecuteExtent() {return this->ExecuteExtent;}
140  void ThreadedExecute(vtkImageData *data, vtkInformation *inInfo,
141  vtkInformation *outInfo,
142  int *exExt, vtkDataArray *inScalars);
144 
146 
149  void SetInputMemoryLimit(unsigned long limit);
150  unsigned long GetInputMemoryLimit();
152 
154 
156  vtkSetMacro(ArrayComponent, int);
157  vtkGetMacro(ArrayComponent, int);
159 
160 protected:
163 
167  vtkContourValues *ContourValues;
168 
169  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
170  virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
171  virtual int FillInputPortInformation(int port, vtkInformation *info);
172 
173  int ExecuteExtent[6];
174 
176 
178 private:
179  vtkSynchronizedTemplates3D(const vtkSynchronizedTemplates3D&); // Not implemented.
180  void operator=(const vtkSynchronizedTemplates3D&); // Not implemented.
181 };
182 
183 
184 // template table.
185 //BTX
186 
187 extern int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[];
188 extern int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2[];
189 
190 //ETX
191 
192 #endif
193 
int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2[]
void SetValue(int i, double value)
generate isosurface from structured points
int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[]
void GetValues(double *contourValues)
void GenerateValues(int numContours, double range[2])
void GenerateValues(int numContours, double rangeStart, double rangeEnd)