VTK
dox/Imaging/Sources/vtkImageNoiseSource.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageNoiseSource.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00029 #ifndef __vtkImageNoiseSource_h
00030 #define __vtkImageNoiseSource_h
00031 
00032 
00033 #include "vtkImagingSourcesModule.h" // For export macro
00034 #include "vtkImageAlgorithm.h"
00035 
00036 
00037 class VTKIMAGINGSOURCES_EXPORT vtkImageNoiseSource : public vtkImageAlgorithm
00038 {
00039 public:
00040   static vtkImageNoiseSource *New();
00041   vtkTypeMacro(vtkImageNoiseSource,vtkImageAlgorithm);
00042   void PrintSelf(ostream& os, vtkIndent indent);
00043 
00045 
00046   vtkSetMacro(Minimum, double);
00047   vtkGetMacro(Minimum, double);
00048   vtkSetMacro(Maximum, double);
00049   vtkGetMacro(Maximum, double);
00051 
00053 
00054   void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax,
00055                       int zMin, int zMax);
00056   void SetWholeExtent(const int ext[6])
00057     {
00058     this->SetWholeExtent(ext[0], ext[1], ext[2], ext[3], ext[4], ext[5]);
00059     }
00061 
00062 protected:
00063   vtkImageNoiseSource();
00064   ~vtkImageNoiseSource() {}
00065 
00066   double Minimum;
00067   double Maximum;
00068   int WholeExtent[6];
00069 
00070   virtual int RequestInformation (vtkInformation *, vtkInformationVector**, vtkInformationVector *);
00071   virtual void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation* outInfo);
00072 private:
00073   vtkImageNoiseSource(const vtkImageNoiseSource&);  // Not implemented.
00074   void operator=(const vtkImageNoiseSource&);  // Not implemented.
00075 };
00076 
00077 
00078 #endif
00079 
00080