VTK
vtkGridSynchronizedTemplates3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGridSynchronizedTemplates3D.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 =========================================================================*/
29 #ifndef __vtkGridSynchronizedTemplates3D_h
30 #define __vtkGridSynchronizedTemplates3D_h
31 
32 #include "vtkPolyDataAlgorithm.h"
33 #include "vtkContourValues.h" // Because it passes all the calls to it
34 
35 class vtkKitwareContourFilter;
36 class vtkStructuredGrid;
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46  unsigned long int GetMTime();
47 
49 
53  vtkSetMacro(ComputeNormals,int);
54  vtkGetMacro(ComputeNormals,int);
55  vtkBooleanMacro(ComputeNormals,int);
57 
59 
65  vtkSetMacro(ComputeGradients,int);
66  vtkGetMacro(ComputeGradients,int);
67  vtkBooleanMacro(ComputeGradients,int);
69 
71 
72  vtkSetMacro(ComputeScalars,int);
73  vtkGetMacro(ComputeScalars,int);
74  vtkBooleanMacro(ComputeScalars,int);
76 
79  void SetValue(int i, double value) {this->ContourValues->SetValue(i,value);}
80 
82  double GetValue(int i) {return this->ContourValues->GetValue(i);}
83 
86  double *GetValues() {return this->ContourValues->GetValues();}
87 
89 
92  void GetValues(double *contourValues) {
93  this->ContourValues->GetValues(contourValues);}
95 
97 
100  void SetNumberOfContours(int number) {
101  this->ContourValues->SetNumberOfContours(number);}
103 
105 
107  return this->ContourValues->GetNumberOfContours();}
109 
111 
113  void GenerateValues(int numContours, double range[2]) {
114  this->ContourValues->GenerateValues(numContours, range);}
116 
118 
120  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
121  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
123 
125 
126  int *GetExecuteExtent() {return this->ExecuteExtent;}
127  void ThreadedExecute(int *exExt, int threadId, vtkStructuredGrid *input,
128  vtkInformationVector **inVec,
129  vtkInformation *outInfo);
131 
134  void SetInputMemoryLimit(long limit);
135 
136 protected:
139 
143 
148 
149  int MinimumPieceSize[3];
150  int ExecuteExtent[6];
151 
152 private:
154  void operator=(const vtkGridSynchronizedTemplates3D&); // Not implemented.
155 };
156 
157 
158 #endif