VTK
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 "vtkFiltersCoreModule.h" // For export macro
35 #include "vtkPolyDataAlgorithm.h"
36 #include "vtkContourValues.h" // Passes calls through
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) {
121  this->ContourValues->GetValues(contourValues);}
122 
128  void SetNumberOfContours(int number) {
129  this->ContourValues->SetNumberOfContours(number);}
130 
135  return this->ContourValues->GetNumberOfContours();}
136 
141  void GenerateValues(int numContours, double range[2]) {
142  this->ContourValues->GenerateValues(numContours, range);}
143 
148  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
149  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
150 
151  void ThreadedExecute(vtkImageData *data,
152  vtkInformation *inInfo,
153  vtkInformation *outInfo,
154  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:
176  ~vtkSynchronizedTemplates3D() override;
177 
182 
185  int FillInputPortInformation(int port, vtkInformation *info) override;
186 
188 
190 
191 private:
193  void operator=(const vtkSynchronizedTemplates3D&) = delete;
194 };
195 
196 
197 // template table.
198 
199 extern int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[];
200 extern int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2[];
201 
202 #endif
vtkX3D::value
Definition: vtkX3D.h:220
vtkX3D::data
Definition: vtkX3D.h:315
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPolyDataAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkSynchronizedTemplates3D::GenerateTriangles
vtkTypeBool GenerateTriangles
Definition: vtkSynchronizedTemplates3D.h:189
vtkX3D::range
Definition: vtkX3D.h:238
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSynchronizedTemplates3D::ContourValues
vtkContourValues * ContourValues
Definition: vtkSynchronizedTemplates3D.h:181
vtkPolyDataAlgorithm.h
vtkSynchronizedTemplates3D::GetValues
double * GetValues()
Get a pointer to an array of contour values.
Definition: vtkSynchronizedTemplates3D.h:113
vtkX3D::port
Definition: vtkX3D.h:447
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
Definition: vtkSynchronizedTemplates3D.h:141
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
vtkSynchronizedTemplates3D::ComputeGradients
vtkTypeBool ComputeGradients
Definition: vtkSynchronizedTemplates3D.h:179
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1
int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[]
vtkSynchronizedTemplates3D::SetValue
void SetValue(int i, double value)
Set a particular contour value at contour number i.
Definition: vtkSynchronizedTemplates3D.h:102
vtkSynchronizedTemplates3D::ComputeNormals
vtkTypeBool ComputeNormals
Definition: vtkSynchronizedTemplates3D.h:178
vtkSynchronizedTemplates3D::ArrayComponent
int ArrayComponent
Definition: vtkSynchronizedTemplates3D.h:187
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2
int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2[]
vtkSynchronizedTemplates3D::GetValue
double GetValue(int i)
Get the ith contour value.
Definition: vtkSynchronizedTemplates3D.h:107
vtkContourValues.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkX3D::info
Definition: vtkX3D.h:376
vtkSynchronizedTemplates3D::GetNumberOfContours
int GetNumberOfContours()
Get the number of contours in the list of contour values.
Definition: vtkSynchronizedTemplates3D.h:134
vtkSynchronizedTemplates3D
generate isosurface from structured points
Definition: vtkSynchronizedTemplates3D.h:40
vtkSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
Definition: vtkSynchronizedTemplates3D.h:148
vtkSynchronizedTemplates3D::GetValues
void GetValues(double *contourValues)
Fill a supplied list with contour values.
Definition: vtkSynchronizedTemplates3D.h:120
vtkSynchronizedTemplates3D::ComputeScalars
vtkTypeBool ComputeScalars
Definition: vtkSynchronizedTemplates3D.h:180
vtkSynchronizedTemplates3D::SetNumberOfContours
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
Definition: vtkSynchronizedTemplates3D.h:128
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41