VTK  9.0.1
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 "vtkContourValues.h" // Passes calls through
35 #include "vtkFiltersSMPModule.h" // For export macro
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) { this->ContourValues->GetValues(contourValues); }
122 
128  void SetNumberOfContours(int number) { this->ContourValues->SetNumberOfContours(number); }
129 
133  vtkIdType GetNumberOfContours() { return this->ContourValues->GetNumberOfContours(); }
134 
139  void GenerateValues(int numContours, double range[2])
140  {
141  this->ContourValues->GenerateValues(numContours, range);
142  }
143 
148  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
149  {
150  this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
151  }
152 
153  void ThreadedExecute(
154  vtkImageData* data, vtkInformation* inInfo, vtkInformation* outInfo, vtkDataArray* inScalars);
155 
157 
162  void SetInputMemoryLimit(unsigned long limit);
163  unsigned long GetInputMemoryLimit();
165 
167 
170  vtkSetMacro(ArrayComponent, int);
171  vtkGetMacro(ArrayComponent, int);
173 
174 protected:
177 
182 
185  int FillInputPortInformation(int port, vtkInformation* info) override;
186 
188 
190 
191 private:
193  void operator=(const vtkThreadedSynchronizedTemplates3D&) = delete;
194 };
195 
196 // template table.
197 
198 extern int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_1[];
199 extern int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2[];
200 
201 #endif // VTK_LEGACY_REMOVE
202 #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:293
int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2[]
vtkIdType GetNumberOfContours()
Get the number of contours in the list of contour values.
int vtkIdType
Definition: vtkType.h:338
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:41
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:49
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.