VTK  9.2.6
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=========================================================================*/
92#ifndef vtkImageNoiseSource_h
93#define vtkImageNoiseSource_h
94
95#include "vtkImageAlgorithm.h"
96#include "vtkImagingSourcesModule.h" // For export macro
97
98class VTKIMAGINGSOURCES_EXPORT vtkImageNoiseSource : public vtkImageAlgorithm
99{
100public:
103 void PrintSelf(ostream& os, vtkIndent indent) override;
104
106
109 vtkSetMacro(Minimum, double);
110 vtkGetMacro(Minimum, double);
111 vtkSetMacro(Maximum, double);
112 vtkGetMacro(Maximum, double);
114
116
119 void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
120 void SetWholeExtent(const int ext[6])
121 {
122 this->SetWholeExtent(ext[0], ext[1], ext[2], ext[3], ext[4], ext[5]);
123 }
125
126protected:
128 ~vtkImageNoiseSource() override = default;
129
130 double Minimum;
131 double Maximum;
132 int WholeExtent[6];
133
136
137private:
139 void operator=(const vtkImageNoiseSource&) = delete;
140};
141
142#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.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkImageNoiseSource * New()
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:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ data
Definition: vtkX3D.h:321