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 =========================================================================*/
30 #ifndef vtkResampleWithDataSet_h
31 #define vtkResampleWithDataSet_h
32 
33 
34 #include "vtkFiltersCoreModule.h" // For export macro
35 #include "vtkNew.h" // For vtkCompositeDataProbeFilter member variable
37 
40 class vtkDataSet;
41 
42 class VTKFILTERSCORE_EXPORT vtkResampleWithDataSet : public vtkPassInputTypeAlgorithm
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
48  static vtkResampleWithDataSet *New();
49 
56  void SetSourceData(vtkDataObject *source);
57 
64  void SetSourceConnection(vtkAlgorithmOutput* algOutput);
65 
67 
72  void SetCategoricalData(bool arg);
73  bool GetCategoricalData();
75 
77 
81  void SetPassCellArrays(bool arg);
82  bool GetPassCellArrays();
83  vtkBooleanMacro(PassCellArrays, bool);
85 
87 
91  void SetPassPointArrays(bool arg);
92  bool GetPassPointArrays();
93  vtkBooleanMacro(PassPointArrays, bool);
95 
97 
101  void SetPassFieldArrays(bool arg);
102  bool GetPassFieldArrays();
103  vtkBooleanMacro(PassFieldArrays, bool);
105 
107 
112  void SetTolerance(double arg);
113  double GetTolerance();
115 
117 
122  void SetComputeTolerance(bool arg);
123  bool GetComputeTolerance();
124  vtkBooleanMacro(ComputeTolerance, bool);
126 
128 
132  vtkSetMacro(MarkBlankPointsAndCells, bool);
133  vtkGetMacro(MarkBlankPointsAndCells, bool);
134  vtkBooleanMacro(MarkBlankPointsAndCells, bool);
136 
138  /*
139  * Set/Get the prototype cell locator to use for probing the source dataset.
140  * The value is forwarded to the underlying probe filter.
141  */
142  virtual void SetCellLocatorPrototype(vtkAbstractCellLocator*);
143  virtual vtkAbstractCellLocator* GetCellLocatorPrototype() const;
145 
146  vtkMTimeType GetMTime() override;
147 
148 protected:
150  ~vtkResampleWithDataSet() override;
151 
152  // Usual data generation method
154  vtkInformationVector *) override;
156  vtkInformationVector *) override;
158  vtkInformationVector *) override;
159  int FillInputPortInformation(int, vtkInformation *) override;
160  int FillOutputPortInformation(int, vtkInformation *) override;
161 
165  const char* GetMaskArrayName() const;
166 
170  void SetBlankPointsAndCells(vtkDataSet *data);
171 
174 
175 private:
177  void operator=(const vtkResampleWithDataSet&) = delete;
178 };
179 
180 #endif // vtkResampleWithDataSet_h
vtkPassInputTypeAlgorithm.h
vtkResampleWithDataSet::MarkBlankPointsAndCells
bool MarkBlankPointsAndCells
Definition: vtkResampleWithDataSet.h:173
vtkX3D::data
Definition: vtkX3D.h:315
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPassInputTypeAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:825
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkPassInputTypeAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkPassInputTypeAlgorithm.h:175
vtkResampleWithDataSet::Prober
vtkNew< vtkCompositeDataProbeFilter > Prober
Definition: vtkResampleWithDataSet.h:172
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkNew< vtkCompositeDataProbeFilter >
vtkAbstractCellLocator
an abstract base class for locators which find cells
Definition: vtkAbstractCellLocator.h:48
vtkCompositeDataProbeFilter
subclass of vtkProbeFilter which supports composite datasets in the input.
Definition: vtkCompositeDataProbeFilter.h:45
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkNew.h
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:36
vtkPassInputTypeAlgorithm::New
static vtkPassInputTypeAlgorithm * New()
vtkPassInputTypeAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPassInputTypeAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkResampleWithDataSet
sample point and cell data of a dataset on points from another dataset.
Definition: vtkResampleWithDataSet.h:42
vtkPassInputTypeAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
Definition: vtkPassInputTypeAlgorithm.h:147
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58
vtkPassInputTypeAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
Definition: vtkPassInputTypeAlgorithm.h:126
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:51
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302