VTK  9.2.6
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 =========================================================================*/
34 #ifndef vtkSynchronizedTemplates3D_h
35 #define vtkSynchronizedTemplates3D_h
36 
37 #include "vtkContourValues.h" // Passes calls through
38 #include "vtkFiltersCoreModule.h" // For export macro
39 #include "vtkPolyDataAlgorithm.h"
40 
41 class vtkImageData;
42 
43 class VTKFILTERSCORE_EXPORT vtkSynchronizedTemplates3D : public vtkPolyDataAlgorithm
44 {
45 public:
47 
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
54  vtkMTimeType GetMTime() override;
55 
57 
63  vtkSetMacro(ComputeNormals, vtkTypeBool);
64  vtkGetMacro(ComputeNormals, vtkTypeBool);
65  vtkBooleanMacro(ComputeNormals, vtkTypeBool);
67 
69 
77  vtkSetMacro(ComputeGradients, vtkTypeBool);
78  vtkGetMacro(ComputeGradients, vtkTypeBool);
79  vtkBooleanMacro(ComputeGradients, vtkTypeBool);
81 
83 
86  vtkSetMacro(ComputeScalars, vtkTypeBool);
87  vtkGetMacro(ComputeScalars, vtkTypeBool);
88  vtkBooleanMacro(ComputeScalars, vtkTypeBool);
90 
92 
96  vtkSetMacro(GenerateTriangles, vtkTypeBool);
97  vtkGetMacro(GenerateTriangles, vtkTypeBool);
98  vtkBooleanMacro(GenerateTriangles, vtkTypeBool);
100 
105  void SetValue(int i, double value) { this->ContourValues->SetValue(i, value); }
106 
110  double GetValue(int i) { return this->ContourValues->GetValue(i); }
111 
116  double* GetValues() { return this->ContourValues->GetValues(); }
117 
123  void GetValues(double* contourValues) { this->ContourValues->GetValues(contourValues); }
124 
130  void SetNumberOfContours(int number) { this->ContourValues->SetNumberOfContours(number); }
131 
135  vtkIdType GetNumberOfContours() { return this->ContourValues->GetNumberOfContours(); }
136 
141  void GenerateValues(int numContours, double range[2])
142  {
143  this->ContourValues->GenerateValues(numContours, range);
144  }
145 
150  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
151  {
152  this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);
153  }
154 
155  void ThreadedExecute(
156  vtkImageData* data, vtkInformation* inInfo, vtkInformation* outInfo, vtkDataArray* inScalars);
157 
159 
164  void SetInputMemoryLimit(unsigned long limit);
165  unsigned long GetInputMemoryLimit();
167 
169 
172  vtkSetMacro(ArrayComponent, int);
173  vtkGetMacro(ArrayComponent, int);
175 
176 protected:
178  ~vtkSynchronizedTemplates3D() override;
179 
184 
187  int FillInputPortInformation(int port, vtkInformation* info) override;
188 
190 
192 
193 private:
195  void operator=(const vtkSynchronizedTemplates3D&) = delete;
196 };
197 
198 // template table.
199 
200 extern int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[];
201 extern int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2[];
202 
203 #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:287
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:332
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:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:53
int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[]
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
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.