VTK
vtkImageNoiseSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageNoiseSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
33 #ifndef vtkImageNoiseSource_h
34 #define vtkImageNoiseSource_h
35 
36 
37 #include "vtkImagingSourcesModule.h" // For export macro
38 #include "vtkImageAlgorithm.h"
39 
40 
41 class VTKIMAGINGSOURCES_EXPORT vtkImageNoiseSource : public vtkImageAlgorithm
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
52  vtkSetMacro(Minimum, double);
53  vtkGetMacro(Minimum, double);
54  vtkSetMacro(Maximum, double);
55  vtkGetMacro(Maximum, double);
57 
59 
62  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax,
63  int zMin, int zMax);
64  void SetWholeExtent(const int ext[6])
65  {
66  this->SetWholeExtent(ext[0], ext[1], ext[2], ext[3], ext[4], ext[5]);
67  }
69 
70 protected:
73 
74  double Minimum;
75  double Maximum;
76  int WholeExtent[6];
77 
80 private:
81  vtkImageNoiseSource(const vtkImageNoiseSource&) VTK_DELETE_FUNCTION;
82  void operator=(const vtkImageNoiseSource&) VTK_DELETE_FUNCTION;
83 };
84 
85 
86 #endif
87 
88 
vtkImageNoiseSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImageNoiseSource::Maximum
double Maximum
Definition: vtkImageNoiseSource.h:75
vtkImageNoiseSource::vtkImageNoiseSource
vtkImageNoiseSource()
vtkImageNoiseSource::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkImageNoiseSource::SetWholeExtent
void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax)
Set how large of an image to generate.
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:41
vtkImageNoiseSource::New
static vtkImageNoiseSource * New()
vtkImageNoiseSource
Create an image filled with noise.
Definition: vtkImageNoiseSource.h:42
vtkImageNoiseSource::~vtkImageNoiseSource
~vtkImageNoiseSource()
Definition: vtkImageNoiseSource.h:72
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkImageNoiseSource::Minimum
double Minimum
Definition: vtkImageNoiseSource.h:74
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkImageNoiseSource::SetWholeExtent
void SetWholeExtent(const int ext[6])
Definition: vtkImageNoiseSource.h:64
vtkImageNoiseSource::ExecuteDataWithInformation
virtual void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.