VTK  9.0.1
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 =========================================================================*/
27 #ifndef vtkImageNoiseSource_h
28 #define vtkImageNoiseSource_h
29 
30 #include "vtkImageAlgorithm.h"
31 #include "vtkImagingSourcesModule.h" // For export macro
32 
33 class VTKIMAGINGSOURCES_EXPORT vtkImageNoiseSource : public vtkImageAlgorithm
34 {
35 public:
36  static vtkImageNoiseSource* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  vtkSetMacro(Minimum, double);
45  vtkGetMacro(Minimum, double);
46  vtkSetMacro(Maximum, double);
47  vtkGetMacro(Maximum, double);
49 
51 
54  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
55  void SetWholeExtent(const int ext[6])
56  {
57  this->SetWholeExtent(ext[0], ext[1], ext[2], ext[3], ext[4], ext[5]);
58  }
60 
61 protected:
63  ~vtkImageNoiseSource() override {}
64 
65  double Minimum;
66  double Maximum;
67  int WholeExtent[6];
68 
71 
72 private:
74  void operator=(const vtkImageNoiseSource&) = delete;
75 };
76 
77 #endif
vtkImageNoiseSource::Maximum
double Maximum
Definition: vtkImageNoiseSource.h:66
vtkX3D::data
@ data
Definition: vtkX3D.h:321
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImageAlgorithm::ExecuteDataWithInformation
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:37
vtkImageNoiseSource
Create an image filled with noise.
Definition: vtkImageNoiseSource.h:33
vtkImageAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkImageNoiseSource::~vtkImageNoiseSource
~vtkImageNoiseSource() override
Definition: vtkImageNoiseSource.h:63
vtkImageNoiseSource::Minimum
double Minimum
Definition: vtkImageNoiseSource.h:65
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59
vtkImageNoiseSource::SetWholeExtent
void SetWholeExtent(const int ext[6])
Definition: vtkImageNoiseSource.h:55