OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I686LINUX / util / I686LINUX / include / vtk / vtkImageNoiseSource.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkImageNoiseSource.h,v $
5   Language:  C++
6   Date:      $Date: 2002/01/22 15:33:09 $
7   Version:   $Revision: 1.25 $
8
9   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
10   All rights reserved.
11   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
12
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.
16
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.
26
27
28 #ifndef __vtkImageNoiseSource_h
29 #define __vtkImageNoiseSource_h
30
31
32 #include "vtkImageSource.h"
33
34
35 class VTK_IMAGING_EXPORT vtkImageNoiseSource : public vtkImageSource 
36 {
37 public:
38   static vtkImageNoiseSource *New();
39   vtkTypeRevisionMacro(vtkImageNoiseSource,vtkImageSource);
40   void PrintSelf(ostream& os, vtkIndent indent);
41
42   // Description:
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);
48
49   // Description:
50   // Set how large of an image to generate.
51   void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax,
52                       int zMin, int zMax);
53
54 protected:
55   vtkImageNoiseSource();
56   ~vtkImageNoiseSource() {};
57
58   float Minimum;
59   float Maximum;
60   int WholeExtent[6];
61
62   virtual void ExecuteInformation();
63   virtual void ExecuteData(vtkDataObject *data);
64 private:
65   vtkImageNoiseSource(const vtkImageNoiseSource&);  // Not implemented.
66   void operator=(const vtkImageNoiseSource&);  // Not implemented.
67 };
68
69
70 #endif
71
72