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 
helper object to manage setting and generating contour values
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSCORE_EXPORT
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
void GenerateValues(int numContours, double range[2])
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
void GetValues(double *contourValues)
Store zero or more vtkInformation instances.
void SetValue(int i, double value)
generate isoline(s) from a structured points set