VTK  9.3.1
vtkResampleWithDataSet.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
21 #ifndef vtkResampleWithDataSet_h
22 #define vtkResampleWithDataSet_h
23 
24 #include "vtkFiltersCoreModule.h" // For export macro
25 #include "vtkNew.h" // For vtkCompositeDataProbeFilter member variable
27 
28 VTK_ABI_NAMESPACE_BEGIN
31 class vtkDataSet;
32 
33 class VTKFILTERSCORE_EXPORT vtkResampleWithDataSet : public vtkPassInputTypeAlgorithm
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
39  static vtkResampleWithDataSet* New();
40 
47  void SetSourceData(vtkDataObject* source);
48 
55  void SetSourceConnection(vtkAlgorithmOutput* algOutput);
56 
58 
63  void SetCategoricalData(bool arg);
64  bool GetCategoricalData();
66 
68 
72  void SetPassCellArrays(bool arg);
73  bool GetPassCellArrays();
74  vtkBooleanMacro(PassCellArrays, bool);
76 
78 
82  void SetPassPointArrays(bool arg);
83  bool GetPassPointArrays();
84  vtkBooleanMacro(PassPointArrays, bool);
86 
88 
92  void SetPassFieldArrays(bool arg);
93  bool GetPassFieldArrays();
94  vtkBooleanMacro(PassFieldArrays, bool);
96 
98 
110  void SetPassPartialArrays(bool arg);
111  bool GetPassPartialArrays();
112  vtkBooleanMacro(PassPartialArrays, bool);
114 
116 
121  void SetTolerance(double arg);
122  double GetTolerance();
124 
126 
131  void SetComputeTolerance(bool arg);
132  bool GetComputeTolerance();
133  vtkBooleanMacro(ComputeTolerance, bool);
135 
137 
141  vtkSetMacro(MarkBlankPointsAndCells, bool);
142  vtkGetMacro(MarkBlankPointsAndCells, bool);
143  vtkBooleanMacro(MarkBlankPointsAndCells, bool);
145 
147 
155  void SetSnapToCellWithClosestPoint(bool arg);
156  bool GetSnapToCellWithClosestPoint();
157  vtkBooleanMacro(SnapToCellWithClosestPoint, bool);
159 
161  /*
162  * Set/Get the prototype cell locator to use for probing the source dataset.
163  * The value is forwarded to the underlying probe filter.
164  */
165  virtual void SetCellLocatorPrototype(vtkAbstractCellLocator*);
166  virtual vtkAbstractCellLocator* GetCellLocatorPrototype() const;
168 
169  vtkMTimeType GetMTime() override;
170 
171 protected:
173  ~vtkResampleWithDataSet() override;
174 
175  // Usual data generation method
179  int FillInputPortInformation(int, vtkInformation*) override;
180  int FillOutputPortInformation(int, vtkInformation*) override;
181 
185  const char* GetMaskArrayName() const;
186 
190  void SetBlankPointsAndCells(vtkDataSet* data);
191 
194 
195 private:
197  void operator=(const vtkResampleWithDataSet&) = delete;
198 };
199 
200 VTK_ABI_NAMESPACE_END
201 #endif // vtkResampleWithDataSet_h
sample point and cell data of a dataset on points from another dataset.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
subclass of vtkProbeFilter which supports composite datasets in the input.
an abstract base class for locators which find cells
Proxy object to connect input/output ports.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual vtkMTimeType GetMTime()
Return this object's modified time.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:54
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()
vtkNew< vtkCompositeDataProbeFilter > Prober