vtkImageSimpleSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageSimpleSource.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 =========================================================================*/
34 #ifndef vtkImageSimpleSource_h
35 #define vtkImageSimpleSource_h
36 
37 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
39 
42 {
43 public:
44  static vtkImageSimpleSource* New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
51  vtkGetVector6Macro(WholeExtent, int);
52  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
53 
57  vtkGetMacro(EnableDistanceSquaredData, bool);
58  vtkSetMacro(EnableDistanceSquaredData, bool);
59  vtkBooleanMacro(EnableDistanceSquaredData, bool);
60 
64  vtkGetMacro(EnableSwirlData, bool);
65  vtkSetMacro(EnableSwirlData, bool);
66  vtkBooleanMacro(EnableSwirlData, bool);
67 
68 protected:
70  ~vtkImageSimpleSource() override {}
71 
74  int FirstIndex[3];
75  int WholeExtent[6];
76 
77  void PrepareImageData(vtkInformationVector** inputVector, vtkInformationVector* outputVector,
78  vtkImageData*** inDataObjects = nullptr, vtkImageData** outDataObjects = nullptr) override;
79 
80  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
81  vtkInformationVector* outputVector) override;
82 
83  void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
84  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
85  int extent[6], int threadId) override;
86 
87 private:
89  void operator=(const vtkImageSimpleSource&) = delete;
90 };
91 
92 #endif
Create a 3-D image with simple-to-compute pixel values.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
virtual void PrepareImageData(vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inDataObjects=0, vtkImageData **outDataObjects=0)
#define VTKPVVTKEXTENSIONSFILTERSGENERAL_EXPORT
static vtkAlgorithm * New()
void operator=(const vtkObjectBase &)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE