vtkImageSimpleSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
23 #ifndef vtkImageSimpleSource_h
24 #define vtkImageSimpleSource_h
25 
26 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
28 
31 {
32 public:
33  static vtkImageSimpleSource* New();
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
40  vtkGetVector6Macro(WholeExtent, int);
41  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
42 
46  vtkGetMacro(EnableDistanceSquaredData, bool);
47  vtkSetMacro(EnableDistanceSquaredData, bool);
48  vtkBooleanMacro(EnableDistanceSquaredData, bool);
49 
53  vtkGetMacro(EnableSwirlData, bool);
54  vtkSetMacro(EnableSwirlData, bool);
55  vtkBooleanMacro(EnableSwirlData, bool);
56 
57 protected:
59  ~vtkImageSimpleSource() override = default;
60 
63  int FirstIndex[3];
64  int WholeExtent[6];
65 
66  void PrepareImageData(vtkInformationVector** inputVector, vtkInformationVector* outputVector,
67  vtkImageData*** inDataObjects = nullptr, vtkImageData** outDataObjects = nullptr) override;
68 
69  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
70  vtkInformationVector* outputVector) override;
71 
72  void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
73  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
74  int extent[6], int threadId) override;
75 
76 private:
78  void operator=(const vtkImageSimpleSource&) = delete;
79 };
80 
81 #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