VTK
vtkThreadedSynchronizedTemplates3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkThreadedSynchronizedTemplates3D.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 vtkThreadedSynchronizedTemplates3D_h
32 #define vtkThreadedSynchronizedTemplates3D_h
33 
34 #include "vtkContourValues.h" // Passes calls through
35 #include "vtkFiltersSMPModule.h" // For export macro
37 
38 class vtkImageData;
39 
40 #if !defined(VTK_LEGACY_REMOVE)
42 {
43 public:
45 
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 
153  void ThreadedExecute(
154  vtkImageData* data, vtkInformation* inInfo, vtkInformation* outInfo, vtkDataArray* inScalars);
155 
157 
162  void SetInputMemoryLimit(unsigned long limit);
163  unsigned long GetInputMemoryLimit();
165 
167 
170  vtkSetMacro(ArrayComponent, int);
171  vtkGetMacro(ArrayComponent, int);
173 
174 protected:
177 
182 
185  int FillInputPortInformation(int port, vtkInformation* info) override;
186 
188 
190 
191 private:
193  void operator=(const vtkThreadedSynchronizedTemplates3D&) = delete;
194 };
195 
196 // template table.
197 
198 extern int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_1[];
199 extern int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2[];
200 
201 #endif // VTK_LEGACY_REMOVE
202 #endif
vtkThreadedSynchronizedTemplates3D::ContourValues
vtkContourValues * ContourValues
Definition: vtkThreadedSynchronizedTemplates3D.h:181
vtkThreadedSynchronizedTemplates3D::GenerateTriangles
vtkTypeBool GenerateTriangles
Definition: vtkThreadedSynchronizedTemplates3D.h:189
VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2
int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2[]
vtkX3D::value
Definition: vtkX3D.h:226
vtkIdType
int vtkIdType
Definition: vtkType.h:343
vtkX3D::data
Definition: vtkX3D.h:321
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkThreadedSynchronizedTemplates3D::GetValues
void GetValues(double *contourValues)
Fill a supplied list with contour values.
Definition: vtkThreadedSynchronizedTemplates3D.h:121
vtkThreadedSynchronizedTemplates3D::ComputeScalars
vtkTypeBool ComputeScalars
Definition: vtkThreadedSynchronizedTemplates3D.h:180
vtkX3D::range
Definition: vtkX3D.h:244
vtkMultiBlockDataSetAlgorithm::New
static vtkMultiBlockDataSetAlgorithm * New()
vtkMultiBlockDataSetAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiBlockDataSetAlgorithm.h:99
vtkThreadedSynchronizedTemplates3D::SetValue
void SetValue(int i, double value)
Set a particular contour value at contour number i.
Definition: vtkThreadedSynchronizedTemplates3D.h:103
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:49
VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_1
int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_1[]
vtkMultiBlockDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiBlockDataSetAlgorithm.h:89
vtkThreadedSynchronizedTemplates3D::ComputeGradients
vtkTypeBool ComputeGradients
Definition: vtkThreadedSynchronizedTemplates3D.h:179
vtkThreadedSynchronizedTemplates3D::ComputeNormals
vtkTypeBool ComputeNormals
Definition: vtkThreadedSynchronizedTemplates3D.h:178
vtkX3D::port
Definition: vtkX3D.h:453
vtkThreadedSynchronizedTemplates3D::SetNumberOfContours
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
Definition: vtkThreadedSynchronizedTemplates3D.h:128
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
vtkThreadedSynchronizedTemplates3D::GetNumberOfContours
vtkIdType GetNumberOfContours()
Get the number of contours in the list of contour values.
Definition: vtkThreadedSynchronizedTemplates3D.h:133
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:41
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMultiBlockDataSetAlgorithm.h
vtkThreadedSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
Definition: vtkThreadedSynchronizedTemplates3D.h:148
vtkThreadedSynchronizedTemplates3D::ArrayComponent
int ArrayComponent
Definition: vtkThreadedSynchronizedTemplates3D.h:187
vtkContourValues.h
vtkThreadedSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
Definition: vtkThreadedSynchronizedTemplates3D.h:139
vtkMultiBlockDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkX3D::info
Definition: vtkX3D.h:382
vtkThreadedSynchronizedTemplates3D::GetValues
double * GetValues()
Get a pointer to an array of contour values.
Definition: vtkThreadedSynchronizedTemplates3D.h:114
vtkMultiBlockDataSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkThreadedSynchronizedTemplates3D::GetValue
double GetValue(int i)
Get the ith contour value.
Definition: vtkThreadedSynchronizedTemplates3D.h:108
vtkThreadedSynchronizedTemplates3D
generate isosurface from structured points
Definition: vtkThreadedSynchronizedTemplates3D.h:41
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:298
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:32