00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00070 #ifndef __vtkSynchronizedTemplates2D_h
00071 #define __vtkSynchronizedTemplates2D_h
00072
00073 #include "vtkPolyDataSource.h"
00074 #include "vtkImageData.h"
00075 #include "vtkContourValues.h"
00076 #include "vtkKitwareContourFilter.h"
00077
00078 class VTK_PATENTED_EXPORT vtkSynchronizedTemplates2D : public vtkPolyDataSource
00079 {
00080 public:
00081 static vtkSynchronizedTemplates2D *New();
00082 vtkTypeMacro(vtkSynchronizedTemplates2D,vtkPolyDataSource);
00083 void PrintSelf(ostream& os, vtkIndent indent);
00084
00086
00087 void SetInput(vtkImageData *input);
00088 vtkImageData *GetInput();
00090
00092 unsigned long int GetMTime();
00093
00096 void SetValue(int i, float value) {this->ContourValues->SetValue(i,value);}
00097
00099 float GetValue(int i) {return this->ContourValues->GetValue(i);}
00100
00103 float *GetValues() {return this->ContourValues->GetValues();}
00104
00106
00109 void GetValues(float *contourValues) {
00110 this->ContourValues->GetValues(contourValues);}
00112
00114
00117 void SetNumberOfContours(int number) {
00118 this->ContourValues->SetNumberOfContours(number);}
00120
00122
00123 int GetNumberOfContours() {
00124 return this->ContourValues->GetNumberOfContours();}
00126
00128
00130 void GenerateValues(int numContours, float range[2]) {
00131 this->ContourValues->GenerateValues(numContours, range);}
00133
00135
00137 void GenerateValues(int numContours, float rangeStart, float rangeEnd)
00138 {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
00140
00142
00144 vtkSetMacro(ComputeScalars,int);
00145 vtkGetMacro(ComputeScalars,int);
00146 vtkBooleanMacro(ComputeScalars,int);
00148
00149 protected:
00150 vtkSynchronizedTemplates2D();
00151 ~vtkSynchronizedTemplates2D();
00152
00153 void Execute();
00154 vtkContourValues *ContourValues;
00155
00156 int ComputeScalars;
00157
00158 private:
00159
00160 friend class VTK_PATENTED_EXPORT vtkKitwareContourFilter;
00161
00162 private:
00163 vtkSynchronizedTemplates2D(const vtkSynchronizedTemplates2D&);
00164 void operator=(const vtkSynchronizedTemplates2D&);
00165 };
00166
00167
00168 #endif
00169