VTK  9.1.0
vtkRectilinearSynchronizedTemplates.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkRectilinearSynchronizedTemplates.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 vtkRectilinearSynchronizedTemplates_h
32#define vtkRectilinearSynchronizedTemplates_h
33
34#include "vtkContourValues.h" // Passes calls through
35#include "vtkFiltersCoreModule.h" // For export macro
37
39class vtkDataArray;
40
42{
43public:
45
47 void PrintSelf(ostream& os, vtkIndent indent) override;
48
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
93 void SetValue(int i, double value) { this->ContourValues->SetValue(i, value); }
94
98 double GetValue(int i) { return this->ContourValues->GetValue(i); }
99
104 double* GetValues() { return this->ContourValues->GetValues(); }
105
111 void GetValues(double* contourValues) { this->ContourValues->GetValues(contourValues); }
112
118 void SetNumberOfContours(int number) { this->ContourValues->SetNumberOfContours(number); }
119
123 vtkIdType GetNumberOfContours() { return this->ContourValues->GetNumberOfContours(); }
124
129 void GenerateValues(int numContours, double range[2])
130 {
131 this->ContourValues->GenerateValues(numContours, range);
132 }
133
138 void GenerateValues(int numContours, double rangeStart, double rangeEnd)
139 {
140 this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
141 }
142
144
147 vtkSetMacro(ArrayComponent, int);
148 vtkGetMacro(ArrayComponent, int);
150
152
156 vtkSetMacro(GenerateTriangles, vtkTypeBool);
157 vtkGetMacro(GenerateTriangles, vtkTypeBool);
158 vtkBooleanMacro(GenerateTriangles, vtkTypeBool);
160
166 vtkRectilinearGrid* data, int i, int j, int k, int extent[6], double spacing[6]);
167
168protected:
171
176
178
182
184
186
187private:
189 void operator=(const vtkRectilinearSynchronizedTemplates&) = delete;
190};
191
192// template table.
193
196
197#endif
helper object to manage setting and generating contour values
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
a simple class to control print indentation
Definition: vtkIndent.h:113
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.
@ info
Definition: vtkX3D.h:382
@ value
Definition: vtkX3D.h:226
@ port
Definition: vtkX3D.h:453
@ range
Definition: vtkX3D.h:244
@ extent
Definition: vtkX3D.h:351
@ spacing
Definition: vtkX3D.h:487
@ data
Definition: vtkX3D.h:321
int vtkTypeBool
Definition: vtkABI.h:69
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