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 =========================================================================*/
31 #ifndef vtkThreadedSynchronizedTemplates3D_h
32 #define vtkThreadedSynchronizedTemplates3D_h
33 
34 #include "vtkFiltersSMPModule.h" // For export macro
36 #include "vtkContourValues.h" // Passes calls through
37 
38 class vtkImageData;
39 
40 #if !defined(VTK_LEGACY_REMOVE)
42 {
43 public:
45 
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
52  vtkMTimeType GetMTime() override;
53 
55 
61  vtkSetMacro(ComputeNormals,vtkTypeBool);
62  vtkGetMacro(ComputeNormals,vtkTypeBool);
63  vtkBooleanMacro(ComputeNormals,vtkTypeBool);
65 
67 
75  vtkSetMacro(ComputeGradients,vtkTypeBool);
76  vtkGetMacro(ComputeGradients,vtkTypeBool);
77  vtkBooleanMacro(ComputeGradients,vtkTypeBool);
79 
81 
84  vtkSetMacro(ComputeScalars,vtkTypeBool);
85  vtkGetMacro(ComputeScalars,vtkTypeBool);
86  vtkBooleanMacro(ComputeScalars,vtkTypeBool);
88 
90 
94  vtkSetMacro(GenerateTriangles,vtkTypeBool);
95  vtkGetMacro(GenerateTriangles,vtkTypeBool);
96  vtkBooleanMacro(GenerateTriangles,vtkTypeBool);
98 
103  void SetValue(int i, double value) {this->ContourValues->SetValue(i,value);}
104 
108  double GetValue(int i) {return this->ContourValues->GetValue(i);}
109 
114  double *GetValues() {return this->ContourValues->GetValues();}
115 
121  void GetValues(double *contourValues) {
122  this->ContourValues->GetValues(contourValues);}
123 
129  void SetNumberOfContours(int number) {
130  this->ContourValues->SetNumberOfContours(number);}
131 
136  return this->ContourValues->GetNumberOfContours();}
137 
142  void GenerateValues(int numContours, double range[2]) {
143  this->ContourValues->GenerateValues(numContours, range);}
144 
149  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
150  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
151 
152  void ThreadedExecute(vtkImageData *data,
153  vtkInformation *inInfo,
154  vtkInformation *outInfo,
155  vtkDataArray *inScalars);
156 
158 
163  void SetInputMemoryLimit(unsigned long limit);
164  unsigned long GetInputMemoryLimit();
166 
168 
171  vtkSetMacro(ArrayComponent, int);
172  vtkGetMacro(ArrayComponent, int);
174 
175 protected:
178 
183 
186  int FillInputPortInformation(int port, vtkInformation *info) override;
187 
189 
191 
192 private:
194  void operator=(const vtkThreadedSynchronizedTemplates3D&) = delete;
195 };
196 
197 
198 // template table.
199 
200 extern int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_1[];
201 extern int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2[];
202 
203 #endif //VTK_LEGACY_REMOVE
204 #endif
helper object to manage setting and generating contour values
double * GetValues()
Get a pointer to an array of contour values.
int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_1[]
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2[]
int GetNumberOfContours()
Get the number of contours in the list of contour values.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
generate isosurface from structured points
static vtkMultiBlockDataSetAlgorithm * New()
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
int vtkTypeBool
Definition: vtkABI.h:69
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
void SetValue(int i, double value)
Set a particular contour value at contour number i.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
virtual vtkMTimeType GetMTime()
Return this object's modified time.
void GetValues(double *contourValues)
Fill a supplied list with contour values.
double GetValue(int i)
Get the ith contour value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
Store zero or more vtkInformation instances.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.