VTK
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 
31 #include "vtkImagingSourcesModule.h" // For export macro
32 #include "vtkImageAlgorithm.h"
33 
34 
35 class VTKIMAGINGSOURCES_EXPORT vtkImageNoiseSource : public vtkImageAlgorithm
36 {
37 public:
38  static vtkImageNoiseSource *New();
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
46  vtkSetMacro(Minimum, double);
47  vtkGetMacro(Minimum, double);
48  vtkSetMacro(Maximum, double);
49  vtkGetMacro(Maximum, double);
51 
53 
56  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax,
57  int zMin, int zMax);
58  void SetWholeExtent(const int ext[6])
59  {
60  this->SetWholeExtent(ext[0], ext[1], ext[2], ext[3], ext[4], ext[5]);
61  }
63 
64 protected:
66  ~vtkImageNoiseSource() override {}
67 
68  double Minimum;
69  double Maximum;
70  int WholeExtent[6];
71 
74 private:
76  void operator=(const vtkImageNoiseSource&) = delete;
77 };
78 
79 
80 #endif
81 
82 
vtkImageNoiseSource::Maximum
double Maximum
Definition: vtkImageNoiseSource.h:69
vtkX3D::data
Definition: vtkX3D.h:315
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:35
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:80
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:66
vtkImageNoiseSource::Minimum
double Minimum
Definition: vtkImageNoiseSource.h:68
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58
vtkImageNoiseSource::SetWholeExtent
void SetWholeExtent(const int ext[6])
Definition: vtkImageNoiseSource.h:58