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 "vtkPolyDataAlgorithm.h"
33 
34 #include "vtkContourValues.h" // Needed for direct access to ContourValues
35 
36 class vtkImageData;
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46  unsigned long int GetMTime();
47 
50  void SetValue(int i, double value) {this->ContourValues->SetValue(i,value);}
51 
53  double GetValue(int i) {return this->ContourValues->GetValue(i);}
54 
57  double *GetValues() {return this->ContourValues->GetValues();}
58 
60 
63  void GetValues(double *contourValues) {
64  this->ContourValues->GetValues(contourValues);}
66 
68 
71  void SetNumberOfContours(int number) {
72  this->ContourValues->SetNumberOfContours(number);}
74 
76 
78  return this->ContourValues->GetNumberOfContours();}
80 
82 
84  void GenerateValues(int numContours, double range[2]) {
85  this->ContourValues->GenerateValues(numContours, range);}
87 
89 
91  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
92  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
94 
96 
98  vtkSetMacro(ComputeScalars,int);
99  vtkGetMacro(ComputeScalars,int);
100  vtkBooleanMacro(ComputeScalars,int);
102 
104 
106  vtkSetMacro(ArrayComponent, int);
107  vtkGetMacro(ArrayComponent, int);
109 
110 protected:
113 
117 
120 
121 private:
122  vtkSynchronizedTemplates2D(const vtkSynchronizedTemplates2D&); // Not implemented.
123  void operator=(const vtkSynchronizedTemplates2D&); // Not implemented.
124 };
125 
126 
127 #endif
128