VTK  9.4.20250214
vtkImageProbeFilter.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
27#ifndef vtkImageProbeFilter_h
28#define vtkImageProbeFilter_h
29
30#include "vtkDataSetAlgorithm.h"
31#include "vtkImagingCoreModule.h" // For export macro
32
33VTK_ABI_NAMESPACE_BEGIN
36class vtkImageData;
37class vtkPointData;
38
39class VTKIMAGINGCORE_EXPORT vtkImageProbeFilter : public vtkDataSetAlgorithm
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
56
64
66
71 virtual void SetInterpolator(vtkAbstractImageInterpolator* interpolator);
72 virtual vtkAbstractImageInterpolator* GetInterpolator() { return this->Interpolator; }
74
75protected:
78
79 int FillInputPortInformation(int port, vtkInformation* info) override;
80
84
89
94
99
102
103private:
105 void operator=(const vtkImageProbeFilter&) = delete;
106
107 class ProbePointsWorklet;
108 struct ProbePointsThreadLocal;
109 struct ProbePointsThreadStruct;
110
115 void ProbePoints(vtkDataSet* input, vtkImageData* source, vtkPointData* outPD, vtkIdType startId,
116 vtkIdType endId, ProbePointsThreadLocal* threadLocal);
117};
118
119VTK_ABI_NAMESPACE_END
120#endif
interpolate data values from images
Proxy object to connect input/output ports.
general representation of visualization data
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
topologically and geometrically regular array of data
sample image values at specified point positions
vtkUnsignedCharArray * MaskScalars
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks for Information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void SetSourceData(vtkDataObject *source)
Specify the data set that will be probed at the input points.
virtual void SetInterpolator(vtkAbstractImageInterpolator *interpolator)
Set the interpolator to use.
void DoProbing(vtkDataSet *input, vtkImageData *source, vtkDataSet *output)
Probe appropriate points (InitializeForProbing() must be called first).
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify the data set that will be probed at the input points.
vtkDataObject * GetSource()
Specify the data set that will be probed at the input points.
void Probe(vtkDataSet *input, vtkImageData *source, vtkDataSet *output)
Equivalent to calling InitializeForProbing(); DoProbing().
static vtkImageProbeFilter * New()
vtkAbstractImageInterpolator * Interpolator
virtual vtkAbstractImageInterpolator * GetInterpolator()
Set the interpolator to use.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
virtual void InitializeForProbing(vtkDataSet *input, vtkImageData *source, vtkDataSet *output)
Initialize the interpolator and the output arrays.
~vtkImageProbeFilter() override
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
dynamic, self-adjusting array of unsigned char
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
int vtkIdType
Definition vtkType.h:315