VTK  9.7.20261202
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
15
16#ifndef vtkResampleToImage_h
17#define vtkResampleToImage_h
18
19#include "vtkAlgorithm.h"
20#include "vtkCallbackCommand.h" // for vtkCallbackCommand
21#include "vtkFiltersCoreModule.h" // For export macro
22#include "vtkNew.h" // For vtkCompositeDataProbeFilter member variable
23#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24
25VTK_ABI_NAMESPACE_BEGIN
26class vtkDataObject;
27class vtkImageData;
28
29class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkResampleToImage : public vtkAlgorithm
30{
31public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
36
38
42 vtkSetMacro(UseInputBounds, bool);
43 vtkGetMacro(UseInputBounds, bool);
44 vtkBooleanMacro(UseInputBounds, bool);
46
48
52 vtkSetVector6Macro(SamplingBounds, double);
53 vtkGetVector6Macro(SamplingBounds, double);
55
57
60 vtkSetVector3Macro(SamplingDimensions, int);
61 vtkGetVector3Macro(SamplingDimensions, int);
63
68
72 const char* GetMaskArrayName() const;
73
74protected:
77
78 // Usual data generation method
86
91 void PerformResampling(vtkDataObject* input, const double samplingBounds[6],
92 bool computeProbingExtent, const double inputBounds[6], vtkImageData* output);
93
98
103 static void ComputeDataBounds(vtkDataObject* data, double bounds[6]);
104
106 double SamplingBounds[6];
108
109private:
110 vtkResampleToImage(const vtkResampleToImage&) = delete;
111 void operator=(const vtkResampleToImage&) = delete;
112
113 vtkNew<vtkCallbackCommand> InternalProgressCallback;
114 vtkNew<vtkCallbackCommand> InternalAbortCheckCallback;
115};
116
117VTK_ABI_NAMESPACE_END
118#endif
general representation of visualization data
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Allocate and hold a VTK object.
Definition vtkNew.h:168
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
~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.
const char * GetMaskArrayName() const
Get the name of the valid-points mask array.
vtkImageData * GetOutput()
Get the output data for this algorithm.
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...
static vtkResampleToImage * New()
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO