VTK  9.3.0
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
30 #ifndef vtkImageNoiseSource_h
31 #define vtkImageNoiseSource_h
32 
33 #include "vtkImageAlgorithm.h"
34 #include "vtkImagingSourcesModule.h" // For export macro
35 
36 VTK_ABI_NAMESPACE_BEGIN
37 class VTKIMAGINGSOURCES_EXPORT vtkImageNoiseSource : public vtkImageAlgorithm
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  vtkSetMacro(Minimum, double);
49  vtkGetMacro(Minimum, double);
50  vtkSetMacro(Maximum, double);
51  vtkGetMacro(Maximum, double);
53 
55 
58  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
59  void SetWholeExtent(const int ext[6])
60  {
61  this->SetWholeExtent(ext[0], ext[1], ext[2], ext[3], ext[4], ext[5]);
62  }
64 
65 protected:
67  ~vtkImageNoiseSource() override = default;
68 
69  double Minimum;
70  double Maximum;
71  int WholeExtent[6];
72 
75 
76 private:
78  void operator=(const vtkImageNoiseSource&) = delete;
79 };
80 
81 VTK_ABI_NAMESPACE_END
82 #endif
general representation of visualization data
Definition: vtkDataObject.h:64
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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ data
Definition: vtkX3D.h:315