VTK  9.2.20230327
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 =========================================================================*/
34 #ifndef vtkSynchronizedTemplates3D_h
35 #define vtkSynchronizedTemplates3D_h
36 
37 #include "vtkContourValues.h" // Passes calls through
38 #include "vtkFiltersCoreModule.h" // For export macro
39 #include "vtkPolyDataAlgorithm.h"
40 
41 VTK_ABI_NAMESPACE_BEGIN
42 class vtkImageData;
43 
44 class VTKFILTERSCORE_EXPORT vtkSynchronizedTemplates3D : public vtkPolyDataAlgorithm
45 {
46 public:
48 
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
55  vtkMTimeType GetMTime() override;
56 
58 
64  vtkSetMacro(ComputeNormals, vtkTypeBool);
65  vtkGetMacro(ComputeNormals, vtkTypeBool);
66  vtkBooleanMacro(ComputeNormals, vtkTypeBool);
68 
70 
78  vtkSetMacro(ComputeGradients, vtkTypeBool);
79  vtkGetMacro(ComputeGradients, vtkTypeBool);
80  vtkBooleanMacro(ComputeGradients, vtkTypeBool);
82 
84 
87  vtkSetMacro(ComputeScalars, vtkTypeBool);
88  vtkGetMacro(ComputeScalars, vtkTypeBool);
89  vtkBooleanMacro(ComputeScalars, vtkTypeBool);
91 
93 
97  vtkSetMacro(GenerateTriangles, vtkTypeBool);
98  vtkGetMacro(GenerateTriangles, vtkTypeBool);
99  vtkBooleanMacro(GenerateTriangles, vtkTypeBool);
101 
106  void SetValue(int i, double value) { this->ContourValues->SetValue(i, value); }
107 
111  double GetValue(int i) { return this->ContourValues->GetValue(i); }
112 
117  double* GetValues() { return this->ContourValues->GetValues(); }
118 
124  void GetValues(double* contourValues) { this->ContourValues->GetValues(contourValues); }
125 
131  void SetNumberOfContours(int number) { this->ContourValues->SetNumberOfContours(number); }
132 
136  vtkIdType GetNumberOfContours() { return this->ContourValues->GetNumberOfContours(); }
137 
142  void GenerateValues(int numContours, double range[2])
143  {
144  this->ContourValues->GenerateValues(numContours, range);
145  }
146 
151  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
152  {
153  this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
154  }
155 
157  vtkImageData* data, vtkInformation* inInfo, vtkInformation* outInfo, vtkDataArray* inScalars);
158 
160 
165  void SetInputMemoryLimit(unsigned long limit);
166  unsigned long GetInputMemoryLimit();
168 
170 
173  vtkSetMacro(ArrayComponent, int);
174  vtkGetMacro(ArrayComponent, int);
176 
177 protected:
180 
185 
189 
191 
193 
194 private:
196  void operator=(const vtkSynchronizedTemplates3D&) = delete;
197 };
198 
199 // template table.
200 
201 extern int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[];
202 extern int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2[];
203 
204 VTK_ABI_NAMESPACE_END
205 #endif
helper object to manage setting and generating contour values
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:166
topologically and geometrically regular array of data
Definition: vtkImageData.h:164
a simple class to control print indentation
Definition: vtkIndent.h:120
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
generate isosurface from structured points
void SetValue(int i, double value)
Set a particular contour value at contour number i.
void SetInputMemoryLimit(unsigned long limit)
Determines the chunk size for streaming.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
vtkIdType GetNumberOfContours()
Get the number of contours in the list of contour values.
void ThreadedExecute(vtkImageData *data, vtkInformation *inInfo, vtkInformation *outInfo, vtkDataArray *inScalars)
vtkMTimeType GetMTime() override
Because we delegate to vtkContourValues.
void GetValues(double *contourValues)
Fill a supplied list with contour values.
static vtkSynchronizedTemplates3D * New()
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
double GetValue(int i)
Get the ith contour value.
double * GetValues()
Get a pointer to an array of contour values.
unsigned long GetInputMemoryLimit()
Determines the chunk size for streaming.
~vtkSynchronizedTemplates3D() override
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.
@ info
Definition: vtkX3D.h:388
@ value
Definition: vtkX3D.h:232
@ port
Definition: vtkX3D.h:459
@ range
Definition: vtkX3D.h:250
@ data
Definition: vtkX3D.h:327
int vtkTypeBool
Definition: vtkABI.h:71
int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2[]
int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[]
int vtkIdType
Definition: vtkType.h:327
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:282