VTK  9.3.20240418
vtkImageNoiseSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
70 #ifndef vtkImageNoiseSource_h
71 #define vtkImageNoiseSource_h
72 
73 #include "vtkImageAlgorithm.h"
74 #include "vtkImagingSourcesModule.h" // For export macro
75 
76 VTK_ABI_NAMESPACE_BEGIN
77 class VTKIMAGINGSOURCES_EXPORT vtkImageNoiseSource : public vtkImageAlgorithm
78 {
79 public:
82  void PrintSelf(ostream& os, vtkIndent indent) override;
83 
85 
88  vtkSetMacro(Minimum, double);
89  vtkGetMacro(Minimum, double);
90  vtkSetMacro(Maximum, double);
91  vtkGetMacro(Maximum, double);
93 
95 
98  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
99  void SetWholeExtent(const int ext[6])
100  {
101  this->SetWholeExtent(ext[0], ext[1], ext[2], ext[3], ext[4], ext[5]);
102  }
104 
105 protected:
107  ~vtkImageNoiseSource() override = default;
108 
109  double Minimum;
110  double Maximum;
111  int WholeExtent[6];
112 
115 
116 private:
117  vtkImageNoiseSource(const vtkImageNoiseSource&) = delete;
118  void operator=(const vtkImageNoiseSource&) = delete;
119 };
120 
121 VTK_ABI_NAMESPACE_END
122 #endif
general representation of visualization data
Generic algorithm superclass for image algs.
Create an image filled with noise.
void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax)
Set how large of an image to generate.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
static vtkImageNoiseSource * New()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetWholeExtent(const int ext[6])
Set how large of an image to generate.
~vtkImageNoiseSource() override=default
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ data
Definition: vtkX3D.h:315