VTK  9.1.0
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 =========================================================================*/
86 #ifndef vtkImageNoiseSource_h
87 #define vtkImageNoiseSource_h
88 
89 #include "vtkImageAlgorithm.h"
90 #include "vtkImagingSourcesModule.h" // For export macro
91 
92 class VTKIMAGINGSOURCES_EXPORT vtkImageNoiseSource : public vtkImageAlgorithm
93 {
94 public:
97  void PrintSelf(ostream& os, vtkIndent indent) override;
98 
100 
103  vtkSetMacro(Minimum, double);
104  vtkGetMacro(Minimum, double);
105  vtkSetMacro(Maximum, double);
106  vtkGetMacro(Maximum, double);
108 
110 
113  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
114  void SetWholeExtent(const int ext[6])
115  {
116  this->SetWholeExtent(ext[0], ext[1], ext[2], ext[3], ext[4], ext[5]);
117  }
119 
120 protected:
122  ~vtkImageNoiseSource() override = default;
123 
124  double Minimum;
125  double Maximum;
126  int WholeExtent[6];
127 
130 
131 private:
132  vtkImageNoiseSource(const vtkImageNoiseSource&) = delete;
133  void operator=(const vtkImageNoiseSource&) = delete;
134 };
135 
136 #endif
vtkImageNoiseSource::Maximum
double Maximum
Definition: vtkImageNoiseSource.h:125
vtkImageNoiseSource::ExecuteDataWithInformation
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
vtkImageNoiseSource::vtkImageNoiseSource
vtkImageNoiseSource()
vtkX3D::data
@ data
Definition: vtkX3D.h:321
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkImageNoiseSource::~vtkImageNoiseSource
~vtkImageNoiseSource() override=default
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:57
vtkImageNoiseSource::New
static vtkImageNoiseSource * New()
vtkImageNoiseSource
Create an image filled with noise.
Definition: vtkImageNoiseSource.h:93
vtkImageNoiseSource::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkImageNoiseSource::Minimum
double Minimum
Definition: vtkImageNoiseSource.h:124
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:169
vtkImageNoiseSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageNoiseSource::SetWholeExtent
void SetWholeExtent(const int ext[6])
Set how large of an image to generate.
Definition: vtkImageNoiseSource.h:114