VTK
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 =========================================================================*/
33 #ifndef vtkResampleWithDataSet_h
34 #define vtkResampleWithDataSet_h
35 
36 
37 #include "vtkFiltersCoreModule.h" // For export macro
38 #include "vtkNew.h" // For vtkCompositeDataProbeFilter member variable
40 
43 class vtkDataSet;
44 
45 class VTKFILTERSCORE_EXPORT vtkResampleWithDataSet : public vtkPassInputTypeAlgorithm
46 {
47 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
60 
68 
70 
75  void SetCategoricalData(bool arg);
78 
80 
84  void SetPassCellArrays(bool arg);
86  vtkBooleanMacro(PassCellArrays, bool);
88 
90 
94  void SetPassPointArrays(bool arg);
96  vtkBooleanMacro(PassPointArrays, bool);
98 
100 
104  void SetPassFieldArrays(bool arg);
106  vtkBooleanMacro(PassFieldArrays, bool);
108 
110 
115  void SetTolerance(double arg);
116  double GetTolerance();
118 
120 
125  void SetComputeTolerance(bool arg);
127  vtkBooleanMacro(ComputeTolerance, bool);
129 
131 
135  vtkSetMacro(MarkBlankPointsAndCells, bool);
136  vtkGetMacro(MarkBlankPointsAndCells, bool);
137  vtkBooleanMacro(MarkBlankPointsAndCells, bool);
139 
141  /*
142  * Set/Get the prototype cell locator to use for probing the source dataset.
143  * The value is forwarded to the underlying probe filter.
144  */
148 
149  vtkMTimeType GetMTime() override;
150 
151 protected:
154 
155  // Usual data generation method
157  vtkInformationVector *) override;
159  vtkInformationVector *) override;
161  vtkInformationVector *) override;
164 
168  const char* GetMaskArrayName() const;
169 
174 
177 
178 private:
180  void operator=(const vtkResampleWithDataSet&) = delete;
181 };
182 
183 #endif // vtkResampleWithDataSet_h
vtkResampleWithDataSet::GetMTime
vtkMTimeType GetMTime() override
Return this object's modified time.
vtkResampleWithDataSet::GetPassFieldArrays
bool GetPassFieldArrays()
vtkResampleWithDataSet::SetPassCellArrays
void SetPassCellArrays(bool arg)
Shallow copy the input cell data arrays to the output.
vtkResampleWithDataSet::New
static vtkResampleWithDataSet * New()
vtkResampleWithDataSet::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
vtkPassInputTypeAlgorithm.h
vtkResampleWithDataSet::SetCellLocatorPrototype
virtual void SetCellLocatorPrototype(vtkAbstractCellLocator *)
vtkResampleWithDataSet::MarkBlankPointsAndCells
bool MarkBlankPointsAndCells
Definition: vtkResampleWithDataSet.h:176
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkResampleWithDataSet::SetSourceConnection
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify the data set that will be probed at the input points.
vtkResampleWithDataSet::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkResampleWithDataSet::SetPassPointArrays
void SetPassPointArrays(bool arg)
Shallow copy the input point data arrays to the output Off by default.
vtkResampleWithDataSet::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkResampleWithDataSet::vtkResampleWithDataSet
vtkResampleWithDataSet()
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:825
vtkResampleWithDataSet::GetComputeTolerance
bool GetComputeTolerance()
vtkResampleWithDataSet::SetPassFieldArrays
void SetPassFieldArrays(bool arg)
Set whether to pass the field-data arrays from the Input i.e.
vtkResampleWithDataSet::Prober
vtkNew< vtkCompositeDataProbeFilter > Prober
Definition: vtkResampleWithDataSet.h:175
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkResampleWithDataSet::GetMaskArrayName
const char * GetMaskArrayName() const
Get the name of the valid-points mask array.
vtkResampleWithDataSet::SetSourceData
void SetSourceData(vtkDataObject *source)
Specify the data set that will be probed at the input points.
vtkResampleWithDataSet::SetTolerance
void SetTolerance(double arg)
Set the tolerance used to compute whether a point in the source is in a cell of the input.
vtkNew< vtkCompositeDataProbeFilter >
vtkResampleWithDataSet::SetComputeTolerance
void SetComputeTolerance(bool arg)
Set whether to use the Tolerance field or precompute the tolerance.
vtkResampleWithDataSet::FillOutputPortInformation
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
vtkResampleWithDataSet::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks for Information.
vtkAbstractCellLocator
an abstract base class for locators which find cells
Definition: vtkAbstractCellLocator.h:49
vtkResampleWithDataSet::GetPassPointArrays
bool GetPassPointArrays()
vtkCompositeDataProbeFilter
subclass of vtkProbeFilter which supports composite datasets in the input.
Definition: vtkCompositeDataProbeFilter.h:46
vtkResampleWithDataSet::GetCategoricalData
bool GetCategoricalData()
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkResampleWithDataSet::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkNew.h
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:40
vtkResampleWithDataSet::GetTolerance
double GetTolerance()
vtkResampleWithDataSet::GetPassCellArrays
bool GetPassCellArrays()
vtkResampleWithDataSet::GetCellLocatorPrototype
virtual vtkAbstractCellLocator * GetCellLocatorPrototype() const
vtkResampleWithDataSet
sample point and cell data of a dataset on points from another dataset.
Definition: vtkResampleWithDataSet.h:46
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkResampleWithDataSet::~vtkResampleWithDataSet
~vtkResampleWithDataSet() override
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:55
vtkResampleWithDataSet::SetBlankPointsAndCells
void SetBlankPointsAndCells(vtkDataSet *data)
Mark invalid points and cells of output DataSet as hidden.
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
vtkResampleWithDataSet::SetCategoricalData
void SetCategoricalData(bool arg)
Control whether the source point data is to be treated as categorical.