VTK  9.2.6
vtkImageProbeFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageProbeFilter.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=========================================================================*/
39#ifndef vtkImageProbeFilter_h
40#define vtkImageProbeFilter_h
41
42#include "vtkDataSetAlgorithm.h"
43#include "vtkImagingCoreModule.h" // For export macro
44
47class vtkImageData;
48class vtkPointData;
49
50class VTKIMAGINGCORE_EXPORT vtkImageProbeFilter : public vtkDataSetAlgorithm
51{
52public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
58
67
75
77
82 virtual void SetInterpolator(vtkAbstractImageInterpolator* interpolator);
83 virtual vtkAbstractImageInterpolator* GetInterpolator() { return this->Interpolator; }
85
86protected:
89
90 int FillInputPortInformation(int port, vtkInformation* info) override;
91
95
100
105
110
113
114private:
116 void operator=(const vtkImageProbeFilter&) = delete;
117
118 class ProbePointsWorklet;
119 struct ProbePointsThreadLocal;
120
125 void ProbePoints(vtkDataSet* input, vtkImageData* source, vtkPointData* outPD, vtkIdType startId,
126 vtkIdType endId, ProbePointsThreadLocal* threadLocal);
127};
128
129#endif
interpolate data values from images
Proxy object to connect input/output ports.
general representation of visualization data
Definition: vtkDataObject.h:66
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
topologically and geometrically regular array of data
Definition: vtkImageData.h:54
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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
Definition: vtkPointData.h:42
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:332