Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00026 #ifndef __vtkKWEStencilContourFilter_h
00027 #define __vtkKWEStencilContourFilter_h
00028
00029 #include "VTKEdgeConfigure.h"
00030 #include "vtkPolyDataAlgorithm.h"
00031
00032 class vtkContourFilter;
00033 class vtkImageStencilData;
00034 class vtkImageData;
00035
00036 class VTKEdge_WIDGETS_EXPORT vtkKWEStencilContourFilter : public vtkPolyDataAlgorithm
00037 {
00038 public:
00039 static vtkKWEStencilContourFilter *New();
00040 vtkTypeRevisionMacro(vtkKWEStencilContourFilter,vtkPolyDataAlgorithm);
00041 void PrintSelf(ostream& os, vtkIndent indent);
00042
00044
00047 vtkSetVector6Macro( Extent, int );
00048 vtkGetVector6Macro( Extent, int );
00050
00052
00053 void SetValue(int i, double value);
00054 double GetValue(int i);
00055 double *GetValues();
00056 void GetValues(double *contourValues);
00057 void SetNumberOfContours(int number);
00058 int GetNumberOfContours();
00059 void GenerateValues(int numContours, double range[2]);
00060 void GenerateValues(int numContours, double rangeStart, double rangeEnd);
00062
00064 unsigned long GetMTime();
00065
00067
00071 void SetComputeNormals( int );
00072 int GetComputeNormals();
00073 vtkBooleanMacro(ComputeNormals,int);
00075
00077
00083 void SetComputeGradients( int );
00084 int GetComputeGradients();
00085 vtkBooleanMacro(ComputeGradients,int);
00087
00089
00090 void SetComputeScalars( int );
00091 int GetComputeScalars();
00092 vtkBooleanMacro(ComputeScalars,int);
00094
00095 protected:
00096 vtkKWEStencilContourFilter();
00097 ~vtkKWEStencilContourFilter();
00098
00099 virtual int RequestData(vtkInformation* request,
00100 vtkInformationVector** inputVector,
00101 vtkInformationVector* outputVector);
00102 virtual int RequestUpdateExtent(vtkInformation*,
00103 vtkInformationVector**,
00104 vtkInformationVector*);
00105 virtual int FillInputPortInformation(int port, vtkInformation *info);
00106
00107 vtkContourFilter *ContourFilter;
00108 vtkImageData *ImageData;
00109 int Extent[6];
00110
00111 private:
00112 vtkKWEStencilContourFilter(const vtkKWEStencilContourFilter&);
00113 void operator=(const vtkKWEStencilContourFilter&);
00114 };
00115
00116 #endif
00117