VTK  9.5.20250903
vtkRectilinearSynchronizedTemplates.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
22#ifndef vtkRectilinearSynchronizedTemplates_h
23#define vtkRectilinearSynchronizedTemplates_h
24
25#include "vtkContourValues.h" // Passes calls through
26#include "vtkFiltersCoreModule.h" // For export macro
28#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
29
30VTK_ABI_NAMESPACE_BEGIN
32class vtkDataArray;
33
36{
37public:
39
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
47
49
55 vtkSetMacro(ComputeNormals, vtkTypeBool);
56 vtkGetMacro(ComputeNormals, vtkTypeBool);
57 vtkBooleanMacro(ComputeNormals, vtkTypeBool);
59
61
69 vtkSetMacro(ComputeGradients, vtkTypeBool);
70 vtkGetMacro(ComputeGradients, vtkTypeBool);
71 vtkBooleanMacro(ComputeGradients, vtkTypeBool);
73
75
78 vtkSetMacro(ComputeScalars, vtkTypeBool);
79 vtkGetMacro(ComputeScalars, vtkTypeBool);
80 vtkBooleanMacro(ComputeScalars, vtkTypeBool);
82
87 void SetValue(int i, double value) { this->ContourValues->SetValue(i, value); }
88
92 double GetValue(int i) { return this->ContourValues->GetValue(i); }
93
98 double* GetValues() { return this->ContourValues->GetValues(); }
99
105 void GetValues(double* contourValues) { this->ContourValues->GetValues(contourValues); }
106
112 void SetNumberOfContours(int number) { this->ContourValues->SetNumberOfContours(number); }
113
117 vtkIdType GetNumberOfContours() { return this->ContourValues->GetNumberOfContours(); }
118
123 void GenerateValues(int numContours, double range[2])
124 {
125 this->ContourValues->GenerateValues(numContours, range);
126 }
127
132 void GenerateValues(int numContours, double rangeStart, double rangeEnd)
133 {
134 this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
135 }
136
138
141 vtkSetMacro(ArrayComponent, int);
142 vtkGetMacro(ArrayComponent, int);
144
146
150 vtkSetMacro(GenerateTriangles, vtkTypeBool);
151 vtkGetMacro(GenerateTriangles, vtkTypeBool);
152 vtkBooleanMacro(GenerateTriangles, vtkTypeBool);
154
160 vtkRectilinearGrid* data, int i, int j, int k, int extent[6], double spacing[6]);
161
162protected:
165
170
172
175 int FillInputPortInformation(int port, vtkInformation* info) override;
176
178
179 void* GetScalarsForExtent(vtkDataArray* array, int extent[6], vtkRectilinearGrid* input);
180
181private:
183 void operator=(const vtkRectilinearSynchronizedTemplates&) = delete;
184};
185
186// template table.
187
190
191VTK_ABI_NAMESPACE_END
192#endif
helper object to manage setting and generating contour values
abstract superclass for arrays of numeric data
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.
a dataset that is topologically regular with variable spacing in the three coordinate directions
generate isosurface from rectilinear grid
void * GetScalarsForExtent(vtkDataArray *array, int extent[6], vtkRectilinearGrid *input)
vtkMTimeType GetMTime() override
Because we delegate to vtkContourValues.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
double * GetValues()
Get a pointer to an array of contour values.
double GetValue(int i)
Get the ith contour value.
vtkIdType GetNumberOfContours()
Get the number of contours in the list of contour values.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetValues(double *contourValues)
Fill a supplied list with contour values.
static vtkRectilinearSynchronizedTemplates * New()
void SetValue(int i, double value)
Set a particular contour value at contour number i.
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
void ComputeSpacing(vtkRectilinearGrid *data, int i, int j, int k, int extent[6], double spacing[6])
Compute the spacing between this point and its 6 neighbors.
int vtkTypeBool
Definition vtkABI.h:64
int VTK_RECTILINEAR_SYNCHONIZED_TEMPLATES_TABLE_1[]
int VTK_RECTILINEAR_SYNCHONIZED_TEMPLATES_TABLE_2[]
int vtkIdType
Definition vtkType.h:332
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#define VTK_MARSHALAUTO