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 
51  static vtkResampleWithDataSet *New();
52 
59  void SetSourceData(vtkDataObject *source);
60 
67  void SetSourceConnection(vtkAlgorithmOutput* algOutput);
68 
70 
75  void SetCategoricalData(bool arg);
76  bool GetCategoricalData();
78 
80 
84  void SetPassCellArrays(bool arg);
85  bool GetPassCellArrays();
86  vtkBooleanMacro(PassCellArrays, bool);
88 
90 
94  void SetPassPointArrays(bool arg);
95  bool GetPassPointArrays();
96  vtkBooleanMacro(PassPointArrays, bool);
98 
100 
104  void SetPassFieldArrays(bool arg);
105  bool GetPassFieldArrays();
106  vtkBooleanMacro(PassFieldArrays, bool);
108 
110 
115  void SetTolerance(double arg);
116  double GetTolerance();
118 
120 
125  void SetComputeTolerance(bool arg);
126  bool GetComputeTolerance();
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  */
145  virtual void SetCellLocatorPrototype(vtkAbstractCellLocator*);
146  virtual vtkAbstractCellLocator* GetCellLocatorPrototype() const;
148 
149  vtkMTimeType GetMTime() override;
150 
151 protected:
153  ~vtkResampleWithDataSet() override;
154 
155  // Usual data generation method
157  vtkInformationVector *) override;
159  vtkInformationVector *) override;
161  vtkInformationVector *) override;
162  int FillInputPortInformation(int, vtkInformation *) override;
163  int FillOutputPortInformation(int, vtkInformation *) override;
164 
168  const char* GetMaskArrayName() const;
169 
173  void SetBlankPointsAndCells(vtkDataSet *data);
174 
177 
178 private:
180  void operator=(const vtkResampleWithDataSet&) = delete;
181 };
182 
183 #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:302
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
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:39
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:64
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