VTK  9.3.1
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
21 #ifndef vtkImageNoiseSource_h
22 #define vtkImageNoiseSource_h
23 
24 #include "vtkImageAlgorithm.h"
25 #include "vtkImagingSourcesModule.h" // For export macro
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKIMAGINGSOURCES_EXPORT vtkImageNoiseSource : public vtkImageAlgorithm
29 {
30 public:
31  static vtkImageNoiseSource* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
39  vtkSetMacro(Minimum, double);
40  vtkGetMacro(Minimum, double);
41  vtkSetMacro(Maximum, double);
42  vtkGetMacro(Maximum, double);
44 
46 
49  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
50  void SetWholeExtent(const int ext[6])
51  {
52  this->SetWholeExtent(ext[0], ext[1], ext[2], ext[3], ext[4], ext[5]);
53  }
55 
56 protected:
58  ~vtkImageNoiseSource() override = default;
59 
60  double Minimum;
61  double Maximum;
62  int WholeExtent[6];
63 
66 
67 private:
69  void operator=(const vtkImageNoiseSource&) = delete;
70 };
71 
72 VTK_ABI_NAMESPACE_END
73 #endif
Store vtkAlgorithm input/output information.
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
void SetWholeExtent(const int ext[6])
Set how large of an image to generate.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
Create an image filled with noise.
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
Definition: vtkDataObject.h:54