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 =========================================================================*/
33 #ifndef __vtkSynchronizedTemplates3D_h
34 #define __vtkSynchronizedTemplates3D_h
35 
36 #include "vtkPolyDataAlgorithm.h"
37 #include "vtkContourValues.h" // Passes calls through
38 
39 class vtkImageData;
40 
42 {
43 public:
45 
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50  unsigned long int GetMTime();
51 
53 
57  vtkSetMacro(ComputeNormals,int);
58  vtkGetMacro(ComputeNormals,int);
59  vtkBooleanMacro(ComputeNormals,int);
61 
63 
69  vtkSetMacro(ComputeGradients,int);
70  vtkGetMacro(ComputeGradients,int);
71  vtkBooleanMacro(ComputeGradients,int);
73 
75 
76  vtkSetMacro(ComputeScalars,int);
77  vtkGetMacro(ComputeScalars,int);
78  vtkBooleanMacro(ComputeScalars,int);
80 
83  void SetValue(int i, double value) {this->ContourValues->SetValue(i,value);}
84 
86  double GetValue(int i) {return this->ContourValues->GetValue(i);}
87 
90  double *GetValues() {return this->ContourValues->GetValues();}
91 
93 
96  void GetValues(double *contourValues) {
97  this->ContourValues->GetValues(contourValues);}
99 
101 
104  void SetNumberOfContours(int number) {
105  this->ContourValues->SetNumberOfContours(number);}
107 
109 
111  return this->ContourValues->GetNumberOfContours();}
113 
115 
117  void GenerateValues(int numContours, double range[2]) {
118  this->ContourValues->GenerateValues(numContours, range);}
120 
122 
124  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
125  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
127 
129 
130  int *GetExecuteExtent() {return this->ExecuteExtent;}
131  void ThreadedExecute(vtkImageData *data, vtkInformation *inInfo,
132  vtkInformation *outInfo,
133  int *exExt, vtkDataArray *inScalars);
135 
137 
140  void SetInputMemoryLimit(unsigned long limit);
141  unsigned long GetInputMemoryLimit();
143 
145 
147  vtkSetMacro(ArrayComponent, int);
148  vtkGetMacro(ArrayComponent, int);
150 
151 protected:
154 
159 
163 
164  int ExecuteExtent[6];
165 
167 
168 private:
169  vtkSynchronizedTemplates3D(const vtkSynchronizedTemplates3D&); // Not implemented.
170  void operator=(const vtkSynchronizedTemplates3D&); // Not implemented.
171 };
172 
173 
174 // template table.
175 //BTX
176 
179 
180 //ETX
181 
182 #endif
183 
helper object to manage setting and generating contour values
#define VTK_GRAPHICS_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetValue(int i, double value)
int VTK_GRAPHICS_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1[]
generate isosurface from structured points
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Superclass for algorithms that produce only polydata as output.
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:37
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
void GetValues(double *contourValues)
void GenerateValues(int numContours, double range[2])
int VTK_GRAPHICS_EXPORT VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2[]
Store zero or more vtkInformation instances.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)