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 "vtkFiltersSMPModule.h" // For export macro
36 #include "vtkContourValues.h" // Passes calls through
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) {
122  this->ContourValues->GetValues(contourValues);}
123 
129  void SetNumberOfContours(int number) {
130  this->ContourValues->SetNumberOfContours(number);}
131 
136  return this->ContourValues->GetNumberOfContours();}
137 
142  void GenerateValues(int numContours, double range[2]) {
143  this->ContourValues->GenerateValues(numContours, range);}
144 
149  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
150  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
151 
152  void ThreadedExecute(vtkImageData *data,
153  vtkInformation *inInfo,
154  vtkInformation *outInfo,
155  vtkDataArray *inScalars);
156 
158 
163  void SetInputMemoryLimit(unsigned long limit);
164  unsigned long GetInputMemoryLimit();
166 
168 
171  vtkSetMacro(ArrayComponent, int);
172  vtkGetMacro(ArrayComponent, int);
174 
175 protected:
178 
183 
186  int FillInputPortInformation(int port, vtkInformation *info) override;
187 
189 
191 
192 private:
194  void operator=(const vtkThreadedSynchronizedTemplates3D&) = delete;
195 };
196 
197 
198 // template table.
199 
200 extern int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_1[];
201 extern int VTKFILTERSSMP_EXPORT VTK_TSYNCHRONIZED_TEMPLATES_3D_TABLE_2[];
202 
203 #endif //VTK_LEGACY_REMOVE
204 #endif
vtkThreadedSynchronizedTemplates3D::ContourValues
vtkContourValues * ContourValues
Definition: vtkThreadedSynchronizedTemplates3D.h:182
vtkThreadedSynchronizedTemplates3D::GenerateTriangles
vtkTypeBool GenerateTriangles
Definition: vtkThreadedSynchronizedTemplates3D.h:190
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: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:181
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:97
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:48
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:88
vtkThreadedSynchronizedTemplates3D::ComputeGradients
vtkTypeBool ComputeGradients
Definition: vtkThreadedSynchronizedTemplates3D.h:180
vtkThreadedSynchronizedTemplates3D::ComputeNormals
vtkTypeBool ComputeNormals
Definition: vtkThreadedSynchronizedTemplates3D.h:179
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:129
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:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMultiBlockDataSetAlgorithm.h
vtkThreadedSynchronizedTemplates3D::GetNumberOfContours
int GetNumberOfContours()
Get the number of contours in the list of contour values.
Definition: vtkThreadedSynchronizedTemplates3D.h:135
vtkThreadedSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
Definition: vtkThreadedSynchronizedTemplates3D.h:149
vtkThreadedSynchronizedTemplates3D::ArrayComponent
int ArrayComponent
Definition: vtkThreadedSynchronizedTemplates3D.h:188
vtkContourValues.h
vtkThreadedSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
Definition: vtkThreadedSynchronizedTemplates3D.h:142
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:80
vtkX3D::info
Definition: vtkX3D.h:376
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:302
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:32