VTK  9.7.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 "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_7_0
25 #include "vtkFiltersCoreModule.h" // For export macro
26 #include "vtkNew.h" // For vtkCompositeDataProbeFilter member variable
28 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
29 
30 VTK_ABI_NAMESPACE_BEGIN
33 class vtkDataSet;
34 
35 class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkResampleWithDataSet
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
42  static vtkResampleWithDataSet* New();
43 
50  void SetSourceData(vtkDataObject* source);
51 
58  void SetSourceConnection(vtkAlgorithmOutput* algOutput);
59 
61 
66  void SetCategoricalData(bool arg);
67  bool GetCategoricalData();
69 
71 
75  void SetPassCellArrays(bool arg);
76  bool GetPassCellArrays();
77  vtkBooleanMacro(PassCellArrays, bool);
79 
81 
85  void SetPassPointArrays(bool arg);
86  bool GetPassPointArrays();
87  vtkBooleanMacro(PassPointArrays, bool);
89 
91 
95  void SetPassFieldArrays(bool arg);
96  bool GetPassFieldArrays();
97  vtkBooleanMacro(PassFieldArrays, bool);
99 
101 
113  void SetPassPartialArrays(bool arg);
114  bool GetPassPartialArrays();
115  vtkBooleanMacro(PassPartialArrays, bool);
117 
119 
124  void SetTolerance(double arg);
125  double GetTolerance();
127 
129 
134  void SetComputeTolerance(bool arg);
135  bool GetComputeTolerance();
136  vtkBooleanMacro(ComputeTolerance, bool);
138 
140 
144  vtkSetMacro(MarkBlankPointsAndCells, bool);
145  vtkGetMacro(MarkBlankPointsAndCells, bool);
146  vtkBooleanMacro(MarkBlankPointsAndCells, bool);
148 
150 
158  void SetSnapToCellWithClosestPoint(bool arg);
159  bool GetSnapToCellWithClosestPoint();
160  vtkBooleanMacro(SnapToCellWithClosestPoint, bool);
162 
164 
170  void SetSnappingRadius(double arg);
171  double GetSnappingRadius();
173 
175 
187  void SetUseImplicitArrays(bool arg);
188  bool GetUseImplicitArrays();
189  vtkBooleanMacro(UseImplicitArrays, bool);
191 
193  /*
194  * Set/Get the cell locator to use for probing the source dataset.
195  * The value is forwarded to the underlying probe filter.
196  */
197  virtual void SetCellLocator(vtkAbstractCellLocator*);
198  virtual vtkAbstractCellLocator* GetCellLocator() const;
200 
202  /*
203  * Set/Get the prototype cell locator to use for probing the source dataset.
204  * The value is forwarded to the underlying probe filter.
205  */
206  VTK_DEPRECATED_IN_9_7_0("Use SetCellLocator() instead.")
207  virtual void SetCellLocatorPrototype(vtkAbstractCellLocator* cellLocator)
208  {
209  this->SetCellLocator(cellLocator);
210  }
211  VTK_DEPRECATED_IN_9_7_0("Use GetCellLocator() instead.")
212  virtual vtkAbstractCellLocator* GetCellLocatorPrototype() const { return this->GetCellLocator(); }
214 
215  vtkMTimeType GetMTime() override;
216 
217 protected:
219  ~vtkResampleWithDataSet() override;
220 
221  // Usual data generation method
225  int FillInputPortInformation(int, vtkInformation*) override;
226  int FillOutputPortInformation(int, vtkInformation*) override;
227 
228  // Garbage collection method
229  void ReportReferences(vtkGarbageCollector*) override;
230 
234  const char* GetMaskArrayName() const;
235 
239  void SetBlankPointsAndCells(vtkDataSet* data);
240 
243 
244 private:
246  void operator=(const vtkResampleWithDataSet&) = delete;
247 };
248 
249 VTK_ABI_NAMESPACE_END
250 #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:318
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
void ReportReferences(vtkGarbageCollector *) override
subclass of vtkProbeFilter which supports composite datasets in the input.
an abstract base class for locators which find cells
Detect and break reference loops.
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.
#define VTK_MARSHALAUTO
general representation of visualization data
Definition: vtkDataObject.h:55
#define VTK_DEPRECATED_IN_9_7_0(reason)
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