VTK  9.2.6
vtkResampleToImage.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkResampleToImage.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 =========================================================================*/
28 #ifndef vtkResampleToImage_h
29 #define vtkResampleToImage_h
30 
31 #include "vtkAlgorithm.h"
32 #include "vtkFiltersCoreModule.h" // For export macro
33 #include "vtkNew.h" // For vtkCompositeDataProbeFilter member variable
34 
35 class vtkDataObject;
36 class vtkImageData;
37 
38 class VTKFILTERSCORE_EXPORT vtkResampleToImage : public vtkAlgorithm
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
47 
51  vtkSetMacro(UseInputBounds, bool);
52  vtkGetMacro(UseInputBounds, bool);
53  vtkBooleanMacro(UseInputBounds, bool);
55 
57 
61  vtkSetVector6Macro(SamplingBounds, double);
62  vtkGetVector6Macro(SamplingBounds, double);
64 
66 
69  vtkSetVector3Macro(SamplingDimensions, int);
70  vtkGetVector3Macro(SamplingDimensions, int);
72 
77 
81  const char* GetMaskArrayName() const;
82 
83 protected:
85  ~vtkResampleToImage() override;
86 
87  // Usual data generation method
95 
100  void PerformResampling(vtkDataObject* input, const double samplingBounds[6],
101  bool computeProbingExtent, const double inputBounds[6], vtkImageData* output);
102 
107 
112  static void ComputeDataBounds(vtkDataObject* data, double bounds[6]);
113 
115  double SamplingBounds[6];
116  int SamplingDimensions[3];
117 
118 private:
119  vtkResampleToImage(const vtkResampleToImage&) = delete;
120  void operator=(const vtkResampleToImage&) = delete;
121 };
122 
123 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:122
general representation of visualization data
topologically and geometrically regular array of data
Definition: vtkImageData.h:163
a simple class to control print indentation
Definition: vtkIndent.h:119
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:321
int vtkTypeBool
Definition: vtkABI.h:69