VTK  9.0.1
vtkSynchronizedTemplates3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSynchronizedTemplates3D.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 vtkSynchronizedTemplates3D_h
32 #define vtkSynchronizedTemplates3D_h
33 
34 #include "vtkContourValues.h" // Passes calls through
35 #include "vtkFiltersCoreModule.h" // For export macro
36 #include "vtkPolyDataAlgorithm.h"
37 
38 class vtkImageData;
39 
40 class VTKFILTERSCORE_EXPORT vtkSynchronizedTemplates3D : public vtkPolyDataAlgorithm
41 {
42 public:
44 
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
51  vtkMTimeType GetMTime() override;
52 
54 
60  vtkSetMacro(ComputeNormals, vtkTypeBool);
61  vtkGetMacro(ComputeNormals, vtkTypeBool);
62  vtkBooleanMacro(ComputeNormals, vtkTypeBool);
64 
66 
74  vtkSetMacro(ComputeGradients, vtkTypeBool);
75  vtkGetMacro(ComputeGradients, vtkTypeBool);
76  vtkBooleanMacro(ComputeGradients, vtkTypeBool);
78 
80 
83  vtkSetMacro(ComputeScalars, vtkTypeBool);
84  vtkGetMacro(ComputeScalars, vtkTypeBool);
85  vtkBooleanMacro(ComputeScalars, vtkTypeBool);
87 
89 
93  vtkSetMacro(GenerateTriangles, vtkTypeBool);
94  vtkGetMacro(GenerateTriangles, vtkTypeBool);
95  vtkBooleanMacro(GenerateTriangles, vtkTypeBool);
97 
102  void SetValue(int i, double value) { this->ContourValues->SetValue(i, value); }
103 
107  double GetValue(int i) { return this->ContourValues->GetValue(i); }
108 
113  double* GetValues() { return this->ContourValues->GetValues(); }
114 
120  void GetValues(double* contourValues) { this->ContourValues->GetValues(contourValues); }
121 
127  void SetNumberOfContours(int number) { this->ContourValues->SetNumberOfContours(number); }
128 
132  vtkIdType GetNumberOfContours() { return this->ContourValues->GetNumberOfContours(); }
133 
138  void GenerateValues(int numContours, double range[2])
139  {
140  this->ContourValues->GenerateValues(numContours, range);
141  }
142 
147  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
148  {
149  this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
150  }
151 
152  void ThreadedExecute(
153  vtkImageData* data, vtkInformation* inInfo, vtkInformation* outInfo, vtkDataArray* inScalars);
154 
156 
161  void SetInputMemoryLimit(unsigned long limit);
162  unsigned long GetInputMemoryLimit();
164 
166 
169  vtkSetMacro(ArrayComponent, int);
170  vtkGetMacro(ArrayComponent, int);
172 
173 protected:
175  ~vtkSynchronizedTemplates3D() override;
176 
181 
184  int FillInputPortInformation(int port, vtkInformation* info) override;
185 
187 
189 
190 private:
192  void operator=(const vtkSynchronizedTemplates3D&) = delete;
193 };
194 
195 // template table.
196 
197 extern int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[];
198 extern int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2[];
199 
200 #endif
helper object to manage setting and generating contour values
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2[]
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
double GetValue(int i)
Get the ith contour value.
void SetValue(int i, double value)
Set a particular contour value at contour number i.
int vtkIdType
Definition: vtkType.h:338
double * GetValues()
Get a pointer to an array of contour values.
generate isosurface from structured points
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.
vtkIdType GetNumberOfContours()
Get the number of contours in the list of contour values.
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:41
int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[]
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:49
virtual vtkMTimeType GetMTime()
Return this object's modified time.
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.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.