VTK
vtkSynchronizedTemplates2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSynchronizedTemplates2D.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 vtkSynchronizedTemplates2D_h
30 #define vtkSynchronizedTemplates2D_h
31 
32 #include "vtkFiltersCoreModule.h" // For export macro
33 #include "vtkPolyDataAlgorithm.h"
34 
35 #include "vtkContourValues.h" // Needed for direct access to ContourValues
36 
37 class vtkImageData;
38 
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47  unsigned long int GetMTime();
48 
51  void SetValue(int i, double value) {this->ContourValues->SetValue(i,value);}
52 
54  double GetValue(int i) {return this->ContourValues->GetValue(i);}
55 
58  double *GetValues() {return this->ContourValues->GetValues();}
59 
61 
64  void GetValues(double *contourValues) {
65  this->ContourValues->GetValues(contourValues);}
67 
69 
72  void SetNumberOfContours(int number) {
73  this->ContourValues->SetNumberOfContours(number);}
75 
77 
79  return this->ContourValues->GetNumberOfContours();}
81 
83 
85  void GenerateValues(int numContours, double range[2]) {
86  this->ContourValues->GenerateValues(numContours, range);}
88 
90 
92  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
93  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
95 
97 
99  vtkSetMacro(ComputeScalars,int);
100  vtkGetMacro(ComputeScalars,int);
101  vtkBooleanMacro(ComputeScalars,int);
103 
105 
107  vtkSetMacro(ArrayComponent, int);
108  vtkGetMacro(ArrayComponent, int);
110 
111 protected:
114 
118 
121 
122 private:
123  vtkSynchronizedTemplates2D(const vtkSynchronizedTemplates2D&); // Not implemented.
124  void operator=(const vtkSynchronizedTemplates2D&); // Not implemented.
125 };
126 
127 
128 #endif
129 
vtkSynchronizedTemplates2D::GetMTime
unsigned long int GetMTime()
vtkSynchronizedTemplates2D::ContourValues
vtkContourValues * ContourValues
Definition: vtkSynchronizedTemplates2D.h:117
vtkSynchronizedTemplates2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkSynchronizedTemplates2D::~vtkSynchronizedTemplates2D
~vtkSynchronizedTemplates2D()
vtkSynchronizedTemplates2D::SetValue
void SetValue(int i, double value)
Definition: vtkSynchronizedTemplates2D.h:51
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkSynchronizedTemplates2D::GenerateValues
void GenerateValues(int numContours, double range[2])
Definition: vtkSynchronizedTemplates2D.h:85
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSynchronizedTemplates2D::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSynchronizedTemplates2D
generate isoline(s) from a structured points set
Definition: vtkSynchronizedTemplates2D.h:40
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
vtkSynchronizedTemplates2D::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkSynchronizedTemplates2D::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Definition: vtkSynchronizedTemplates2D.h:92
vtkFiltersCoreModule.h
vtkPolyDataAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
VTKFILTERSCORE_EXPORT
#define VTKFILTERSCORE_EXPORT
Definition: vtkFiltersCoreModule.h:15
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSynchronizedTemplates2D::GetNumberOfContours
int GetNumberOfContours()
Definition: vtkSynchronizedTemplates2D.h:78
vtkSynchronizedTemplates2D::GetValues
void GetValues(double *contourValues)
Definition: vtkSynchronizedTemplates2D.h:64
vtkSynchronizedTemplates2D::vtkSynchronizedTemplates2D
vtkSynchronizedTemplates2D()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkSynchronizedTemplates2D::ComputeScalars
int ComputeScalars
Definition: vtkSynchronizedTemplates2D.h:119
vtkContourValues.h
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
vtkSynchronizedTemplates2D::New
static vtkSynchronizedTemplates2D * New()
vtkSynchronizedTemplates2D::ArrayComponent
int ArrayComponent
Definition: vtkSynchronizedTemplates2D.h:120
vtkSynchronizedTemplates2D::GetValue
double GetValue(int i)
Definition: vtkSynchronizedTemplates2D.h:54
vtkSynchronizedTemplates2D::GetValues
double * GetValues()
Definition: vtkSynchronizedTemplates2D.h:58
vtkSynchronizedTemplates2D::SetNumberOfContours
void SetNumberOfContours(int number)
Definition: vtkSynchronizedTemplates2D.h:72
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44