VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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  int *GetExecuteExtent() {return this->ExecuteExtent;}
132 
134 
136  vtkSetMacro(ArrayComponent, int);
137  vtkGetMacro(ArrayComponent, int);
139 
141 
143  vtkSetMacro(GenerateTriangles,int);
144  vtkGetMacro(GenerateTriangles,int);
145  vtkBooleanMacro(GenerateTriangles,int);
147 
149 
152  void ComputeSpacing(vtkRectilinearGrid *data, int i, int j, int k,
153  int extent[6], double spacing[6]);
155 
156 protected:
159 
164 
166 
170 
171  int ExecuteExtent[6];
172 
174 
175  void* GetScalarsForExtent(vtkDataArray *array, int extent[6],
177 
178 private:
180  void operator=(const vtkRectilinearSynchronizedTemplates&); // Not implemented.
181 };
182 
183 // template table.
184 //BTX
185 
188 
189 //ETX
190 
191 #endif
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: vtkgl.h:11339
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[]
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSCORE_EXPORT
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
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:53
generate isosurface from rectilinear grid
Store zero or more vtkInformation instances.
GLenum GLint * range
Definition: vtkgl.h:14180
void GenerateValues(int numContours, double range[2])