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 =========================================================================*/
34 #ifndef vtkThreadedSynchronizedTemplates3D_h
35 #define vtkThreadedSynchronizedTemplates3D_h
36 
37 #include "vtkFiltersSMPModule.h" // For export macro
39 #include "vtkContourValues.h" // Passes calls through
40 
41 class vtkImageData;
42 
43 #if !defined(VTK_LEGACY_REMOVE)
45 {
46 public:
48 
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
55  vtkMTimeType GetMTime() override;
56 
58 
64  vtkSetMacro(ComputeNormals,vtkTypeBool);
65  vtkGetMacro(ComputeNormals,vtkTypeBool);
66  vtkBooleanMacro(ComputeNormals,vtkTypeBool);
68 
70 
78  vtkSetMacro(ComputeGradients,vtkTypeBool);
79  vtkGetMacro(ComputeGradients,vtkTypeBool);
80  vtkBooleanMacro(ComputeGradients,vtkTypeBool);
82 
84 
87  vtkSetMacro(ComputeScalars,vtkTypeBool);
88  vtkGetMacro(ComputeScalars,vtkTypeBool);
89  vtkBooleanMacro(ComputeScalars,vtkTypeBool);
91 
93 
97  vtkSetMacro(GenerateTriangles,vtkTypeBool);
98  vtkGetMacro(GenerateTriangles,vtkTypeBool);
99  vtkBooleanMacro(GenerateTriangles,vtkTypeBool);
101 
106  void SetValue(int i, double value) {this->ContourValues->SetValue(i,value);}
107 
111  double GetValue(int i) {return this->ContourValues->GetValue(i);}
112 
117  double *GetValues() {return this->ContourValues->GetValues();}
118 
124  void GetValues(double *contourValues) {
125  this->ContourValues->GetValues(contourValues);}
126 
132  void SetNumberOfContours(int number) {
133  this->ContourValues->SetNumberOfContours(number);}
134 
139  return this->ContourValues->GetNumberOfContours();}
140 
145  void GenerateValues(int numContours, double range[2]) {
146  this->ContourValues->GenerateValues(numContours, range);}
147 
152  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
153  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
154 
155  void ThreadedExecute(vtkImageData *data,
156  vtkInformation *inInfo,
157  vtkInformation *outInfo,
158  vtkDataArray *inScalars);
159 
161 
166  void SetInputMemoryLimit(unsigned long limit);
167  unsigned long GetInputMemoryLimit();
169 
171 
174  vtkSetMacro(ArrayComponent, int);
175  vtkGetMacro(ArrayComponent, int);
177 
178 protected:
181 
186 
189  int FillInputPortInformation(int port, vtkInformation *info) override;
190 
192 
194 
195 private:
197  void operator=(const vtkThreadedSynchronizedTemplates3D&) = delete;
198 };
199 
200 
201 // template table.
202 
203 extern int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_1[];
204 extern int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2[];
205 
206 #endif //VTK_LEGACY_REMOVE
207 #endif
vtkThreadedSynchronizedTemplates3D::ContourValues
vtkContourValues * ContourValues
Definition: vtkThreadedSynchronizedTemplates3D.h:185
vtkThreadedSynchronizedTemplates3D::GenerateTriangles
vtkTypeBool GenerateTriangles
Definition: vtkThreadedSynchronizedTemplates3D.h:193
VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2
int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2[]
vtkX3D::value
Definition: vtkX3D.h:220
vtkX3D::data
Definition: vtkX3D.h:315
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkThreadedSynchronizedTemplates3D::GetValues
void GetValues(double *contourValues)
Fill a supplied list with contour values.
Definition: vtkThreadedSynchronizedTemplates3D.h:124
vtkThreadedSynchronizedTemplates3D::ComputeScalars
vtkTypeBool ComputeScalars
Definition: vtkThreadedSynchronizedTemplates3D.h:184
vtkX3D::range
Definition: vtkX3D.h:238
vtkMultiBlockDataSetAlgorithm::New
static vtkMultiBlockDataSetAlgorithm * New()
vtkMultiBlockDataSetAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiBlockDataSetAlgorithm.h:100
vtkThreadedSynchronizedTemplates3D::SetValue
void SetValue(int i, double value)
Set a particular contour value at contour number i.
Definition: vtkThreadedSynchronizedTemplates3D.h:106
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
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:91
vtkThreadedSynchronizedTemplates3D::ComputeGradients
vtkTypeBool ComputeGradients
Definition: vtkThreadedSynchronizedTemplates3D.h:183
vtkThreadedSynchronizedTemplates3D::ComputeNormals
vtkTypeBool ComputeNormals
Definition: vtkThreadedSynchronizedTemplates3D.h:182
vtkX3D::port
Definition: vtkX3D.h:447
vtkThreadedSynchronizedTemplates3D::SetNumberOfContours
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
Definition: vtkThreadedSynchronizedTemplates3D.h:132
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
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMultiBlockDataSetAlgorithm.h
vtkThreadedSynchronizedTemplates3D::GetNumberOfContours
int GetNumberOfContours()
Get the number of contours in the list of contour values.
Definition: vtkThreadedSynchronizedTemplates3D.h:138
vtkThreadedSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
Definition: vtkThreadedSynchronizedTemplates3D.h:152
vtkThreadedSynchronizedTemplates3D::ArrayComponent
int ArrayComponent
Definition: vtkThreadedSynchronizedTemplates3D.h:191
vtkContourValues.h
vtkThreadedSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
Definition: vtkThreadedSynchronizedTemplates3D.h:145
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:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkThreadedSynchronizedTemplates3D::GetValues
double * GetValues()
Get a pointer to an array of contour values.
Definition: vtkThreadedSynchronizedTemplates3D.h:117
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:111
vtkThreadedSynchronizedTemplates3D
generate isosurface from structured points
Definition: vtkThreadedSynchronizedTemplates3D.h:44
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:35