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 "vtkPolyDataAlgorithm.h"
37 #include "vtkContourValues.h" // Passes calls through
38 
39 class vtkImageData;
40 
42 {
43 public:
45 
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50  unsigned long int GetMTime();
51 
53 
57  vtkSetMacro(ComputeNormals,int);
58  vtkGetMacro(ComputeNormals,int);
59  vtkBooleanMacro(ComputeNormals,int);
61 
63 
69  vtkSetMacro(ComputeGradients,int);
70  vtkGetMacro(ComputeGradients,int);
71  vtkBooleanMacro(ComputeGradients,int);
73 
75 
76  vtkSetMacro(ComputeScalars,int);
77  vtkGetMacro(ComputeScalars,int);
78  vtkBooleanMacro(ComputeScalars,int);
80 
83  void SetValue(int i, double value) {this->ContourValues->SetValue(i,value);}
84 
86  double GetValue(int i) {return this->ContourValues->GetValue(i);}
87 
90  double *GetValues() {return this->ContourValues->GetValues();}
91 
93 
96  void GetValues(double *contourValues) {
97  this->ContourValues->GetValues(contourValues);}
99 
101 
104  void SetNumberOfContours(int number) {
105  this->ContourValues->SetNumberOfContours(number);}
107 
109 
111  return this->ContourValues->GetNumberOfContours();}
113 
115 
117  void GenerateValues(int numContours, double range[2]) {
118  this->ContourValues->GenerateValues(numContours, range);}
120 
122 
124  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
125  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
127 
129 
130  int *GetExecuteExtent() {return this->ExecuteExtent;}
131  void ThreadedExecute(vtkImageData *data, vtkInformation *inInfo,
132  vtkInformation *outInfo,
133  int *exExt, vtkDataArray *inScalars);
135 
137 
140  void SetInputMemoryLimit(unsigned long limit);
141  unsigned long GetInputMemoryLimit();
143 
145 
147  vtkSetMacro(ArrayComponent, int);
148  vtkGetMacro(ArrayComponent, int);
150 
151 protected:
154 
159 
163 
164  int ExecuteExtent[6];
165 
167 
168 private:
169  vtkSynchronizedTemplates3D(const vtkSynchronizedTemplates3D&); // Not implemented.
170  void operator=(const vtkSynchronizedTemplates3D&); // Not implemented.
171 };
172 
173 
174 // template table.
175 //BTX
176 
179 
180 //ETX
181 
182 #endif
183