VTK  9.0.2
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 
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 
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
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
generate isosurface from structured points
vtkMTimeType GetMTime() override
Because we delegate to vtkContourValues.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIdType GetNumberOfContours()
Get the number of contours in the list of contour values.
void SetValue(int i, double value)
Set a particular contour value at contour number i.
double * GetValues()
Get a pointer to an array of contour values.
static vtkThreadedSynchronizedTemplates3D * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
double GetValue(int i)
Get the ith contour value.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
void ThreadedExecute(vtkImageData *data, vtkInformation *inInfo, vtkInformation *outInfo, vtkDataArray *inScalars)
void GetValues(double *contourValues)
Fill a supplied list with contour values.
void SetInputMemoryLimit(unsigned long limit)
Determines the chunk size for streaming.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
@ info
Definition: vtkX3D.h:382
@ value
Definition: vtkX3D.h:226
@ port
Definition: vtkX3D.h:453
@ range
Definition: vtkX3D.h:244
@ data
Definition: vtkX3D.h:321
int vtkTypeBool
Definition: vtkABI.h:69
int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_1[]
int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2[]
int vtkIdType
Definition: vtkType.h:338
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293