VTK  9.3.1
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 
33 VTK_ABI_NAMESPACE_BEGIN
36 class vtkImageData;
37 class vtkPointData;
38 
39 class VTKIMAGINGCORE_EXPORT vtkImageProbeFilter : public vtkDataSetAlgorithm
40 {
41 public:
42  static vtkImageProbeFilter* New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
53  void SetSourceData(vtkDataObject* source);
54  vtkDataObject* GetSource();
56 
63  void SetSourceConnection(vtkAlgorithmOutput* algOutput);
64 
66 
71  virtual void SetInterpolator(vtkAbstractImageInterpolator* interpolator);
72  virtual vtkAbstractImageInterpolator* GetInterpolator() { return this->Interpolator; }
74 
75 protected:
77  ~vtkImageProbeFilter() override;
78 
80 
84 
88  void Probe(vtkDataSet* input, vtkImageData* source, vtkDataSet* output);
89 
93  virtual void InitializeForProbing(vtkDataSet* input, vtkImageData* source, vtkDataSet* output);
94 
98  void DoProbing(vtkDataSet* input, vtkImageData* source, vtkDataSet* output);
99 
102 
103 private:
104  vtkImageProbeFilter(const vtkImageProbeFilter&) = delete;
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 
119 VTK_ABI_NAMESPACE_END
120 #endif
interpolate data values from images
represent and manipulate point attribute data
Definition: vtkPointData.h:29
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
vtkAbstractImageInterpolator * Interpolator
int vtkIdType
Definition: vtkType.h:315
virtual vtkAbstractImageInterpolator * GetInterpolator()
Set the interpolator to use.
Proxy object to connect input/output ports.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
vtkUnsignedCharArray * MaskScalars
sample image values at specified point positions
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
dynamic, self-adjusting array of unsigned char
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
general representation of visualization data
Definition: vtkDataObject.h:54
static vtkDataSetAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.