VTK  9.2.6
vtkGridSynchronizedTemplates3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGridSynchronizedTemplates3D.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 =========================================================================*/
33 #ifndef vtkGridSynchronizedTemplates3D_h
34 #define vtkGridSynchronizedTemplates3D_h
35 
36 #include "vtkContourValues.h" // Because it passes all the calls to it
37 #include "vtkFiltersCoreModule.h" // For export macro
38 #include "vtkPolyDataAlgorithm.h"
39 
40 class vtkStructuredGrid;
41 
42 class VTKFILTERSCORE_EXPORT vtkGridSynchronizedTemplates3D : public vtkPolyDataAlgorithm
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
52  vtkMTimeType GetMTime() override;
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 
90 
94  vtkSetMacro(GenerateTriangles, vtkTypeBool);
95  vtkGetMacro(GenerateTriangles, vtkTypeBool);
96  vtkBooleanMacro(GenerateTriangles, vtkTypeBool);
98 
103  void SetValue(int i, double value) { this->ContourValues->SetValue(i, value); }
104 
108  double GetValue(int i) { return this->ContourValues->GetValue(i); }
109 
114  double* GetValues() { return this->ContourValues->GetValues(); }
115 
121  void GetValues(double* contourValues) { this->ContourValues->GetValues(contourValues); }
122 
128  void SetNumberOfContours(int number) { this->ContourValues->SetNumberOfContours(number); }
129 
133  vtkIdType GetNumberOfContours() { return this->ContourValues->GetNumberOfContours(); }
134 
139  void GenerateValues(int numContours, double range[2])
140  {
141  this->ContourValues->GenerateValues(numContours, range);
142  }
143 
148  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
149  {
150  this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
151  }
152 
156  void ThreadedExecute(
157  vtkStructuredGrid* input, vtkInformationVector** inputVector, vtkInformation* outInfo);
158 
163  void SetInputMemoryLimit(long limit);
164 
166 
171  vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
172  vtkGetMacro(OutputPointsPrecision, int);
174 
175 protected:
177  ~vtkGridSynchronizedTemplates3D() override;
178 
181  int FillInputPortInformation(int port, vtkInformation* info) override;
182 
187 
189 
190  int MinimumPieceSize[3];
192 
193 private:
195  void operator=(const vtkGridSynchronizedTemplates3D&) = delete;
196 };
197 
198 #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:287
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:332
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:69
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:39
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.
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.