VTK  9.3.20240328
vtkResampleToImage.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
16 #ifndef vtkResampleToImage_h
17 #define vtkResampleToImage_h
18 
19 #include "vtkAlgorithm.h"
20 #include "vtkFiltersCoreModule.h" // For export macro
21 #include "vtkNew.h" // For vtkCompositeDataProbeFilter member variable
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class vtkDataObject;
25 class vtkImageData;
26 
27 class VTKFILTERSCORE_EXPORT vtkResampleToImage : public vtkAlgorithm
28 {
29 public:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
36 
40  vtkSetMacro(UseInputBounds, bool);
41  vtkGetMacro(UseInputBounds, bool);
42  vtkBooleanMacro(UseInputBounds, bool);
44 
46 
50  vtkSetVector6Macro(SamplingBounds, double);
51  vtkGetVector6Macro(SamplingBounds, double);
53 
55 
58  vtkSetVector3Macro(SamplingDimensions, int);
59  vtkGetVector3Macro(SamplingDimensions, int);
61 
66 
70  const char* GetMaskArrayName() const;
71 
72 protected:
74  ~vtkResampleToImage() override;
75 
76  // Usual data generation method
84 
89  void PerformResampling(vtkDataObject* input, const double samplingBounds[6],
90  bool computeProbingExtent, const double inputBounds[6], vtkImageData* output);
91 
96 
101  static void ComputeDataBounds(vtkDataObject* data, double bounds[6]);
102 
104  double SamplingBounds[6];
105  int SamplingDimensions[3];
106 
107 private:
108  vtkResampleToImage(const vtkResampleToImage&) = delete;
109  void operator=(const vtkResampleToImage&) = delete;
110 };
111 
112 VTK_ABI_NAMESPACE_END
113 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:161
general representation of visualization data
topologically and geometrically regular array of data
Definition: vtkImageData.h:155
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
sample dataset on a uniform grid
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
const char * GetMaskArrayName() const
Get the name of the valid-points mask array.
~vtkResampleToImage() override
static void ComputeDataBounds(vtkDataObject *data, double bounds[6])
Helper function to compute the bounds of the given vtkDataSet or vtkCompositeDataSet.
void SetBlankPointsAndCells(vtkImageData *data)
Mark invalid points and cells of vtkImageData as hidden.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
static vtkResampleToImage * New()
void PerformResampling(vtkDataObject *input, const double samplingBounds[6], bool computeProbingExtent, const double inputBounds[6], vtkImageData *output)
Resample input vtkDataObject to a vtkImageData with the specified bounds and extent.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkImageData * GetOutput()
Get the output data for this algorithm.
@ data
Definition: vtkX3D.h:315
int vtkTypeBool
Definition: vtkABI.h:64