VTK  9.4.20241217
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
27
28VTK_ABI_NAMESPACE_BEGIN
30
31class VTKFILTERSCORE_EXPORT vtkGridSynchronizedTemplates3D : public vtkPolyDataAlgorithm
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
42
44
50 vtkSetMacro(ComputeNormals, vtkTypeBool);
51 vtkGetMacro(ComputeNormals, vtkTypeBool);
52 vtkBooleanMacro(ComputeNormals, vtkTypeBool);
54
56
64 vtkSetMacro(ComputeGradients, vtkTypeBool);
65 vtkGetMacro(ComputeGradients, vtkTypeBool);
66 vtkBooleanMacro(ComputeGradients, vtkTypeBool);
68
70
73 vtkSetMacro(ComputeScalars, vtkTypeBool);
74 vtkGetMacro(ComputeScalars, vtkTypeBool);
75 vtkBooleanMacro(ComputeScalars, vtkTypeBool);
77
79
83 vtkSetMacro(GenerateTriangles, vtkTypeBool);
84 vtkGetMacro(GenerateTriangles, vtkTypeBool);
85 vtkBooleanMacro(GenerateTriangles, vtkTypeBool);
87
92 void SetValue(int i, double value) { this->ContourValues->SetValue(i, value); }
93
97 double GetValue(int i) { return this->ContourValues->GetValue(i); }
98
103 double* GetValues() { return this->ContourValues->GetValues(); }
104
110 void GetValues(double* contourValues) { this->ContourValues->GetValues(contourValues); }
111
117 void SetNumberOfContours(int number) { this->ContourValues->SetNumberOfContours(number); }
118
122 vtkIdType GetNumberOfContours() { return this->ContourValues->GetNumberOfContours(); }
123
128 void GenerateValues(int numContours, double range[2])
129 {
130 this->ContourValues->GenerateValues(numContours, range);
131 }
132
137 void GenerateValues(int numContours, double rangeStart, double rangeEnd)
138 {
139 this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
140 }
141
146 vtkStructuredGrid* input, vtkInformationVector** inputVector, vtkInformation* outInfo);
147
152 void SetInputMemoryLimit(long limit);
153
155
160 vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
161 vtkGetMacro(OutputPointsPrecision, int);
163
164protected:
167
170 int FillInputPortInformation(int port, vtkInformation* info) override;
171
176
178
179 int MinimumPieceSize[3];
181
182private:
184 void operator=(const vtkGridSynchronizedTemplates3D&) = delete;
185};
186
187VTK_ABI_NAMESPACE_END
188#endif
helper object to manage setting and generating contour values
generate isosurface from structured grids
void SetInputMemoryLimit(long limit)
This filter will initiate streaming so that no piece requested from the input will be larger than thi...
void ThreadedExecute(vtkStructuredGrid *input, vtkInformationVector **inputVector, vtkInformation *outInfo)
Main execution.
void GetValues(double *contourValues)
Fill a supplied list with contour values.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
vtkMTimeType GetMTime() override
Because we delegate to vtkContourValues.
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkGridSynchronizedTemplates3D() override
static vtkGridSynchronizedTemplates3D * New()
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
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.
double * GetValues()
Get a pointer to an array of contour values.
void SetValue(int i, double value)
Set a particular contour value at contour number i.
vtkIdType GetNumberOfContours()
Get the number of contours in the list of 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.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
topologically regular array of data
int vtkTypeBool
Definition vtkABI.h:64
int vtkIdType
Definition vtkType.h:315
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270