VTK
vtkRectilinearSynchronizedTemplates.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRectilinearSynchronizedTemplates.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 vtkRectilinearSynchronizedTemplates_h
34 #define vtkRectilinearSynchronizedTemplates_h
35 
36 #include "vtkFiltersCoreModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 #include "vtkContourValues.h" // Passes calls through
39 
40 class vtkRectilinearGrid;
41 class vtkDataArray;
42 
44 {
45 public:
47 
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52  unsigned long int GetMTime();
53 
55 
59  vtkSetMacro(ComputeNormals,int);
60  vtkGetMacro(ComputeNormals,int);
61  vtkBooleanMacro(ComputeNormals,int);
63 
65 
71  vtkSetMacro(ComputeGradients,int);
72  vtkGetMacro(ComputeGradients,int);
73  vtkBooleanMacro(ComputeGradients,int);
75 
77 
78  vtkSetMacro(ComputeScalars,int);
79  vtkGetMacro(ComputeScalars,int);
80  vtkBooleanMacro(ComputeScalars,int);
82 
85  void SetValue(int i, double value) {this->ContourValues->SetValue(i,value);}
86 
88  double GetValue(int i) {return this->ContourValues->GetValue(i);}
89 
92  double *GetValues() {return this->ContourValues->GetValues();}
93 
95 
98  void GetValues(double *contourValues) {
99  this->ContourValues->GetValues(contourValues);}
101 
103 
106  void SetNumberOfContours(int number) {
107  this->ContourValues->SetNumberOfContours(number);}
109 
111 
113  return this->ContourValues->GetNumberOfContours();}
115 
117 
119  void GenerateValues(int numContours, double range[2]) {
120  this->ContourValues->GenerateValues(numContours, range);}
122 
124 
126  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
127  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
129 
131 
133  vtkSetMacro(ArrayComponent, int);
134  vtkGetMacro(ArrayComponent, int);
136 
138 
140  vtkSetMacro(GenerateTriangles,int);
141  vtkGetMacro(GenerateTriangles,int);
142  vtkBooleanMacro(GenerateTriangles,int);
144 
146 
149  void ComputeSpacing(vtkRectilinearGrid *data, int i, int j, int k,
150  int extent[6], double spacing[6]);
152 
153 protected:
156 
161 
163 
167 
169 
170  void* GetScalarsForExtent(vtkDataArray *array, int extent[6],
171  vtkRectilinearGrid *input);
172 
173 private:
175  void operator=(const vtkRectilinearSynchronizedTemplates&); // Not implemented.
176 };
177 
178 // template table.
179 //BTX
180 
183 
184 //ETX
185 
186 #endif
helper object to manage setting and generating contour values
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
virtual int FillInputPortInformation(int port, vtkInformation *info)
int VTK_RECTILINEAR_SYNCHONIZED_TEMPLATES_TABLE_1[]
Store vtkAlgorithm input/output information.
int VTK_RECTILINEAR_SYNCHONIZED_TEMPLATES_TABLE_2[]
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSCORE_EXPORT
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
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:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
generate isosurface from rectilinear grid
Store zero or more vtkInformation instances.
void GenerateValues(int numContours, double range[2])