VTK  9.7.1
vtkGridSynchronizedTemplates3D.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
21 #ifndef vtkGridSynchronizedTemplates3D_h
22 #define vtkGridSynchronizedTemplates3D_h
23 
24 #include "vtkContourValues.h" // Because it passes all the calls to it
25 #include "vtkFiltersCoreModule.h" // For export macro
26 #include "vtkPolyDataAlgorithm.h"
27 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
28 
29 VTK_ABI_NAMESPACE_BEGIN
30 class vtkStructuredGrid;
31 
33  : public vtkPolyDataAlgorithm
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  vtkMTimeType GetMTime() override;
44 
46 
52  vtkSetMacro(ComputeNormals, vtkTypeBool);
53  vtkGetMacro(ComputeNormals, vtkTypeBool);
54  vtkBooleanMacro(ComputeNormals, vtkTypeBool);
56 
58 
66  vtkSetMacro(ComputeGradients, vtkTypeBool);
67  vtkGetMacro(ComputeGradients, vtkTypeBool);
68  vtkBooleanMacro(ComputeGradients, vtkTypeBool);
70 
72 
75  vtkSetMacro(ComputeScalars, vtkTypeBool);
76  vtkGetMacro(ComputeScalars, vtkTypeBool);
77  vtkBooleanMacro(ComputeScalars, vtkTypeBool);
79 
81 
85  vtkSetMacro(GenerateTriangles, vtkTypeBool);
86  vtkGetMacro(GenerateTriangles, vtkTypeBool);
87  vtkBooleanMacro(GenerateTriangles, vtkTypeBool);
89 
94  void SetValue(int i, double value) { this->ContourValues->SetValue(i, value); }
95 
99  double GetValue(int i) { return this->ContourValues->GetValue(i); }
100 
105  double* GetValues() { return this->ContourValues->GetValues(); }
106 
112  void GetValues(double* contourValues) { this->ContourValues->GetValues(contourValues); }
113 
119  void SetNumberOfContours(int number) { this->ContourValues->SetNumberOfContours(number); }
120 
124  vtkIdType GetNumberOfContours() { return this->ContourValues->GetNumberOfContours(); }
125 
130  void GenerateValues(int numContours, double range[2])
131  {
132  this->ContourValues->GenerateValues(numContours, range);
133  }
134 
139  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
140  {
141  this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
142  }
143 
147  void ThreadedExecute(
148  vtkStructuredGrid* input, vtkInformationVector** inputVector, vtkInformation* outInfo);
149 
154  void SetInputMemoryLimit(long limit);
155 
157 
162  vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
163  vtkGetMacro(OutputPointsPrecision, int);
165 
166 protected:
168  ~vtkGridSynchronizedTemplates3D() override;
169 
172  int FillInputPortInformation(int port, vtkInformation* info) override;
173 
178 
180 
181  int MinimumPieceSize[3];
183 
184 private:
186  void operator=(const vtkGridSynchronizedTemplates3D&) = delete;
187 };
188 
189 VTK_ABI_NAMESPACE_END
190 #endif
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
helper object to manage setting and generating contour values
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:318
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
generate isosurface from structured grids
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.
int vtkIdType
Definition: vtkType.h:363
void GetValues(double *contourValues)
Fill a supplied list with contour values.
void SetValue(int i, double value)
Set a particular contour value at contour number i.
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual vtkMTimeType GetMTime()
Return this object's modified time.
topologically regular array of data
double * GetValues()
Get a pointer to an array of contour values.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
#define VTK_MARSHALAUTO
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType GetNumberOfContours()
Get the number of contours in the list of contour values.