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 
47 class vtkImageData;
48 class vtkPointData;
49 
50 class VTKIMAGINGCORE_EXPORT vtkImageProbeFilter : public vtkDataSetAlgorithm
51 {
52 public:
53  static vtkImageProbeFilter* New();
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
58 
64  void SetSourceData(vtkDataObject* source);
65  vtkDataObject* GetSource();
67 
74  void SetSourceConnection(vtkAlgorithmOutput* algOutput);
75 
77 
82  virtual void SetInterpolator(vtkAbstractImageInterpolator* interpolator);
83  virtual vtkAbstractImageInterpolator* GetInterpolator() { return this->Interpolator; }
85 
86 protected:
88  ~vtkImageProbeFilter() override;
89 
91 
95 
99  void Probe(vtkDataSet* input, vtkImageData* source, vtkDataSet* output);
100 
104  virtual void InitializeForProbing(vtkDataSet* input, vtkImageData* source, vtkDataSet* output);
105 
109  void DoProbing(vtkDataSet* input, vtkImageData* source, vtkDataSet* output);
110 
113 
114 private:
115  vtkImageProbeFilter(const vtkImageProbeFilter&) = delete;
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
represent and manipulate point attribute data
Definition: vtkPointData.h:41
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkAbstractImageInterpolator * Interpolator
int vtkIdType
Definition: vtkType.h:332
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:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:53
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:65
static vtkDataSetAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.