1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkImageNoiseSource.h,v $
6 Date: $Date: 2002/01/22 15:33:09 $
7 Version: $Revision: 1.25 $
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
18 // .NAME vtkImageNoiseSource - Create an image filled with noise.
19 // .SECTION Description
20 // vtkImageNoiseSource just produces images filled with noise. The only
21 // option now is uniform noise specified by a min and a max. There is one
22 // major problem with this source. Every time it executes, it will output
23 // different pixel values. This has important implications when a stream
24 // requests overlapping regions. The same pixels will have different values
25 // on different updates.
28 #ifndef __vtkImageNoiseSource_h
29 #define __vtkImageNoiseSource_h
32 #include "vtkImageSource.h"
35 class VTK_IMAGING_EXPORT vtkImageNoiseSource : public vtkImageSource
38 static vtkImageNoiseSource *New();
39 vtkTypeRevisionMacro(vtkImageNoiseSource,vtkImageSource);
40 void PrintSelf(ostream& os, vtkIndent indent);
43 // Set/Get the minimum and maximum values for the generated noise.
44 vtkSetMacro(Minimum, float);
45 vtkGetMacro(Minimum, float);
46 vtkSetMacro(Maximum, float);
47 vtkGetMacro(Maximum, float);
50 // Set how large of an image to generate.
51 void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax,
55 vtkImageNoiseSource();
56 ~vtkImageNoiseSource() {};
62 virtual void ExecuteInformation();
63 virtual void ExecuteData(vtkDataObject *data);
65 vtkImageNoiseSource(const vtkImageNoiseSource&); // Not implemented.
66 void operator=(const vtkImageNoiseSource&); // Not implemented.