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 
172 
173 private:
175  void operator=(const vtkRectilinearSynchronizedTemplates&); // Not implemented.
176 };
177 
178 // template table.
179 //BTX
180 
183 
184 //ETX
185 
186 #endif
vtkRectilinearSynchronizedTemplates::GenerateValues
void GenerateValues(int numContours, double range[2])
Definition: vtkRectilinearSynchronizedTemplates.h:119
vtkgl::data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: vtkgl.h:11339
vtkRectilinearSynchronizedTemplates::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Definition: vtkRectilinearSynchronizedTemplates.h:126
vtkRectilinearSynchronizedTemplates::SetValue
void SetValue(int i, double value)
Definition: vtkRectilinearSynchronizedTemplates.h:85
vtkRectilinearSynchronizedTemplates::ContourValues
vtkContourValues * ContourValues
Definition: vtkRectilinearSynchronizedTemplates.h:162
vtkRectilinearSynchronizedTemplates::GenerateTriangles
int GenerateTriangles
Definition: vtkRectilinearSynchronizedTemplates.h:160
vtkRectilinearSynchronizedTemplates::GetValue
double GetValue(int i)
Definition: vtkRectilinearSynchronizedTemplates.h:88
vtkRectilinearGrid
a dataset that is topologically regular with variable spacing in the three coordinate directions
Definition: vtkRectilinearGrid.h:56
vtkRectilinearSynchronizedTemplates::New
static vtkRectilinearSynchronizedTemplates * New()
vtkRectilinearSynchronizedTemplates::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkRectilinearSynchronizedTemplates::GetMTime
unsigned long int GetMTime()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkRectilinearSynchronizedTemplates::GetValues
void GetValues(double *contourValues)
Definition: vtkRectilinearSynchronizedTemplates.h:98
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkgl::input
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
VTK_RECTILINEAR_SYNCHONIZED_TEMPLATES_TABLE_2
int VTK_RECTILINEAR_SYNCHONIZED_TEMPLATES_TABLE_2[]
vtkFiltersCoreModule.h
vtkPolyDataAlgorithm.h
vtkRectilinearSynchronizedTemplates
generate isosurface from rectilinear grid
Definition: vtkRectilinearSynchronizedTemplates.h:44
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkRectilinearSynchronizedTemplates::GetNumberOfContours
int GetNumberOfContours()
Definition: vtkRectilinearSynchronizedTemplates.h:112
VTK_RECTILINEAR_SYNCHONIZED_TEMPLATES_TABLE_1
int VTK_RECTILINEAR_SYNCHONIZED_TEMPLATES_TABLE_1[]
vtkRectilinearSynchronizedTemplates::~vtkRectilinearSynchronizedTemplates
~vtkRectilinearSynchronizedTemplates()
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
vtkRectilinearSynchronizedTemplates::GetValues
double * GetValues()
Definition: vtkRectilinearSynchronizedTemplates.h:92
VTKFILTERSCORE_EXPORT
#define VTKFILTERSCORE_EXPORT
Definition: vtkFiltersCoreModule.h:15
vtkRectilinearSynchronizedTemplates::ArrayComponent
int ArrayComponent
Definition: vtkRectilinearSynchronizedTemplates.h:168
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkRectilinearSynchronizedTemplates::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkRectilinearSynchronizedTemplates::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkRectilinearSynchronizedTemplates::vtkRectilinearSynchronizedTemplates
vtkRectilinearSynchronizedTemplates()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkRectilinearSynchronizedTemplates::ComputeNormals
int ComputeNormals
Definition: vtkRectilinearSynchronizedTemplates.h:157
vtkRectilinearSynchronizedTemplates::SetNumberOfContours
void SetNumberOfContours(int number)
Definition: vtkRectilinearSynchronizedTemplates.h:106
vtkContourValues.h
vtkX3D::spacing
@ spacing
Definition: vtkX3D.h:481
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkRectilinearSynchronizedTemplates::ComputeSpacing
void ComputeSpacing(vtkRectilinearGrid *data, int i, int j, int k, int extent[6], double spacing[6])
vtkRectilinearSynchronizedTemplates::ComputeGradients
int ComputeGradients
Definition: vtkRectilinearSynchronizedTemplates.h:158
vtkRectilinearSynchronizedTemplates::ComputeScalars
int ComputeScalars
Definition: vtkRectilinearSynchronizedTemplates.h:159
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
vtkRectilinearSynchronizedTemplates::GetScalarsForExtent
void * GetScalarsForExtent(vtkDataArray *array, int extent[6], vtkRectilinearGrid *input)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44
vtkRectilinearSynchronizedTemplates::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)