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 =========================================================================*/
34 #ifndef vtkSynchronizedTemplates3D_h
35 #define vtkSynchronizedTemplates3D_h
36 
37 #include "vtkFiltersCoreModule.h" // For export macro
38 #include "vtkPolyDataAlgorithm.h"
39 #include "vtkContourValues.h" // Passes calls through
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) {
124  this->ContourValues->GetValues(contourValues);}
125 
131  void SetNumberOfContours(int number) {
132  this->ContourValues->SetNumberOfContours(number);}
133 
138  return this->ContourValues->GetNumberOfContours();}
139 
144  void GenerateValues(int numContours, double range[2]) {
145  this->ContourValues->GenerateValues(numContours, range);}
146 
151  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
152  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
153 
154  void ThreadedExecute(vtkImageData *data,
155  vtkInformation *inInfo,
156  vtkInformation *outInfo,
157  vtkDataArray *inScalars);
158 
160 
165  void SetInputMemoryLimit(unsigned long limit);
166  unsigned long GetInputMemoryLimit();
168 
170 
173  vtkSetMacro(ArrayComponent, int);
174  vtkGetMacro(ArrayComponent, int);
176 
177 protected:
179  ~vtkSynchronizedTemplates3D() override;
180 
185 
188  int FillInputPortInformation(int port, vtkInformation *info) override;
189 
191 
193 
194 private:
196  void operator=(const vtkSynchronizedTemplates3D&) = delete;
197 };
198 
199 
200 // template table.
201 
202 extern int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[];
203 extern int VTKFILTERSCORE_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2[];
204 
205 #endif
vtkX3D::value
Definition: vtkX3D.h:220
vtkX3D::data
Definition: vtkX3D.h:315
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkPolyDataAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkSynchronizedTemplates3D::GenerateTriangles
vtkTypeBool GenerateTriangles
Definition: vtkSynchronizedTemplates3D.h:192
vtkX3D::range
Definition: vtkX3D.h:238
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
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:184
vtkPolyDataAlgorithm.h
vtkSynchronizedTemplates3D::GetValues
double * GetValues()
Get a pointer to an array of contour values.
Definition: vtkSynchronizedTemplates3D.h:116
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:144
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
vtkSynchronizedTemplates3D::ComputeGradients
vtkTypeBool ComputeGradients
Definition: vtkSynchronizedTemplates3D.h:182
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
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:105
vtkSynchronizedTemplates3D::ComputeNormals
vtkTypeBool ComputeNormals
Definition: vtkSynchronizedTemplates3D.h:181
vtkSynchronizedTemplates3D::ArrayComponent
int ArrayComponent
Definition: vtkSynchronizedTemplates3D.h:190
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:110
vtkContourValues.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkSynchronizedTemplates3D::GetNumberOfContours
int GetNumberOfContours()
Get the number of contours in the list of contour values.
Definition: vtkSynchronizedTemplates3D.h:137
vtkSynchronizedTemplates3D
generate isosurface from structured points
Definition: vtkSynchronizedTemplates3D.h:43
vtkSynchronizedTemplates3D::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
Definition: vtkSynchronizedTemplates3D.h:151
vtkSynchronizedTemplates3D::GetValues
void GetValues(double *contourValues)
Fill a supplied list with contour values.
Definition: vtkSynchronizedTemplates3D.h:123
vtkSynchronizedTemplates3D::ComputeScalars
vtkTypeBool ComputeScalars
Definition: vtkSynchronizedTemplates3D.h:183
vtkSynchronizedTemplates3D::SetNumberOfContours
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
Definition: vtkSynchronizedTemplates3D.h:131
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:44