VTK  9.2.6
vtkResampleWithDataSet.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkResampleWithDataSet.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=========================================================================*/
32
33#ifndef vtkResampleWithDataSet_h
34#define vtkResampleWithDataSet_h
35
36#include "vtkFiltersCoreModule.h" // For export macro
37#include "vtkNew.h" // For vtkCompositeDataProbeFilter member variable
39
42class vtkDataSet;
43
44class VTKFILTERSCORE_EXPORT vtkResampleWithDataSet : public vtkPassInputTypeAlgorithm
45{
46public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
59
67
69
74 void SetCategoricalData(bool arg);
77
79
83 void SetPassCellArrays(bool arg);
85 vtkBooleanMacro(PassCellArrays, bool);
87
89
93 void SetPassPointArrays(bool arg);
95 vtkBooleanMacro(PassPointArrays, bool);
97
99
103 void SetPassFieldArrays(bool arg);
105 vtkBooleanMacro(PassFieldArrays, bool);
107
109
121 void SetPassPartialArrays(bool arg);
123 vtkBooleanMacro(PassPartialArrays, bool);
125
127
132 void SetTolerance(double arg);
133 double GetTolerance();
135
137
142 void SetComputeTolerance(bool arg);
144 vtkBooleanMacro(ComputeTolerance, bool);
146
148
152 vtkSetMacro(MarkBlankPointsAndCells, bool);
153 vtkGetMacro(MarkBlankPointsAndCells, bool);
154 vtkBooleanMacro(MarkBlankPointsAndCells, bool);
156
158 /*
159 * Set/Get the prototype cell locator to use for probing the source dataset.
160 * The value is forwarded to the underlying probe filter.
161 */
165
167
168protected:
171
172 // Usual data generation method
178
182 const char* GetMaskArrayName() const;
183
188
191
192private:
194 void operator=(const vtkResampleWithDataSet&) = delete;
195};
196
197#endif // vtkResampleWithDataSet_h
an abstract base class for locators which find cells
Proxy object to connect input/output ports.
subclass of vtkProbeFilter which supports composite datasets in the input.
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:63
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Allocate and hold a VTK object.
Definition vtkNew.h:62
void SetBlankPointsAndCells(vtkDataSet *data)
Mark invalid points and cells of output DataSet as hidden.
void SetPassFieldArrays(bool arg)
Set whether to pass the field-data arrays from the Input i.e.
bool GetPassPointArrays()
Shallow copy the input point data arrays to the output Off by default.
void SetPassPartialArrays(bool arg)
When sampling from composite datasets, partial arrays are common i.e.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool GetCategoricalData()
Control whether the source point data is to be treated as categorical.
double GetTolerance()
When sampling from composite datasets, partial arrays are common i.e.
bool GetPassFieldArrays()
Set whether to pass the field-data arrays from the Input i.e.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
void SetCategoricalData(bool arg)
Control whether the source point data is to be treated as categorical.
~vtkResampleWithDataSet() override
virtual vtkAbstractCellLocator * GetCellLocatorPrototype() const
void SetTolerance(double arg)
Set the tolerance used to compute whether a point in the source is in a cell of the input.
bool GetComputeTolerance()
Set whether to use the Tolerance field or precompute the tolerance.
static vtkResampleWithDataSet * New()
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify the data set that will be probed at the input points.
void SetPassCellArrays(bool arg)
Shallow copy the input cell data arrays to the output.
bool GetPassPartialArrays()
When sampling from composite datasets, partial arrays are common i.e.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
const char * GetMaskArrayName() const
Get the name of the valid-points mask array.
void SetSourceData(vtkDataObject *source)
Specify the data set that will be probed at the input points.
vtkNew< vtkCompositeDataProbeFilter > Prober
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks for Information.
virtual void SetCellLocatorPrototype(vtkAbstractCellLocator *)
void SetComputeTolerance(bool arg)
Set whether to use the Tolerance field or precompute the tolerance.
vtkMTimeType GetMTime() override
Return this object's modified time.
bool GetPassCellArrays()
Shallow copy the input cell data arrays to the output.
void SetPassPointArrays(bool arg)
Shallow copy the input point data arrays to the output Off by default.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287